/* ===================================
   KvízOnline.cz - FINÁLNÍ DESIGN
   =================================== */

/* Základ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --gradient-text: linear-gradient(135deg, #a5b4fc 0%, #6366f1 50%, #ec4899 100%);
    --gradient-btn: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --white: #ffffff;
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 1rem;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* --- NAVIGACE --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid #e2e8f0;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; }

/* Styl pro LOGO */
.logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    text-decoration: none; 
}

.logo-image {
    height: 40px; /* Výška loga */
    width: auto;
    object-fit: contain;
}

.logo-text { 
    font-weight: 800; 
    font-size: 1.5rem;
    background: var(--gradient-btn); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.nav-links { display: flex; gap: 1.5rem; }
.nav-link { font-weight: 500; color: var(--text-gray); padding: 0.5rem 1rem; border-radius: 0.5rem; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(99, 102, 241, 0.1); }
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* --- HERO SEKCE --- */
.hero {
    position: relative;
    padding: 5rem 0;
    text-align: center;
    color: white;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-video {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    z-index: 0; object-fit: cover;
    filter: brightness(0.6);
}

.hero-content { position: relative; z-index: 2; width: 100%; }

.hero-title {
    font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.hero-desc {
    font-size: 1.25rem; color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto;
}

.hero-stats { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 1rem;
    min-width: 140px;
}
.stat-num { font-size: 2rem; font-weight: 800; display: block; }
.stat-label { font-size: 0.9rem; text-transform: uppercase; opacity: 0.8; }

/* --- FILTRY (KATEGORIE) - ZAROVNÁNÍ NA STŘED --- */
.filters {
    margin: 2rem auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Horizontální střed pro flex položky (nadpis a tagy) */
    text-align: center;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center; /* Zarovnání bublin na střed */
    width: 100%;
    max-width: 900px; /* Aby se to neroztahovalo moc do šířky */
}

.tag {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-gray);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    opacity: 0;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popIn { from { opacity: 0; transform: scale(0.5) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.tag:nth-child(1) { animation-delay: 0.05s; } .tag:nth-child(2) { animation-delay: 0.1s; } .tag:nth-child(3) { animation-delay: 0.15s; } .tag:nth-child(4) { animation-delay: 0.2s; } .tag:nth-child(5) { animation-delay: 0.25s; } .tag:nth-child(6) { animation-delay: 0.3s; } .tag:nth-child(7) { animation-delay: 0.35s; } .tag:nth-child(8) { animation-delay: 0.4s; } .tag:nth-child(9) { animation-delay: 0.45s; } .tag:nth-child(10) { animation-delay: 0.5s; } .tag:nth-child(11) { animation-delay: 0.55s; } .tag:nth-child(12) { animation-delay: 0.6s; }

.tag:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.tag.active { background: var(--gradient-btn); color: white; border-color: transparent; }

/* --- KARTY KVÍZŮ --- */
.quiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2.5rem; padding: 2rem 0; }

@keyframes cardEntrance { 0% { opacity: 0; transform: translateY(100px) rotateX(-15deg); } 100% { opacity: 1; transform: translateY(0) rotateX(0); } }

.quiz-card {
    background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.02); display: flex; flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0; animation: cardEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.quiz-card:nth-child(1) { animation-delay: 0.2s; } .quiz-card:nth-child(2) { animation-delay: 0.3s; } .quiz-card:nth-child(3) { animation-delay: 0.4s; } .quiz-card:nth-child(4) { animation-delay: 0.5s; } .quiz-card:nth-child(5) { animation-delay: 0.6s; } .quiz-card:nth-child(6) { animation-delay: 0.7s; } .quiz-card:nth-child(7) { animation-delay: 0.8s; } .quiz-card:nth-child(8) { animation-delay: 0.9s; } .quiz-card:nth-child(9) { animation-delay: 1.0s; }

.quiz-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15); z-index: 2; }

.card-img-wrap { position: relative; height: 180px; overflow: hidden; background: #eee; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.quiz-card:hover .card-img { transform: scale(1.15); }

.card-badge { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); padding: 0.3rem 0.8rem; border-radius: 8px; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; }

.card-content { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-cat { color: var(--primary); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.5rem; }
.card-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.3; }
.card-desc { color: var(--text-gray); font-size: 0.95rem; margin-bottom: 1.5rem; flex: 1; }
.card-meta { padding-top: 1rem; border-top: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; color: var(--text-gray); font-size: 0.85rem; font-weight: 600; }
.btn-play { width: 100%; margin-top: 1rem; padding: 0.8rem; background: var(--gradient-btn); color: white; text-align: center; border-radius: 0.6rem; font-weight: 700; border: none; cursor: pointer; }

/* --- REKLAMY CENTROVÁNÍ --- */
.ad-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    text-align: center;
}
.ad-wrapper > div, .ad-wrapper iframe { margin-left: auto !important; margin-right: auto !important; }

/* Intro box */
.intro-wrap { padding: 2rem 0; }
.intro-box { background: white; padding: 2rem; border-radius: 1rem; box-shadow: var(--shadow-card); text-align: center; border-top: 4px solid var(--primary); }

/* Footer */
.footer { background: var(--text-dark); color: white; padding: 4rem 0; margin-top: auto; }
.footer-content { text-align: center; }

/* Mobil */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .hero-title { font-size: 2.2rem; }
    .hero-stats { gap: 1rem; }
    .stat-box { flex: 1; min-width: 45%; padding: 1rem; }
    .quiz-grid { grid-template-columns: 1fr; }
}
/* ===================================
   NOVÁ KONTAKTNÍ SEKCE (ŠIROKÁ)
   =================================== */

