/* ==========================================================================
   Slovacademy reusable shell + banner layout
   Used by: welcome, register, and any guest-style page that needs the
   full-viewport white shell with the green SLOVACADEMY banner.
   ========================================================================== */

:root {
    --slov-green: #5e6d55;
    --slov-green-dark: #475240;
    --slov-green-light: #4f5a45;
    --slov-green-soft: rgba(255, 255, 255, 0.16);
    --slov-text-dark: #1f1f1f;
    --slov-text-muted: #5b6160;
    --slov-card-border: #d8dcd6;
    --slov-page-bg: #ffffff;

    --blue-normal: #002d62;
    --blue-normal-hover: #002958;
    --blue-normal-active: #00244e;
    --blue-light: #e6eaef;
    --blue-light-hover: #d9e0e7;
    --blue-light-active: #b0bece;
    --blue-dark: #00224a;
    --yellow-normal: #d4af37;
    --yellow-normal-hover: #bf9e32;
    --yellow-normal-active: #aa8c2c;
    --yellow-light: #FBF7EB;
    --yellow-normal-hover: #bf9e32;
    --gray-normal: #6c757d;
    --dark-black: #0b0a0a;
}

html,
body {
    height: 100%;
}

body.slov-page {
    background-color: var(--slov-page-bg);
    font-family: "Montserrat", system-ui, -apple-system, sans-serif;
    margin: 0;
    min-height: 100vh;
}

/* ---------- Outer shell ---------- */

.slov-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

/* ---------- Optional top bar (e.g. "Account Confirmation") ---------- */

.slov-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    background: #ffffff;
    flex-shrink: 0;
}

.slov-topbar h1 {
    font-size: 14px;
    font-weight: 500;
    color: var(--slov-text-muted);
    margin: 0;
    letter-spacing: 0.2px;
}

.slov-topbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Tighten the shared language-switcher when it sits inside our topbar */
.slov-topbar .slov-language-switcher .btn.language-switcher__toggle {
    padding: 4px 10px;
    font-size: 13px;
    background: var(--blue-light);
    border: 1px solid var(--blue-normal);
    border-radius: 8px;
    box-shadow: none;
}

.slov-topbar .slov-language-switcher .btn.language-switcher__toggle:hover,
.slov-topbar .slov-language-switcher .btn.language-switcher__toggle:focus-visible {
    border-color: var(--blue-normal);
    color: var(--blue-normal-dark);
}

/* ---------- Main card (wraps banner + body) ---------- */

.slov-card {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* ---------- Green hero banner with SLOVACADEMY wordmark ---------- */

.slov-banner {
    background-color: var(--blue-normal);
    background-image: linear-gradient(180deg, var(--blue-normal) 0%, var(--blue-normal-hover) 100%);
    padding: 20px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.slov-banner__wordmark {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: clamp(44px, 10vw, 124px);
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--blue-dark);
    text-transform: uppercase;
    margin: 0;
    user-select: none;
    white-space: nowrap;
}

/* ---------- Body (centered content area below the banner) ---------- */

.slov-body {
    flex: 1 1 auto;
    padding: 60px clamp(24px, 8vw, 120px);
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

/* Welcome-page-only typography. Scoped to data-page so it doesn't leak
   into other pages (register, etc.) that use the same shell. */

body[data-page="welcome"] .slov-body h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 50px;
    color: var(--blue-normal);
    line-height: 1.1;
    padding-left: 15px;
}

body[data-page="welcome"] .slov-body p {
    font-size: 30px;
    line-height: 1;
    color: gray;
    max-width: 680px;
    margin: 0 auto 36px;
    padding-left: 15px;
}

body[data-page="welcome"] .slov-body p strong {
    font-weight: 500;
}

/* ---------- Action cards (icon + label tiles) ---------- */

.slov-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.slov-action {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 315px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid var(--slov-card-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--slov-text-dark);
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.slov-action:hover {
    border-color: var(--blue-normal);
    color: var(--blue-dark);
    box-shadow: 0 4px 14px rgba(94, 109, 85, 0.16);
}

.slov-action:focus {
    outline: none;
}

.slov-action:focus-visible {
    outline: 2px solid var(--blue-normal);
    outline-offset: 2px;
}

.slov-action__icon {
    color: var(--blue-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slov-action__icon svg {
    width: 20px;
    height: 20px;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .slov-topbar {
        padding: 14px 18px;
    }

    .slov-banner {
        padding: 24px 16px;
    }

    .slov-body {
        padding: 40px 24px;
    }

    body[data-page="welcome"] .slov-body h2 {
        font-size: 40px;
    }

    body[data-page="welcome"] .slov-body p {
        font-size: 20px;
    }

    .slov-action {
        width: 100%;
        min-width: 0;
    }
}
