/* frontend/css/style.css */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0A0A0A;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #E0E0E0;
    line-height: 1.5;
    padding-bottom: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== MENU HAMBÚRGUER ========== */
.hamburger {
    background: none;
    border: none;
    color: #FF3366;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #0A0A0A;
    z-index: 999;
    transition: left 0.3s ease;
    border-right: 1px solid #2A2A2A;
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    left: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #2A2A2A;
}

.menu-header h3 {
    font-size: 18px;
}

.menu-header h3 span {
    color: #FF3366;
}

.close-menu {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
}

.menu-items {
    list-style: none;
    padding: 20px;
    flex: 1;
}

.menu-items li {
    margin-bottom: 20px;
}

.menu-items a {
    color: #E0E0E0;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    transition: color 0.2s;
}

.menu-items a i {
    width: 24px;
    color: #FF3366;
}

.menu-items a.active {
    color: #FF3366;
}

.menu-footer {
    padding: 20px;
    border-top: 1px solid #2A2A2A;
    text-align: center;
}

.menu-footer p {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    color: #888;
    font-size: 18px;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: #FF3366;
}

/* ========== HEADER ========== */
.header {
    background: #000000;
    border-bottom: 1px solid #2A2A2A;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.logo h1 {
    font-size: 16px;
    letter-spacing: 1px;
}

.logo h1 span {
    color: #FF3366;
}

.logo p {
    font-size: 9px;
    color: #888;
}

.status-badge {
    background: #1A1A1A;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#status-icon {
    font-size: 8px;
}

/* ========== TORNEIO DESTAQUE ========== */
.torneio-destaque {
    margin: 20px 0;
}

.torneio-card {
    background: linear-gradient(135deg, #1A1A1A, #0D0D0D);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #2A2A2A;
}

.torneio-badge {
    display: inline-block;
    background: #FF3366;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 12px;
}

.torneio-card h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.torneio-card p {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 16px;
}

.torneio-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #aaa;
}

.info-item i {
    color: #FF3366;
    width: 16px;
}

