﻿/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
}

/* ── Body: fixed shell ── */
body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    /* rich gradient behind glass elements */
    background-image: radial-gradient(ellipse at 20% 30%, rgba(124,58,237,0.25) 0%, transparent 60%),
                      radial-gradient(ellipse at 80% 70%, rgba(59,130,246,0.20) 0%, transparent 55%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Fixed header ── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    z-index: 900;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    background: rgba(13,27,42,0.70);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 16px rgba(0,0,0,0.40);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.site-logo img {
    height: 36px;
    width: auto;
    flex-shrink: 0;
}

.site-logo-text {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background-image: linear-gradient(105deg, #e0d7ff 0%, #a78bfa 45%, #93c5fd 100%);
    background-size: 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* ── Scrollable main ── */
main {
    flex: 1;
    margin-top: 64px;
    margin-bottom: 32px;
    overflow-y: auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Glass content panel ── */
.glass-panel {
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.30);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 40px rgba(0,0,0,0.50), inset 0 1px 0 rgba(255,255,255,0.15);
    padding: 2rem 2rem;
    width: 100%;
    max-width: 1000px;
    transition: background 200ms ease, box-shadow 200ms ease;
}

.glass-panel:hover {
    background: rgba(255,255,255,0.18);
    box-shadow: var(--shadow-glow);
}

/* ── Fixed footer ── */
.site-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 32px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-footer);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-top: 1px solid var(--color-border-footer);
    box-shadow: var(--shadow-footer);
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* ── Utility ── */
a {
    color: var(--color-primary-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a.site-logo,
a.site-logo:hover,
a.site-logo:focus {
    text-decoration: none;
}

/* ── Corner overlay ── */
.corner-overlay {
    position: fixed;
    bottom: 48px;
    right: 1.5rem;
    width: 100px;
    height: auto;
    opacity: 0.20;
    pointer-events: none;
    user-select: none;
    z-index: 850;
}

.corner-overlay--hidden {
    display: none;
}

.ext-lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.ext-lang-card {
    padding: 0.75rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ext-lang-card + .ext-lang-card {
    border-left: 1px solid rgba(255,255,255,0.12);
}

.ext-flag {
    width: 48px;
    height: 32px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.45);
    flex-shrink: 0;
}

.ext-flag--square {
    width: 32px;
    height: 32px;
}

.ext-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.35rem;
}

.ext-lang-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.ext-note {
    font-size: 0.82rem !important;
    color: rgba(240,238,255,0.35) !important;
}

