/* jogos.css - PÃ¡gina de Jogos Educativos - Mobile First */

/* ============================================
   HERO DA PÃ�GINA JOGOS
   ============================================ */

   .jogos-hero {
    position: relative;
    padding: calc(var(--header-height) + var(--spacing-3xl)) 0 var(--spacing-3xl);
    background: var(--bg-darker);
    overflow: hidden;
}

/* Background com PartÃ­culas */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 0, 255, 0.1) 0%,
        transparent 70%
    );
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, var(--gradient-pink), transparent),
        radial-gradient(2px 2px at 60% 70%, var(--gradient-purple), transparent),
        radial-gradient(1px 1px at 50% 50%, var(--neon-cyan), transparent),
        radial-gradient(1px 1px at 80% 10%, var(--gradient-pink), transparent),
        radial-gradient(2px 2px at 90% 60%, var(--gradient-purple), transparent),
        radial-gradient(1px 1px at 33% 90%, var(--neon-cyan), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    opacity: 0.3;
    animation: particles-float 20s ease-in-out infinite;
}

@keyframes particles-float {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-glow);
}

.jogos-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(16px, 2.5vw, 18px);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-2xl);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 120px;
    transition: all var(--transition-base);
}

.stat:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 800;
    color: var(--gradient-pink);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}


/* ============================================
   FILTROS E BUSCA
   ============================================ */

.jogos-filters {
    padding: var(--spacing-xl) 0;
    background: var(--bg-black);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: var(--header-height);
    z-index: var(--z-sticky);
    backdrop-filter: blur(10px);
}

.filters-wrapper {
    display: flex;
    flex-direction: column; /* Mobile: stack vertical */
    gap: var(--spacing-md);
}

/* Tablet e Desktop: flex-wrap */
@media (min-width: 768px) {
    .filters-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}

/* Search Box */
.search-box {
    position: relative;
    flex: 1 1 100%; /* Mobile: full width */
    min-width: 200px;
}

@media (min-width: 768px) {
    .search-box {
        flex: 1 1 auto;
        max-width: 300px;
    }
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-base);
}

.search-box input:focus {
    outline: none;
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
}

.search-box .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Filter Groups */
.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-select {
    padding: 10px 36px 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-select:hover {
    border-color: var(--border-glow);
    background-color: var(--bg-card-hover);
}

.filter-select:focus {
    outline: none;
    border-color: var(--gradient-pink);
    box-shadow: var(--shadow-glow);
}

/* BotÃ£o Reset Filtros */
.btn-reset-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-reset-filters:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-glow);
    color: var(--text-primary);
}


/* ============================================
   GRID DE JOGOS
   ============================================ */

.jogos-grid-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-black);
}

.results-count {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.results-count p {
    font-size: 14px;
    color: var(--text-muted);
}

.results-count strong {
    color: var(--gradient-pink);
    font-weight: 700;
}

/* Grid Responsivo - Mobile First */
.jogos-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 coluna */
    gap: var(--spacing-xl);
}

/* Tablet: 2 colunas */
@media (min-width: 768px) {
    .jogos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 colunas */
@media (min-width: 1024px) {
    .jogos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop Large: 4 colunas */
@media (min-width: 1440px) {
    .jogos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Game Card */
.game-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    opacity: 1;
    transform: scale(1);
}

.game-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Card Hidden (quando filtrado) */
.game-card.hidden {
    display: none;
}

/* Badge Featured */
.game-badge-featured {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 8px 16px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-glow);
}

/* Thumbnail */
.game-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: var(--bg-darker);
    overflow: hidden;
}

.game-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.1);
}

/* Overlay */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 56px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    animation: pulse-game-icon 2s ease-in-out infinite;
}

@keyframes pulse-game-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.coming-soon {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Game Info */
.game-info {
    padding: var(--spacing-lg);
}

.game-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.game-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Game Meta */
.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--spacing-md);
    font-size: 12px;
}

.game-type {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 600;
}

.game-difficulty {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-difficulty.easy {
    background: rgba(0, 255, 0, 0.15);
    color: #00ff00;
}

.game-difficulty.medium {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
}

.game-difficulty.hard {
    background: rgba(255, 0, 0, 0.15);
    color: #ff0000;
}

.game-status {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-status.available {
    background: rgba(0, 255, 0, 0.15);
    color: #00ff00;
}

.game-status.soon {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
}

.game-status.development {
    background: rgba(255, 0, 255, 0.15);
    color: var(--gradient-pink);
}

/* Game Details */
.game-details {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 13px;
    color: var(--text-muted);
}

.detail {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* BotÃµes */
.btn-play,
.btn-notify,
.btn-roadmap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn-play {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
}

.btn-notify {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
    border: 1px solid #ffa500;
}

.btn-notify:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-roadmap {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-roadmap:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}


/* ============================================
   NO RESULTS MESSAGE
   ============================================ */

.no-results {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
}

.no-results-icon {
    font-size: 72px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.no-results h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.no-results p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}


/* ============================================
   SEÃ‡ÃƒO EDUCADORES
   ============================================ */

.educadores-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-darker);
}

.educadores-card {
    display: flex;
    flex-direction: column; /* Mobile: stack */
    gap: var(--spacing-xl);
    padding: var(--spacing-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

@media (min-width: 768px) {
    .educadores-card {
        flex-direction: row;
        align-items: center;
    }
}

.educadores-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow);
}

.educadores-icon .icon {
    color: white;
}

.educadores-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.educadores-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.educadores-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 600px) {
    .educadores-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

.educadores-features li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
}

.btn-contato {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-glow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-contato:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
}


/* ============================================
   CTA FINAL - BIOGRAFIAS
   ============================================ */

.jogos-cta {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-black);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

.btn-biografias {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-biografias:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-strong);
}

.btn-icon {
    display: flex;
    align-items: center;
}


/* ============================================
   RESPONSIVIDADE MOBILE ESPECÃƒFICA
   ============================================ */

@media (max-width: 768px) {
    .jogos-hero {
        padding: calc(var(--header-height) + var(--spacing-2xl)) 0 var(--spacing-2xl);
    }
    
    .hero-stats {
        gap: var(--spacing-md);
    }
    
    .stat {
        min-width: 100px;
    }
    
    .jogos-filters {
        position: static; /* Remove sticky em mobile */
    }
    
    .jogos-grid-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .educadores-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .educadores-card {
        padding: var(--spacing-xl);
    }
}

/* Muito pequeno (320px-375px) */
@media (max-width: 375px) {
    .jogos-hero h1 {
        font-size: 28px;
    }
    
    .hero-stats {
        flex-direction: column;
        width: 100%;
    }
    
    .stat {
        width: 100%;
    }
    
    .game-title {
        font-size: 18px;
    }
}