/**
 * Friburgo Área do Aluno - Frontend CSS
 */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;600;700&display=swap');

/* ==================== RESET & BASE ==================== */
.fa-area-aluno-page {
    padding-top: 110px;
    font-family: 'Roboto', sans-serif;
    background: #fff;
    padding-bottom: 80px;
}

.fa-area-aluno-page *,
.fa-area-aluno-page *::before,
.fa-area-aluno-page *::after {
    box-sizing: border-box;
}

.fa-area-aluno-page button {
    font-family: 'Roboto', sans-serif;
    background: none;
    border: none;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
}

.fa-area-aluno-page button:focus {
    outline: none;
    box-shadow: none !important;
}

.fa-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HERO BAR ==================== */
.fa-hero {
    background: #E87817;
    border-radius: 2px 24px 2px 24px;
    height: 88px;
    display: flex;
    align-items: center;
}

.fa-hero > .fa-container {
    width: 100%;
}

.fa-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60%;
}

/* Breadcrumb */
.fa-breadcrumb {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 7px;
    font-size: 16px;
    white-space: nowrap;
}

.fa-breadcrumb-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-weight: 300;
    line-height: 24px;
    transition: color 0.2s;
}

.fa-breadcrumb-link:hover {
    color: #fff;
}

.fa-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    line-height: 24px;
}

.fa-breadcrumb-current {
    color: #fff;
    font-weight: 700;
    line-height: 24px;
}

/* School Toggle */
.fa-area-aluno-page .fa-school-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 6px;
    border-radius: 16px 2px 16px 2px;
}

.fa-area-aluno-page .fa-toggle-btn {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 20px;
    padding: 4px 14px !important;
    border-radius: 10px 2px 10px 2px !important;
    color: #ACACAC !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.fa-area-aluno-page .fa-toggle-btn:hover {
    color: #006140 !important;
    background: none !important;
}

.fa-area-aluno-page .fa-toggle-btn.active {
    background: #B8DB7D !important;
    color: #006140 !important;
}

/* ==================== CATEGORY TABS ==================== */
.fa-categories {
    margin-top: 24px;
}

.fa-cat-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
}

.fa-area-aluno-page .fa-cat-tab {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 400 !important;
    font-size: 18px !important;
    line-height: 28px;
    padding: 6px 12px !important;
    border-radius: 2px 16px 2px 16px !important;
    color: #ACACAC !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.fa-area-aluno-page .fa-cat-tab:hover {
    color: #828282 !important;
    background: none !important;
}

.fa-area-aluno-page .fa-cat-tab.active {
    background: #E87817 !important;
    color: #F0EDC7 !important;
}

/* ==================== DOCUMENTS GRID ==================== */
.fa-documents {
    margin-top: 48px;
}

.fa-docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    row-gap: 32px;
}

.fa-doc-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0px 23.28px 38.8px rgba(43, 43, 43, 0.08);
    padding: 40px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 144px;
}

.fa-doc-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: #006140;
    margin: 0;
    max-width: 216px;
    word-wrap: break-word;
}

.fa-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 61px;
    height: 61px;
    background: #B8DB7D;
    border-radius: 14px 0 14px 0;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.fa-download-btn:hover {
    background: #a8ce6a;
    transform: translateY(-1px);
}

.fa-download-btn:active {
    transform: scale(0.97);
}

/* No results message */
.fa-no-docs,
.fa-no-results {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: #ACACAC;
    text-align: center;
    padding: 60px 0;
}

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .fa-docs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fa-hero-inner {
        gap: 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .fa-area-aluno-page {
        padding-top: 92px;
        padding-bottom: 50px;
    }

    .fa-hero {
        height: auto;
        padding: 20px 0;
    }

    .fa-hero-inner {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .fa-area-aluno-page .fa-school-toggle {
        justify-self: auto;
    }

    .fa-cat-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0;
    }

    .fa-area-aluno-page .fa-cat-tab {
        font-size: 16px !important;
    }

    .fa-docs-grid {
        grid-template-columns: 1fr;
    }

    .fa-doc-card {
        padding: 30px 24px;
    }

    .fa-doc-title {
        font-size: 20px;
        line-height: 28px;
        max-width: none;
        flex: 1;
        margin-right: 16px;
    }

    .fa-download-btn {
        width: 52px;
        height: 52px;
    }

    .fa-documents {
        margin-top: 32px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .fa-doc-title {
        font-size: 18px;
        line-height: 24px;
    }

    .fa-breadcrumb {
        font-size: 14px;
    }
}
