﻿/* =====================================================
   GRID DE CARDS
===================================================== */

.container-aulas,
.home-links {
    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));

    gap: 20px;
}

/* =====================================================
   CARD PADRÃƒO
===================================================== */

.card {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(10, 10, 10, 0.98));
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(124, 140, 255, 0.12);
    box-shadow: 0 0 18px rgba(124, 140, 255, 0.05);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 140, 255, 0.32);
    box-shadow: 0 0 28px rgba(124, 140, 255, 0.12);
}

.card h3 {
    margin-bottom: 8px;
    color: #e2e8f0;
}

.card p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

/* =====================================================
   BOTÃ•ES
===================================================== */

button {
    padding: 8px 15px;

    background: linear-gradient(90deg, #7c8cff, #9333ea);
    color: #ffffff;

    border: 1px solid rgba(124, 140, 255, 0.4);

    border-radius: 6px;

    cursor: pointer;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(124, 140, 255, 0.35);
}

/* =====================================================
   ÃREA DO BOTÃƒO ENTRE HEADER E MAIN
===================================================== */

.area-voltar {
    width: 100%;
    max-width: 1100px;
    margin: 16px auto 12px auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
}

/* =====================================================
   BOTÃƒO VOLTAR
===================================================== */

.btn-voltar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #334155;
    background-color: #0f172a;
    /* fundo sÃ³lido escuro */
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.btn-voltar:hover {
    background-color: #1e293b;
    border-color: #38bdf8;
    color: #38bdf8;
}

/* ============================
   CARDS DE AULAS
============================ */

.card-aula {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.95), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(124, 140, 255, 0.14);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.card-aula:hover {
    border-color: rgba(124, 140, 255, 0.32);
    box-shadow: 0 18px 32px rgba(124, 140, 255, 0.18);
}

.card-header {
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 500;
}

.card-header span {
    font-size: 0.8rem;
    color: #aab7ff;
}

.card-body {
    padding: 0 20px 20px 20px;
    display: none;
    color: #cbd5e1;
    line-height: 1.6;
}

.card-body.ativo {
    display: block;
}

/* =====================================================
   BLOCO DE FRASE MOTIVACIONAL
===================================================== */

.quote-card {
    display: grid;
    gap: 12px;
}

.quote-status {
    color: #aab7ff;
    font-size: 0.95rem;
}

.quote-text {
    font-size: 1.35rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.quote-author {
    color: #94a3b8;
    font-weight: 600;
}

.quote-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(124, 140, 255, 0.3);
    border-radius: 14px;
    padding: 18px;
    min-height: 120px;
    transition: opacity 0.2s ease;
}

.quote-box.loading {
    opacity: 0.6;
}

.hero-quote {
    display: grid;
    justify-content: start;
}

.hero-quote .quote-box {
    max-width: 520px;
    margin: 0;
    padding: 14px 16px;
}

.hero-quote .quote-text {
    font-size: 1.05rem;
}

.hero-quote .quote-author {
    font-size: 0.95rem;
}

@media (min-width: 900px) {
    .hero-grid {
        align-items: start;
    }

    .hero-text {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .hero-quote {
        grid-column: 2;
        grid-row: 1;
        justify-self: stretch;
    }

    .hero-card {
        grid-column: 2;
        grid-row: 2;
    }
}
/* Badge da data */
.badge-data {
    background-color: #0f172a;
    border: 1px solid #334155;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    color: #38bdf8;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Ãcone de expandir */
.icone {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

/* Imagens da aula */
.aula-imagem {
    width: 20%;
    max-width: 900px;
    height: auto;
    margin-top: 10px;
}

.imagens-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.imagens-container img {
    max-width: 150px;
    border-radius: 6px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.imagens-container img:hover {
    transform: scale(1.05);
}

/* =====================================================
   MODAL DE IMAGEM
===================================================== */

.modal {
    display: none;
    /* Inicialmente escondido */
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    /* Cor de fundo com opacidade */
}

/* Modal Content (imagem) */
.imagem-grande {
    margin: auto;
    display: block;
    width: 80%;
    /* Ajuste o tamanho da imagem */
    height: auto;
}

/* Fechar botÃ£o */
.fechar {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.fechar:hover,
.fechar:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
