/* --- 1. IMPORTY --- */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@300;500;700&display=swap');

/* --- 2. PROMĚNNÉ --- */
:root {
    --primary: #6366f1;
    --primary-dark: #4338ca;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --dark-bg: #0b0f19;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-main: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-btn: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

/* --- 3. ZÁKLAD --- */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { background-color: var(--dark-bg); color: var(--text-main); font-family: 'Outfit', sans-serif; overflow-x: hidden; width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- 4. POZADÍ --- */
.background-fx { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; }
.blob { position: absolute; filter: blur(80px); opacity: 0.4; animation: float 10s infinite ease-in-out alternate; }
.blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: var(--primary); }
.blob-2 { bottom: -10%; right: -10%; width: 600px; height: 600px; background: var(--secondary); animation-delay: -5s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30px, 50px) scale(1.1); } }

/* --- 5. UI KOMPONENTY --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 3rem; margin-bottom: 15px; font-family: 'Space Grotesk', sans-serif; }
.section-header span { color: var(--accent); }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

.btn { padding: 12px 30px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.btn-primary { background: var(--gradient-main); border: none; color: white; box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.6); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -10px rgba(236, 72, 153, 0.6); }
.btn-glass { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); color: white; backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--primary); }
.btn-center { margin-top: 40px; display: flex; justify-content: center; }

/* OPRAVA SELECTU (OBTÍŽNOST) */
select { color: white; background-color: rgba(255,255,255,0.05); cursor: pointer; }
select option { background-color: #1e1b4b; color: white; padding: 10px; }

/* --- 6. HEADER --- */
header { padding: 20px 0; position: fixed; width: 100%; top: 0; z-index: 100; background: rgba(11, 15, 25, 0.9); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-family: 'Space Grotesk', sans-serif; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.logo i { color: var(--accent); }
.nav-menu { display: flex; align-items: center; }
.nav-menu a { color: var(--text-muted); margin-left: 30px; font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover { color: var(--text-main); }

/* --- 7. HERO SEKCE (PC) --- */
.hero { min-height: 90vh; display: flex; align-items: center; padding-top: 100px; padding-bottom: 50px; position: relative; overflow-x: hidden; }
.hero-content { display: grid; grid-template-columns: 4fr 6fr; gap: 40px; align-items: center; }

.hero-text h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-family: 'Space Grotesk', sans-serif; }
.hero-text h1 span { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; max-width: 500px; }

/* VIZUÁL */
.hero-visual { position: relative; height: 550px; perspective: 1000px; }
.interface-card {
    background: rgba(20, 25, 40, 0.95); border: 1px solid var(--glass-border); border-radius: 20px;
    padding: 25px; position: absolute; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); backdrop-filter: blur(20px);
}

/* Animace vznášení */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* Karta AI (Posunuto NÍŽE) */
.card-ai { 
    width: 240px; 
    top: 130px; left: 0; z-index: 1;
    background: linear-gradient(145deg, rgba(30,30,50,0.9), rgba(10,10,20,0.9)); border: 1px solid var(--primary);
    animation: float 6s infinite ease-in-out;
}

/* Karta Main (Posunuto NÍŽE) */
.card-main { 
    width: 320px; right: 0; top: 50px; z-index: 2;
    transform: rotateY(-5deg); animation: float 7s infinite ease-in-out reverse;
    border: 1px solid var(--accent);
}

.hero-options-grid { margin-top: 15px; display: grid; gap: 8px; }
.hero-opt { padding: 10px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.opt-red { background: rgba(226, 27, 60, 0.2); border: 1px solid #e21b3c; color: #ffadad; }
.opt-blue { background: rgba(19, 104, 206, 0.2); border: 1px solid #1368ce; color: #a6caff; }
.opt-yellow { background: rgba(216, 158, 0, 0.2); border: 1px solid #d89e00; color: #ffeab6; }
.opt-green { background: rgba(38, 137, 12, 0.2); border: 1px solid #26890c; color: #bbf0ad; box-shadow: 0 0 10px rgba(38, 137, 12, 0.4); }

/* --- 8. VIDEO SEKCE --- */
.video-showcase { position: relative; width: 100%; height: 400px; overflow: hidden; margin-top: 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.video-showcase video { width: 100%; height: 100%; object-fit: cover; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, var(--dark-bg) 0%, rgba(11,15,25,0.4) 50%, var(--dark-bg) 100%); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.video-overlay h3 { font-size: 3rem; color: rgba(255,255,255,0.1); font-family: 'Space Grotesk', sans-serif; letter-spacing: 10px; text-transform: uppercase; }

/* --- 9. KARTY KVÍZŮ --- */
.quiz-section { padding: 80px 0; position: relative; }
.quiz-section.alt-bg { background: rgba(255,255,255,0.02); }
.quiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }

.quiz-card, .article-card {
    background: #131b2e; border-radius: 20px; overflow: hidden; border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%;
}
.quiz-card:hover, .article-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 20px 60px -10px rgba(99, 102, 241, 0.4); border-color: var(--accent); z-index: 10; }
.quiz-card::before, .article-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent); transform: skewX(-25deg); transition: 0.5s; z-index: 2; pointer-events: none; }
.quiz-card:hover::before, .article-card:hover::before { left: 150%; transition: 0.7s; }

.quiz-thumb { height: 180px; background: #2d3748; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.quiz-content { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.quiz-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; color: white; line-height: 1.3; }
.quiz-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; }
.quiz-author { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin-bottom: 20px; }
.avatar-circle { width: 24px; height: 24px; border-radius: 50%; background: var(--text-muted); }
.quiz-cat { position: absolute; top: 15px; left: 15px; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; text-transform: uppercase; font-weight: bold; color: white; border: 1px solid rgba(255,255,255,0.2); }
.thumb-1 { background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); }
.thumb-2 { background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%); }
.thumb-3 { background: linear-gradient(120deg, #fccb90 0%, #d57eeb 100%); }

/* --- 10. TLAČÍTKA NA KARTÁCH --- */
.card-actions { margin-top: auto; display: flex; gap: 10px; width: 100%; align-items: stretch; }
.btn-play-big {
    flex: 1; text-align: center; background: var(--gradient-btn); color: white; padding: 12px 10px;
    border-radius: 10px; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.3s ease; text-decoration: none; box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}
.btn-play-big:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(6, 182, 212, 0.6); }
.btn-host-small {
    width: 50px; flex-shrink: 0; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);
    border-radius: 10px; color: white !important; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease;
}
.btn-host-small:hover { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 0 15px var(--primary); }

/* --- 11. MAGAZÍN --- */
.article-thumb { height: 200px; background-size: cover; background-position: center; border-bottom: 1px solid var(--glass-border); }
.article-content { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.article-title { font-size: 1.4rem; font-weight: bold; margin-bottom: 10px; color: white; line-height: 1.3; }
.article-perex { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; flex: 1; line-height: 1.6; }
.read-more-btn { align-self: flex-start; color: var(--accent); font-weight: bold; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; border-bottom: 2px solid transparent; transition: 0.3s; }
.read-more-btn:hover { border-bottom-color: var(--accent); padding-bottom: 2px; }

/* --- 12. CENÍK A FOOTER --- */
.pricing-section { padding: 100px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: center; }
.price-card { background: var(--card-bg); border: 1px solid var(--glass-border); padding: 40px; border-radius: 20px; text-align: center; transition: 0.3s; width: 100%; }
.price-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.05); }
.price-card.featured { background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(20, 20, 30, 0) 100%); border: 1px solid var(--primary); transform: scale(1.05); }
.price-amount { font-size: 3rem; font-weight: 700; margin: 20px 0; color: white; }
.price-features ul { list-style: none; margin: 30px 0; text-align: left; }
.price-features li { margin-bottom: 15px; color: var(--text-muted); display: flex; gap: 10px; }
footer { padding: 50px 0; text-align: center; border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 0.9rem; }

