/* FluencyFocus theme — layered on top of Bootstrap 5 (no build step) */

:root {
    --ff-navy: #1F2E5C;
    --ff-navy-dark: #16213f;
    --ff-navy-soft: #eef1f7;
    --ff-red: #D62839;
    --ff-red-dark: #b31f2e;
    /* Accent used only for the Intermediate level card, matching docs/Homepage.jpeg.
       Not part of the documented navy/red/white palette — see phase report. */
    --ff-green: #1e8449;
    --ff-text: #22283a;
    --ff-text-muted: #6c7486;
    --ff-border: #e3e7ef;
}

body {
    color: var(--ff-text);
    background-color: #fff;
}

a {
    color: var(--ff-navy);
    text-decoration: none;
}
a:hover {
    color: var(--ff-red);
}

.text-ff-navy { color: var(--ff-navy); }

/* ---------- Header ---------- */
.ff-header {
    background: #fff;
    border-bottom: 1px solid var(--ff-border);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.ff-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.6rem;
}

.ff-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.ff-logo img {
    height: 52px;
    width: auto;
}

.ff-nav-toggle {
    border: 1px solid var(--ff-border);
    border-radius: 6px;
    background: #fff;
    padding: 0.3rem 0.6rem;
    color: var(--ff-navy);
    line-height: 1;
}

.ff-nav-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 1rem;
}

.ff-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
}

.ff-nav a {
    display: inline-block;
    color: var(--ff-navy);
    font-weight: 600;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
}
.ff-nav a:hover,
.ff-nav a.active {
    color: var(--ff-red);
    border-bottom-color: var(--ff-red);
}

.ff-auth-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn-ff-navy,
.btn-ff-red,
.btn-ff-outline-red {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-ff-navy {
    background-color: var(--ff-navy);
    border: 1px solid var(--ff-navy);
    color: #fff;
}
.btn-ff-navy:hover {
    background-color: var(--ff-navy-dark);
    border-color: var(--ff-navy-dark);
    color: #fff;
}

.btn-ff-red {
    background-color: var(--ff-red);
    border: 1px solid var(--ff-red);
    color: #fff;
}
.btn-ff-red:hover {
    background-color: var(--ff-red-dark);
    border-color: var(--ff-red-dark);
    color: #fff;
}

.btn-ff-outline-red {
    background-color: #fff;
    border: 1px solid var(--ff-red);
    color: var(--ff-red);
}
.btn-ff-outline-red:hover {
    background-color: var(--ff-red);
    color: #fff;
}

/* ---------- Hero ---------- */
.ff-hero {
    position: relative;
    overflow: hidden;
    background: var(--ff-navy-soft);
}

.ff-hero__circle {
    position: absolute;
    top: -20%;
    left: 30%;
    width: 60%;
    height: 160%;
    background: #fff;
    border-radius: 50%;
    opacity: 0.6;
    z-index: 0;
}

.ff-hero__content {
    position: relative;
    z-index: 1;
    padding-block: 4rem;
}

.ff-hero h1 {
    color: var(--ff-navy);
    font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.15;
}

.ff-hero__lead {
    color: var(--ff-text-muted);
    font-size: 1.1rem;
    max-width: 32rem;
}

.ff-hero__logo {
    position: relative;
    z-index: 1;
    max-width: 100%;
    height: auto;
}

.ff-hero__wave {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 140px;
    z-index: 0;
    pointer-events: none;
}
.ff-hero__wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ---------- Level cards ---------- */
.ff-level-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--ff-border);
    border-radius: 10px;
    overflow: hidden;
    color: var(--ff-text);
    box-shadow: 0 4px 14px rgba(20, 30, 60, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ff-level-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(20, 30, 60, 0.12);
    color: var(--ff-text);
}

.ff-level-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
}
.ff-level-card--beginner .ff-level-card__header { background: var(--ff-navy); }
.ff-level-card--intermediate .ff-level-card__header { background: var(--ff-green); }
.ff-level-card--advanced .ff-level-card__header { background: var(--ff-red); }

.ff-level-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ff-level-card--beginner .ff-level-card__icon { color: var(--ff-navy); }
.ff-level-card--intermediate .ff-level-card__icon { color: var(--ff-green); }
.ff-level-card--advanced .ff-level-card__icon { color: var(--ff-red); }

.ff-level-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.ff-level-card__list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    flex: 1;
}
.ff-level-card__list li {
    padding: 0.35rem 0;
}

.ff-card__arrow {
    align-self: flex-end;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}
.ff-level-card--beginner .ff-card__arrow { background: var(--ff-navy); }
.ff-level-card--intermediate .ff-card__arrow { background: var(--ff-green); }
.ff-level-card--advanced .ff-card__arrow { background: var(--ff-red); }

