/* Reset e estilos base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
    color: #feaf50;
    text-decoration: none;
}

a:hover {
    color: #ffb347;
    text-decoration: underline;
}

/* Exceção para links que são tabs */
.learning-track-tab {
    color: #e2e8f0;
    text-decoration: none !important;
}

.learning-track-tab:hover {
    color: #000;
    text-decoration: none !important;
}

.games-list-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.learning-track-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.learning-track-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.learning-track-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.learning-track-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.learning-track-date {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.learning-track-status {
    display: inline-block;
    background: #2962FF;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.learning-track-info {
    padding: 1.5rem;
}

.learning-track-access-info {
    margin: 1rem 0;
}

.access-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 159, 28, 0.1);
    color: #ff9f1c;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    line-height: 1.2;
}

.access-badge svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.learning-track-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #feaf50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.learning-track-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.learning-track-description {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.learning-track-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.learning-track-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    color: #ffffff;
    font-size: 0.8rem;
}

.learning-track-action {
    background: #feaf50;
    color: #000000;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.learning-track-action:hover {
    color: #feaf50;
    background-color: rgba(255, 255, 255, 0.08);
}

/* Estilos para o separador de jogos */
.learning-track-nav {
    background: linear-gradient(to right, rgba(254, 175, 80, 0.05), rgba(254, 175, 80, 0.1), rgba(254, 175, 80, 0.05));
    border-bottom: 1px solid rgba(254, 175, 80, 0.1);
    padding: 1.5rem 0;
    margin: 2rem 0 2rem 0;
    width: 100%;
    display: flex;
}

.learning-track-nav-container {
    max-width: 1200px;
    width: 100%;
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: left;
}

.learning-track-nav h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #feaf50;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(254, 175, 80, 0.2);
    width: 100%;
    text-align: center;
}

/* ===== MEDIA QUERIES (MOBILE) ===== */
@media (min-width: 769px) and (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Estilos gerais para mobile */
    .games-list-container {
        padding: 1rem 0 0 0;
    }

    .games-title {
        font-size: 2rem;
    }

    .games-subtitle {
        font-size: 1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }
    
    /* Correção para o botão Jogar na versão mobile */
    .learning-track-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .learning-track-author {
        width: 100%;
        justify-content: flex-start;
    }
    
    .learning-track-action {
        width: 95%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .access-badge {
        width: 95%;
    }
    
    /* Estilos para o separador de jogos em mobile */
    .learning-track-nav {
        padding: 1rem 0;
    }
    
    .learning-track-nav h1 {
        font-size: 2rem;
    }
}
