body {
    font-family: 'Inter', sans-serif;
    /* 1. CORREÇÃO DA IMAGEM DE FUNDO DA HOME PAGE */
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #f3f4f6; /* Cor de fallback caso a imagem não carregue */
    color: #111827;
    padding-top: 50px; /* Adicionado para compensar o header fixo */
}

/* ++ INÍCIO DA ALTERAÇÃO ++ */
/* A classe .logo-font foi removida daqui. */
/* ++ FIM DA ALTERAÇÃO ++ */

.game-card {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
    color: #111827;
    overflow: hidden;
    position: relative; 
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.game-card-image {
    overflow: hidden;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-image {
    transform: scale(1.1);
}

/* Adiciona a animação de zoom da imagem para os cards do lobby, que usam um background-image */
.game-card > div:first-child[style*="background-image"] {
    transition: transform 0.3s ease;
}

.game-card:hover > div:first-child[style*="background-image"] {
    transform: scale(1.1);
}

#gamesGrid > * {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #ff3300 0%, #dd2200 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.category-btn:hover::before {
    width: 100%;
}

.category-btn.active {
    background: linear-gradient(135deg, #ff3300 0%, #dd2200 100%);
    color: white;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 51, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 51, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 51, 0, 0);
    }
}

.mobile-menu {
    transition: max-height 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

.mobile-menu.active {
    max-height: 500px;
}

.online-counter {
    animation: blink 2s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: transparent; /* Alterado de #f3f4f6 para transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10;
    padding: 20px;
}

.hero-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; /* ExtraBold */
    letter-spacing: -1px;
}

.swiper-pagination-bullet-active {
    background-color: #ff3300 !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem !important; /* Ajuste para mobile */
    }
    
    .hero-content p {
        font-size: 0.9rem !important;
    }
    
    .hero-content .button-container {
        flex-direction: column;
        gap: 10px;
    }
}

.bg-yellow-counter {
    background-color: #ddb43c;
}

.footer-dark {
    background-color: #373530;
    color: #ffffff;
}

/* ++ INÍCIO DA CORREÇÃO ++ */
/* Essas regras são a sua personalização de tema claro. Elas estão sendo restauradas. */
.bg-gray-800 {
    background-color: #e5e7eb !important;
}

.bg-gray-700 {
    background-color: #f3f4f6 !important;
}

.bg-gray-600 {
    background-color: #ffffff !important;
}

.text-gray-400 {
    color: #6b7280 !important;
}

.text-gray-500 {
    color: #6b7280 !important;
}

.text-gray-300 {
    color: #6b7280 !important;
}

.border-gray-700 {
    border-color: #d1d5db !important;
}
/* ++ FIM DA CORREÇÃO ++ */

.header-online-counter {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.game-online-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(221, 180, 60, 0.9);
    color: #373530;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.profile-card {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.5);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.8);
}

.ranking-item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ranking-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ranking-item:hover::before {
    left: 100%;
}

.ranking-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #ff3300 0%, #dd2200 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(255, 51, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 51, 0, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #ff3300;
    color: white;
}

.social-icon {
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: #ff3300;
    box-shadow: 0 5px 10px rgba(255, 51, 0, 0.3);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff3300;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #ff3300 !important;
}

/* ======================================================= */
/* ====== INÍCIO - AJUSTES HEADER ======================== */
/* ======================================================= */
header .nav-link,
header button.nav-link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
header .nav-link:hover {
    color: #ffffff !important;
}
header .nav-link::after {
    background-color: #ffffff;
    bottom: -2px;
}
.mobile-menu .nav-link {
    color: #ffffff;
}
/* ======================================================= */
/* ====== FIM - AJUSTES HEADER =========================== */
/* ======================================================= */


.badge-available {
    background-color: #4e9240;
}

.badge-soon {
    background-color: #ddb43c;
}

.game-card p {
    font-size: 0.875rem; /* 14px */
}