/* --- 13. MOBILNÍ NAVIGACE --- */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.bar { display: block; width: 25px; height: 3px; background-color: white; transition: 0.3s; border-radius: 3px; }

/* --- 14. RESPONSIVITA (MOBILNÍ OPRAVA) --- */

@keyframes floatMobileCentered {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-20px); }
}

@media (max-width: 968px) {
    /* Hero - sloupce pod sebe */
    .hero-content { grid-template-columns: 1fr !important; text-align: center; gap: 40px; }
    
    /* Vizuál na mobilu */
    .hero-visual { display: block !important; height: 320px !important; margin-top: 20px; perspective: none; }
    .card-ai { display: none !important; }
    
    .card-main { 
        width: 300px; 
        left: 50% !important; 
        right: auto !important; 
        top: 0; 
        animation: floatMobileCentered 6s infinite ease-in-out !important;
        transform-origin: center center !important;
        rotate: none !important;
        border: 1px solid var(--accent);
    }
    
    /* Grid karet */
    .quiz-grid { grid-template-columns: 1fr !important; }
    
    /* CENÍK FIX - ZMĚNA NA FLEXBOX */
    .pricing-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
        width: 100% !important;
        padding: 0 !important;
    }
    
    /* Zrušit roztažení u prostřední karty na mobilu */
    .price-card.featured {
        transform: none !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .section-header h2 { font-size: 2.2rem; }
    
    /* Mobilní menu */
    .hamburger { display: flex; z-index: 1001; }
    .nav-menu { position: fixed; right: -100%; top: 0; width: 75%; height: 100vh; background: rgba(11, 15, 25, 0.98); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; align-items: center; gap: 30px; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: -10px 0 30px rgba(0,0,0,0.5); z-index: 1000; border-left: 1px solid var(--glass-border); }
    .nav-menu.active { right: 0; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
/* --- EFEKTY Z OBCHODU --- */

/* Textové efekty */
.text-gold {
    background: linear-gradient(to bottom, #cfc09f 22%, #634f2c 24%, #cfc09f 26%, #cfc09f 27%, #ffecb3 40%, #3a2c0f 78%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    color: #fff; 
    font-weight: bold;
}

/* Rámečkové efekty pro avatary */
.border-neon-blue {
    box-shadow: 0 0 10px #06b6d4, 0 0 20px #06b6d4, inset 0 0 10px #06b6d4;
    border: 2px solid #06b6d4 !important;
}

.vip-status {
    box-shadow: 0 0 15px #ec4899;
    border: 2px solid #ec4899 !important;
    animation: pulse-vip 2s infinite;
}

@keyframes pulse-vip {
    0% { box-shadow: 0 0 15px #ec4899; }
    50% { box-shadow: 0 0 30px #ec4899; }
    100% { box-shadow: 0 0 15px #ec4899; }
}