/* assets/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-base: #E3F2FD;
    --aurora-1: #90CAF9;
    --aurora-2: #BBDEFB;
    --aurora-3: #ffffff;
}

/* HARD FIX: Jemnější ořez, který nerozbíjí fixed prvky */
html {
    width: 100%;
    overflow-x: hidden;
}

body { 
    font-family: 'Inter', sans-serif; 
    scroll-behavior: smooth; 
    background-color: #f8fafc;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* AURORA EFEKT */
.aurora-container {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    width: 100%;
}

.aurora-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 1;
    border-radius: 50%;
    animation: move 20s infinite alternate ease-in-out;
}

.blob-1 { background: var(--aurora-1); width: 70vw; height: 70vw; top: -20%; left: -20%; animation-duration: 25s; }
.blob-2 { background: var(--aurora-2); width: 60vw; height: 60vw; bottom: -10%; right: -10%; animation-direction: alternate-reverse; animation-duration: 30s; }
.blob-3 { background: var(--aurora-3); width: 40vw; height: 40vw; top: 10%; right: 10%; opacity: 0.9; }

@keyframes move {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(30px, 20px) scale(1.05) rotate(10deg); }
    100% { transform: translate(-20px, 30px) scale(0.95) rotate(-10deg); }
}

.glass { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(20px); }
.content-z { position: relative; z-index: 10; }

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* FLY ANIMATION (Moucha) */
.fly-wrapper {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    animation: fly-path 12s infinite ease-in-out;
    will-change: top, left, transform;
}

.fly-icon {
    font-size: 24px;
    display: block;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3));
    animation: fly-shake 0.1s infinite linear, fly-rotate 12s infinite ease-in-out;
}

@keyframes fly-path {
    0% { top: 75%; left: 15%; } 
    20% { top: 25%; left: 45%; }
    40% { top: 60%; left: 70%; }
    60% { top: 35%; left: 60%; }
    80% { top: 50%; left: 25%; }
    100% { top: 75%; left: 15%; }
}

@keyframes fly-rotate {
    0% { transform: rotate(45deg) scaleX(1); }
    20% { transform: rotate(10deg) scaleX(1); }
    39% { transform: rotate(0deg) scaleX(1); }
    40% { transform: rotate(0deg) scaleX(-1); }
    60% { transform: rotate(-20deg) scaleX(-1); }
    79% { transform: rotate(-10deg) scaleX(-1); }
    80% { transform: rotate(0deg) scaleX(1); }
    100% { transform: rotate(45deg) scaleX(1); }
}

@keyframes fly-shake {
    0% { transform: translate(0, 0); }
    50% { transform: translate(1px, 1px); }
    100% { transform: translate(0, 0); }
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform-origin: top;
}
.menu-hidden {
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
}
.menu-visible {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
}

/* FAQ – typografie a drobné UI detaily (profesionální čitelnost) */
#content-faq .faq-answer {
    line-height: 1.75;
}

#content-faq .faq-answer p {
    margin-top: 0.85rem;
}
#content-faq .faq-answer p:first-child {
    margin-top: 0;
}

#content-faq .faq-answer ul,
#content-faq .faq-answer ol {
    margin-top: 0.85rem;
    padding-left: 1.25rem;
}

#content-faq .faq-answer li {
    margin-top: 0.35rem;
}

#content-faq .faq-answer strong {
    color: #0f172a;
}

.faq-more {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.faq-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 800;
    color: #2563eb;
    text-decoration: none;
}

.faq-more-link::after {
    content: "→";
    font-weight: 900;
}

.faq-more-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Tabs – "Formy Viili kultury" (Varianta 2: přepínání sekcí) */
.cf-tabs {
    user-select: none;
}

.cf-tab {
    appearance: none;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    color: #0f172a;
    font-weight: 900;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0.75rem 1.05rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.cf-tab:hover {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.cf-tab:active {
    transform: translateY(0px) scale(0.99);
}

.cf-tab.is-active {
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(37, 99, 235, 0.32);
    color: #1d4ed8;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
}

.cf-panel {
    animation: cfFadeIn 0.18s ease-out;
}

@keyframes cfFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0px); }
}

/* CTA "chip" – odkaz na Viili Akademii (header + mobile menu) */
.academy-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.05rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    color: #1d4ed8;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.academy-pill i {
    font-size: 0.95em;
}

.academy-pill:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.academy-pill:active {
    transform: translateY(0px) scale(0.99);
}

.academy-pill--block {
    width: 100%;
    justify-content: center;
}

/* Jemný „vystouplý“ badge (ne vypadat jako tlačítko) */
.soft-note {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.65rem 0.95rem;
    border-radius: 0.9rem;
    max-width: 54ch;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow:
        0 14px 34px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    color: rgba(71, 85, 105, 0.95);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-transform: none;
}

.soft-note i {
    font-size: 0.95em;
    margin-top: 0.12rem;
}

/* Akademie: jemné dýchání štítu (bez křiklavých efektů) */
@keyframes shieldBreathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}
.shield-breathing {
    animation: shieldBreathing 10s ease-in-out infinite;
    transform-origin: center;
}