.ranking-card {
    background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.ranking-card:hover {
    transform: translateY(-5px);
}

.rankingSwiper {
    padding: 20px 0;
    position: relative;
}

.rankingSwiper .swiper-slide {
    height: auto;
}

.rankingSwiper .swiper-button-next,
.rankingSwiper .swiper-button-prev {
    color: #ff3300 !important;
    background-color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
}

.rankingSwiper .swiper-button-next {
    right: 10px;
}

.rankingSwiper .swiper-button-prev {
    left: 10px;
}

.rankingSwiper .swiper-button-next:after,
.rankingSwiper .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.loader {
    border-top-color: #ff3300;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

.image-placeholder {
    background-color: #e5e7eb;
    animation: placeholder-glow 1.5s ease-in-out infinite;
}

@keyframes placeholder-glow {
    0% {
        background-color: #e5e7eb;
    }
    50% {
        background-color: #d1d5db;
    }
    100% {
        background-color: #e5e7eb;
    }
}
.inventory-tabs {
    display: flex;
    gap: 0.5rem;
}

.inventory-tab-btn {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #4b5563;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
    background-color: #f3f4f6;
    cursor: pointer;
}

.inventory-tab-btn:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

.inventory-tab-btn.active {
    background-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2), 0 2px 4px -2px rgba(239, 68, 68, 0.1);
}

.item-card-inventory {
    display: flex;
    flex-direction: column;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card-inventory:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.item-preview-inventory {
    width: 100%;
    height: 100px;
    object-fit: cover;
    background-color: #f3f4f6;
}

.item-info-inventory {
    padding: 0.75rem;
}

.item-name-inventory {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-game-inventory {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 0.25rem;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    padding: 25px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.modal-body {
    overflow-y: auto;
    padding-right: 10px;
}

.close-modal-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #6b7280;
    font-size: 1.8rem;
    line-height: 1;
    transition: color 0.2s ease;
}
.close-modal-btn:hover {
    color: #111827;
}

.inventory-tabs {
    display: flex;
    gap: 0.5rem;
}

.item-card-inventory {
    display: flex;
    flex-direction: column;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card-inventory:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.item-preview-inventory {
    width: 100%;
    height: 100px;
    object-fit: cover;
    background-color: #f3f4f6;
}

.item-info-inventory {
    padding: 0.75rem;
}

.item-name-inventory {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-game-inventory {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 0.25rem;
}

#category-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#category-wrapper::-webkit-scrollbar {
  display: none;
}

@media (max-width: 640px) {
    #gamesGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .game-card .p-6 {
        padding: 0.75rem;
    }

    .game-card h4 {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
    }

    .game-card p {
        display: none;
    }

    .game-card-image img {
        height: 112px;
    }
    
    .game-card .text-sm {
        font-size: 0.625rem;
    }

    .game-card .fa-users, .game-card .fa-clock {
        margin-right: 0.125rem;
    }
}

/* ======================================================= */
/* ====== INÍCIO - CÓDIGO FINAL P/ TRANSPARÊNCIA ===== */
/* ======================================================= */

/* 1. Header */
header {
    background-color: #373530 !important; /* Mesma cor do footer */
}

/* 2. Game Cards, Ranking Cards & Botões do Lobby */
.game-card,
.ranking-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(229, 231, 235, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* 3. Sidebar - CORREÇÃO DEFINITIVA */

/* Aplica o fundo semi-transparente ao CARD PRINCIPAL da sidebar */
[id="sidebar-placeholder"] .rounded-lg.shadow-lg {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Remove o fundo branco/cinza dos ELEMENTOS INTERNOS para que o fundo principal apareça */
[id="sidebar-placeholder"] .bg-white,
[id="sidebar-placeholder"] .bg-gray-50,
[id="sidebar-placeholder"] .bg-gray-100,
[id="sidebar-placeholder"] .bg-yellow-100,
[id="sidebar-placeholder"] .ranking-item {
    background-color: transparent !important;
}

/* Adiciona um efeito de hover sutil para compensar a falta do fundo branco */
[id="sidebar-placeholder"] .ranking-item:hover,
[id="sidebar-placeholder"] a:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}


/* ======================================================= */
/* ======== FIM - CÓDIGO FINAL P/ TRANSPARÊNCIA ====== */
/* ======================================================= */