.contact-section {
    padding: 4rem 1.5rem;
    background: var(--bg-light);
    min-height: 80vh;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info menší, formulář větší */
    gap: 3rem;
    align-items: start;
}

/* Karta */
.contact-card {
    background: white;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Nadpisy v kontaktu */
.contact-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-title i, .contact-title span {
    color: var(--primary);
}

/* Položky v levém sloupci */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.info-box:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.info-text p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Formulář */
.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 0.8rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Provozovatel box pod tím */
.operator-box {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: #eef2ff;
    border-radius: var(--radius);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Alerty */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Responzivita */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr; /* Pod sebe na menších PC/tabletech */
        gap: 2rem;
    }
    
    .contact-section {
        padding: 2rem 1rem;
    }
}
/* ============================================================
   DOPLNĚK: ZÁSADY OCHRANY OSOBNÍCH ÚDAJŮ & NOVÝ FOOTER
   Vložte na konec style.css
   ============================================================ */

/* --- Formátování textu zásad --- */
.policy-section {
    padding: 3rem 0;
    min-height: 80vh;
}

.policy-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.05);
}

.policy-content h1 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1rem;
}

.policy-content h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.policy-content h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.policy-content p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.policy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.policy-content strong {
    color: var(--primary-dark);
}

.policy-content a {
    color: var(--primary);
    text-decoration: underline;
}

.policy-highlight {
    background: #f8fafc; /* var(--bg-light) */
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* --- NOVÝ FOOTER S ODKAZY --- */
.footer {
    background: #1e293b; /* var(--text-dark) */
    color: white;
    padding: 3rem 0;
    margin-top: auto;
    position: relative;
    z-index: 100; /* Nad reklamami */
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copyright {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.footer-link:hover, 
.footer-link.active {
    color: var(--primary); /* #6366f1 */
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.footer-separator {
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
}

/* Ochrana patičky proti vkládání reklam */
.footer ins,
.footer iframe,
.footer .google-auto-placed,
.footer .adsbygoogle {
    display: none !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Responsivita pro footer a zásady */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .footer-separator {
        display: none;
    }

    .policy-card {
        padding: 1.5rem;
    }
    
    .policy-content h1 {
        font-size: 1.8rem;
    }
}