.btn-inscricao {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-inscricao:hover {
    opacity: 0.9;
}

/* ========== JOGOS ========== */
.jogos-section {
    margin: 30px 0;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h2 i {
    color: #FF3366;
}

.filtros {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filtro-btn {
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    color: #E0E0E0;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.filtro-btn.active,
.filtro-btn:active {
    background: #FF3366;
    border-color: #FF3366;
}

.jogos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.game-card {
    background: #1A1A1A;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid #2A2A2A;
}

.game-card:active {
    transform: scale(0.98);
}

.game-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #2A2A2A, #1A1A1A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #FF3366;
}

.game-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.game-info {
    padding: 12px;
}

.game-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-category {
    font-size: 11px;
    color: #888;
}

.game-price {
    font-size: 12px;
    color: #00FF88;
    margin-top: 6px;
}

/* ========== PROMOÇÃO RÁPIDA ========== */
.promocao-rapida {
    margin: 20px 0;
}

.promocao-card {
    background: linear-gradient(135deg, #FF3366, #FF6633);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.promocao-card i {
    font-size: 32px;
    color: white;
}

.promocao-texto {
    flex: 1;
}

.promocao-texto h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

.promocao-texto p {
    font-size: 11px;
    opacity: 0.9;
}

.btn-saiba {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 11px;
    cursor: pointer;
}

/* ========== RANKING (página separada) ========== */
.top3-section {
    margin: 20px 0;
}

.top3-section h2 {
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.top3-card {
    background: #1A1A1A;
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
    border: 1px solid #2A2A2A;
}

.top3-card.primeiro {
    border-color: gold;
    background: linear-gradient(135deg, #1A1A1A, #2A1A00);
}

.top3-card.segundo {
    border-color: silver;
}

.top3-card.terceiro {
    border-color: #CD7F32;
}

.top3-medalha {
    font-size: 32px;
    margin-bottom: 8px;
}

.top3-nome {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}

.top3-pontos {
    font-size: 12px;
    color: #FF3366;
}

.ranking-section {
    margin: 30px 0;
}

.ranking-section h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

.filtros-ranking {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.filtros-ranking input,
.filtros-ranking select {
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    padding: 12px;
    border-radius: 12px;
    color: white;
    font-size: 14px;
}

.ranking-tabela-wrapper {
    overflow-x: auto;
}

.ranking-tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ranking-tabela th,
.ranking-tabela td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #2A2A2A;
}

.ranking-tabela th {
    color: #FF3366;
    font-weight: normal;
}

.ranking-info {
    margin-top: 16px;
    font-size: 11px;
    color: #666;
    text-align: center;
}

/* ========== TORNEIOS (página separada) ========== */
.torneio-ativo-card {
    background: linear-gradient(135deg, #1A1A1A, #0D0D0D);
    border-radius: 24px;
    overflow: hidden;
    margin: 20px 0;
}

.torneio-ativo-header {
    background: #FF3366;
    padding: 20px;
    text-align: center;
}

.status-ativo {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    margin-bottom: 10px;
}

.torneio-ativo-header h2 {
    font-size: 20px;
}

.torneio-ativo-body {
    padding: 20px;
}

.premios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.premio-card {
    background: #0A0A0A;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    border: 1px solid #2A2A2A;
}

.premio-lugar {
    font-size: 11px;
    color: #888;
}

.premio-valor {
    font-size: 18px;
    font-weight: bold;
    color: #FF3366;
}

.torneio-detalhes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.detalhe {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.btn-inscricao-grande {
    background: #25D366;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
}

.proximos-torneios,
.historico-torneios {
    margin: 30px 0;
}

.proximos-grid,
.historico-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.torneio-item {
    background: #1A1A1A;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #2A2A2A;
}

.torneio-item-nome {
    font-weight: bold;
    margin-bottom: 8px;
}

.torneio-item-data {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.torneio-item-premio {
    font-size: 13px;
    color: #FF3366;
}

/* ========== PROMOÇÕES (página separada) ========== */
.promocao-principal {
    margin: 20px 0;
}

.promocao-banner {
    background: linear-gradient(135deg, #1A1A1A, #0D0D0D);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #FF3366;
}

.promocao-conteudo {
    padding: 24px;
    text-align: center;
}

.promocao-tag {
    display: inline-block;
    background: #FF3366;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    margin-bottom: 16px;
}

.promocao-conteudo h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.promocao-conteudo p {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 16px;
}

.promocao-premio {
    background: rgba(255,51,102,0.2);
    border-radius: 16px;
    padding: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.promocao-premio i {
    font-size: 24px;
    color: #FF3366;
}

.promocao-premio span {
    font-size: 16px;
    font-weight: bold;
}

.promocao-contador {
    font-size: 24px;
    font-weight: bold;
    color: #00FF88;
    margin-bottom: 20px;
}

.btn-participar {
    background: #FF3366;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.regras-promocao {
    background: #1A1A1A;
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
}

.regras-promocao h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

.regras-promocao ul {
    padding-left: 20px;
}

.regras-promocao li {
    margin-bottom: 10px;
    font-size: 13px;
    color: #aaa;
}

.pontuacao-jogos {
    margin: 30px 0;
}

.categorias-pontuacao {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.categoria-card {
    background: #1A1A1A;
    border-radius: 16px;
    overflow: hidden;
}

.categoria-header {
    background: #2A2A2A;
    padding: 12px 16px;
    font-weight: bold;
    color: #FF3366;
}

.jogo-pontuacao {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #2A2A2A;
    font-size: 13px;
}

.jogo-pontuacao:last-child {
    border-bottom: none;
}

.pontos {
    color: #00FF88;
    font-weight: bold;
}

/* ========== FOOTER ========== */
.footer {
    background: #050505;
    border-top: 1px solid #2A2A2A;
    padding: 30px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-col h4 {
    font-size: 14px;
    color: #FF3366;
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2A2A2A;
    font-size: 11px;
    color: #555;
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #1A1A1A;
    border-bottom: 1px solid #2A2A2A;
}

.modal-header h3 {
    font-size: 16px;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.modal-content {
    flex: 1;
    padding: 16px;
}

.modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* ========== LOADING ========== */
.loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

/* ========== TABLET ========== */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .jogos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 24px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .top3-card {
        padding: 20px;
    }
    
    .filtros-ranking {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .filtros-ranking input {
        flex: 1;
    }
    
    .filtros-ranking select {
        width: 150px;
    }
}

/* ========== DESKTOP ========== */
@media (min-width: 1024px) {
    .jogos-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .game-card:hover {
        transform: translateY(-5px);
    }
    
    .torneio-card {
        padding: 30px;
    }
}