/* ---------- Secondary (info) cards ---------- */
.ff-info-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--ff-border);
    border-radius: 10px;
    padding: 1.25rem;
    color: var(--ff-text);
    box-shadow: 0 4px 14px rgba(20, 30, 60, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ff-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(20, 30, 60, 0.1);
    color: var(--ff-text);
}

.ff-info-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ff-navy-soft);
    color: var(--ff-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.ff-info-card__title {
    color: var(--ff-navy);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.ff-info-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}
.ff-info-card__list li {
    padding: 0.2rem 0;
    color: var(--ff-text-muted);
}

.ff-info-card .ff-card__arrow {
    background: var(--ff-navy);
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

/* ---------- Footer ---------- */
.ff-footer {
    background: var(--ff-navy);
    color: rgba(255, 255, 255, 0.85);
    padding-block: 3rem 1.25rem;
    font-size: 0.9rem;
}

.ff-footer__logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.ff-footer__tagline {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1rem;
}

.ff-footer__social {
    display: flex;
    gap: 0.75rem;
}
.ff-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}
.ff-footer__social a:hover {
    background: var(--ff-red);
    color: #fff;
}

.ff-footer__heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ff-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ff-footer__list li {
    margin-bottom: 0.6rem;
}
.ff-footer__list a {
    color: rgba(255, 255, 255, 0.85);
}
.ff-footer__list a:hover {
    color: #fff;
}

.ff-footer__subscribe .form-control {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.ff-footer__subscribe .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.ff-footer__subscribe .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: none;
    border-color: var(--ff-red);
}

.ff-footer__divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 2rem 0 1.25rem;
}

/* ---------- Coming soon ---------- */
.ff-coming-soon {
    padding-block: 5rem;
    text-align: center;
}

/* ---------- Auth ---------- */
.ff-user-greeting {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--ff-navy);
}

.ff-auth-card {
    background: #fff;
    border: 1px solid var(--ff-border);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 14px rgba(20, 30, 60, 0.06);
    text-align: center;
}
.ff-auth-card form {
    text-align: left;
}
.ff-auth-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
}

.ff-account-type-toggle {
    display: flex;
    width: 100%;
}
.ff-account-type-toggle .btn {
    flex: 1;
}

.btn-outline-ff-navy {
    border: 1px solid var(--ff-navy);
    color: var(--ff-navy);
    font-weight: 600;
}
.btn-check:checked + .btn-outline-ff-navy {
    background-color: var(--ff-navy);
    color: #fff;
}

/* ---------- Admin ---------- */
.bg-ff-navy {
    background-color: var(--ff-navy) !important;
    color: #fff !important;
}
.nav-pills .nav-link {
    color: var(--ff-navy);
    font-weight: 600;
}
.ff-vocab-row + .ff-vocab-row {
    margin-top: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .ff-nav-collapse {
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-block: 1rem;
    }
    .ff-nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }
    .ff-auth-buttons {
        padding-top: 1rem;
        border-top: 1px solid var(--ff-border);
        margin-top: 1rem;
    }
    .ff-hero__logo {
        max-width: 55%;
        margin-inline: auto;
        display: block;
    }
}

@media (max-width: 575.98px) {
    .ff-auth-buttons {
        flex-direction: column;
    }
    .ff-hero__content {
        text-align: center;
    }
    .ff-hero__lead {
        margin-inline: auto;
    }
    .ff-hero .ff-hero__ctas {
        flex-direction: column;
    }
}

/* ---------- Admin dashboard layout ---------- */
.ff-admin-sidebar {
    background: #fff;
    border-right: 1px solid var(--ff-border);
    padding-top: 1.5rem;
    min-height: calc(100vh - 80px);
}

.ff-admin-nav__heading {
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ff-text-muted);
    margin: 1.25rem 0 0.5rem;
    padding-inline: 0.75rem;
}
.ff-admin-nav__heading:first-child {
    margin-top: 0;
}

.ff-admin-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ff-admin-nav__list a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: var(--ff-text);
    font-weight: 600;
    font-size: 0.92rem;
}
.ff-admin-nav__list a:hover {
    background: var(--ff-navy-soft);
    color: var(--ff-navy);
}
.ff-admin-nav__list a.active {
    background: var(--ff-navy);
    color: #fff;
}

.ff-admin-content {
    background: #f7f8fb;
}

.ff-stat-card {
    background: #fff;
    border: 1px solid var(--ff-border);
    border-radius: 10px;
    padding: 1.25rem;
    height: 100%;
}
.ff-stat-card__value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ff-navy);
    line-height: 1.1;
}
.ff-stat-card__label {
    color: var(--ff-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .ff-admin-sidebar {
        min-height: 0;
        border-right: none;
        border-bottom: 1px solid var(--ff-border);
        padding-bottom: 0.5rem;
    }
}
