/* =========================================
   1. CORE SETTINGS & RESET
   ========================================= */
:root {
    --bg: #080808;
    --text: #f0f0f0;
    --gold: #c6a87c;
    --gold-glow: rgba(198, 168, 124, 0.5);
    --glass: rgba(20, 20, 20, 0.85); /* Zvýšena neprůhlednost pro čitelnost */
    --glass-border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden; /* Zabrání horizontálnímu scrollování */
}

h1, h2, h3, h4, blockquote { font-family: 'Playfair Display', serif; }
img { width: 100%; height: 100%; object-fit: cover; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* =========================================
   2. UI ELEMENTS (Cursor, Nav, Buttons)
   ========================================= */
/* Custom Cursor */
.cursor-dot {
    width: 8px; height: 8px; background: var(--gold); position: fixed; border-radius: 50%; pointer-events: none; z-index: 9999;
}
.cursor-circle {
    width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.3); position: fixed; border-radius: 50%; pointer-events: none; z-index: 9999; transition: transform 0.1s;
}
body.hovering .cursor-circle { transform: scale(2); background: rgba(255,255,255,0.05); border-color: transparent; }

/* Navigation */
nav {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1200px; padding: 15px 40px;
    background: var(--glass); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border); border-radius: 50px;
    display: flex; justify-content: space-between; align-items: center; z-index: 1000;
}
.logo { font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { text-transform: uppercase; font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; color: #ccc; }
.nav-links a:hover { color: var(--gold); }

/* Mobile Menu Elements */
.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 10px; }
.hamburger span { width: 25px; height: 2px; background: white; transition: 0.3s; }

.mobile-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #000; z-index: 999;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px;
    transform: translateX(100%); transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu a { font-size: 2rem; font-family: 'Playfair Display', serif; color: white; }

/* Buttons */
.btn-main {
    display: inline-block; padding: 15px 45px; border: 1px solid var(--gold); color: var(--gold);
    text-transform: uppercase; font-weight: 800; letter-spacing: 2px; margin-top: 50px;
    transition: 0.4s; opacity: 0; animation: fadeUp 1s forwards 1.1s; background: transparent;
}
.btn-main:hover { background: var(--gold); color: black; box-shadow: 0 0 30px var(--gold-glow); }

/* =========================================
   3. HOMEPAGE SECTIONS
   ========================================= */
/* Hero */
.hero {
    height: 100vh; width: 100%; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    animation: kenBurns 20s infinite alternate;
}
.hero-content { position: relative; z-index: 10; padding: 0 20px; width: 100%; max-width: 1000px; }
.hero h1 {
    font-size: clamp(3rem, 10vw, 8rem); line-height: 1; font-style: italic; margin-bottom: 20px;
    opacity: 0; animation: fadeUp 1s forwards 0.5s;
}
.hero p {
    font-size: 1.2rem; margin-bottom: 40px; color: #ddd; max-width: 600px; margin-left: auto; margin-right: auto;
    opacity: 0; animation: fadeUp 1s forwards 0.8s;
}

/* Marquee */
.marquee {
    background: var(--gold); color: black; padding: 15px 0; overflow: hidden; white-space: nowrap;
    position: relative; z-index: 20; transform: rotate(-1deg) scale(1.05);
}
.track { display: inline-block; animation: marquee 20s linear infinite; font-weight: 800; font-size: 2rem; text-transform: uppercase; }

/* Common Layout */
.section-padding { padding: 100px 5vw; }
.section-title { font-size: 3rem; margin-bottom: 50px; }

/* Intro */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.intro-text h2 { font-size: clamp(3rem, 5vw, 5rem); line-height: 1.1; margin-bottom: 30px; }
.intro-img {
    height: 600px; border-radius: 10px; overflow: hidden;
    transform: translateX(100px) rotateY(-30deg); opacity: 0; transition: 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.intro-img.in-view { transform: translateX(0) rotateY(0deg); opacity: 1; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card {
    height: 450px; border-radius: 15px; position: relative; overflow: hidden; opacity: 0; transform: translateX(-50px); transition: 0.8s;
}
.card.in-view { opacity: 1; transform: translateX(0); }
.card-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: 0.6s; filter: brightness(0.5); }
.card:hover .card-bg { transform: scale(1.1); filter: brightness(0.7); }
.card-content { position: relative; z-index: 2; height: 100%; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; }

/* Banner */
.banner { width: 100%; height: 60vh; position: relative; overflow: hidden; margin: 100px 0; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: 1.5s; }
.banner-slide.active { opacity: 1; }
.banner-txt { position: absolute; bottom: 50px; left: 5vw; font-size: clamp(3rem, 8vw, 6rem); text-shadow: 0 5px 30px black; }

/* Bento Blog (Homepage) */
.bento-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 350px 350px; gap: 20px; }
.bento-item { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--glass-border); transition: 0.4s; }
.bento-item:hover { border-color: var(--gold); transform: translateY(-5px); }
.item-large { grid-row: span 2; }

/* AI Expert */
.expert-section {
    position: relative; background-color: #050505; overflow: hidden;
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.expert-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; opacity: 0.2; pointer-events: none;
}
.expert-info { position: relative; z-index: 2; padding-left: 5vw; }
.ai-status {
    display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: bold; margin-bottom: 20px;
    border: 1px solid var(--gold); padding: 5px 15px; border-radius: 20px;
}
.dot-pulse { width: 10px; height: 10px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }

.chat-window {
    position: relative; z-index: 2; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 20px; margin-right: 5vw;
    height: 500px; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.chat-header { padding: 20px; border-bottom: 1px solid var(--glass-border); display: flex; align-items: center; gap: 15px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); overflow: hidden; }
.chat-body { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }

.msg { padding: 10px 15px; border-radius: 10px; max-width: 80%; font-size: 0.9rem; line-height: 1.5; }
.msg.bot { background: rgba(255,255,255,0.1); border-left: 2px solid var(--gold); align-self: flex-start; }
.msg.user { background: var(--gold); color: black; align-self: flex-end; }
.msg.error { color: #ff4d4d; font-size: 0.8rem; text-align: center; width: 100%; }

.chat-input-area { padding: 20px; border-top: 1px solid var(--glass-border); display: flex; gap: 10px; }
.chat-input { flex: 1; background: transparent; border: 1px solid var(--glass-border); color: white; padding: 10px; border-radius: 5px; outline: none; }
.chat-send { background: var(--gold); border: none; width: 40px; border-radius: 5px; cursor: pointer; color: black; font-weight: bold; }

/* Brands */
.brands-section { padding: 80px 0; background: #0a0a0a; border-top: 1px solid #111; border-bottom: 1px solid #111; overflow: hidden; }
.brands-track { display: flex; gap: 50px; animation: marquee 30s linear infinite; width: max-content; }
.brand-item {
    width: 150px; height: 100px; background: rgba(255,255,255,0.05); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-weight: 800; color: #555; transition: 0.3s;
}
.brand-item img { opacity: 0.5; filter: grayscale(100%); transition: 0.3s; object-fit: contain; padding: 10px; }
.brand-item:hover img { opacity: 1; filter: grayscale(0%); }

/* =========================================
   4. MAGAZINE & ARTICLE STYLES
   ========================================= */

/* Magazine Hero - OPRAVENO */
.mag-hero {
    width: 100%;
    min-height: 60vh; /* Změna z fixní height, aby obsah nepřetékal */
    height: auto;     /* Povolí růst */
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
    padding-top: 150px;
    padding-bottom: 80px; /* Přidán prostor dole */
}
.outline-title {
    font-size: clamp(4rem, 10vw, 8rem); color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3); line-height: 0.8;
}
.filled-title {
    font-size: clamp(4rem, 10vw, 8rem); color: white; line-height: 0.8; margin-left: 50px;
}
.mag-filters {
    margin-top: 40px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center;
    position: relative; z-index: 10; /* Zajištění klikatelnosti */
}
.mag-filters span {
    padding: 8px 20px; border: 1px solid rgba(255,255,255,0.2); border-radius: 30px;
    font-size: 0.8rem; text-transform: uppercase; cursor: pointer; transition: 0.3s;
}
.mag-filters span:hover, .mag-filters span.active { background: var(--gold); color: black; border-color: var(--gold); }

/* Magazine Grid */

.mag-section { padding: 0 5vw 100px 5vw; position: relative; z-index: 2; }
.mag-grid {
    display: grid; grid-template-columns: repeat(12, 1fr); gap: 30px; grid-auto-flow: dense;
}
.mag-item {
    position: relative; display: block; height: 400px; overflow: hidden; text-decoration: none; color: white;
}
/* Velikosti */
.mag-item.normal { grid-column: span 4; }
.mag-item.large { grid-column: span 8; height: 500px; }
.mag-item.wide { grid-column: span 12; height: 600px; }
.mag-item.tall { grid-column: span 4; grid-row: span 2; height: 830px; }

.mag-img-wrapper { width: 100%; height: 100%; position: relative; overflow: hidden; }
.mag-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s;
    filter: grayscale(100%) brightness(0.7);
}
.mag-item:hover .mag-img-wrapper img { transform: scale(1.1); filter: grayscale(0%) brightness(1); }
.mag-info {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px); transition: 0.4s;
}
.mag-item:hover .mag-info { transform: translateY(0); }
.mag-meta { font-size: 0.75rem; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; display: block; }
.mag-title { font-size: 1.8rem; margin-bottom: 5px; line-height: 1.1; }
.mag-sub { color: #aaa; font-size: 0.9rem; opacity: 0; transform: translateY(10px); transition: 0.4s; }
.mag-item:hover .mag-sub { opacity: 1; transform: translateY(0); }

/* --- Article Detail --- */
.progress-container { width: 100%; height: 4px; background: transparent; position: fixed; top: 0; left: 0; z-index: 2000; }
.progress-bar { height: 4px; background: var(--gold); width: 0%; transition: width 0.1s; }

.article-hero {
    height: 90vh; position: relative; display: flex; align-items: flex-end; padding: 5vw;
}
.article-hero-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; filter: brightness(0.4); z-index: -1;
    will-change: transform;
}
.article-hero-content { max-width: 900px; animation: fadeUp 1s forwards; }
.article-meta .tag { background: var(--gold); color: black; padding: 5px 15px; font-weight: bold; font-size: 0.8rem; margin-right: 15px; }
.article-hero h1 { font-size: clamp(3rem, 8vw, 6rem); margin: 20px 0; line-height: 1; }

.article-body {
    background: var(--bg); position: relative; padding: 80px 5vw; z-index: 10;
}
.content-wrapper { max-width: 750px; margin: 0 auto; font-size: 1.2rem; line-height: 1.8; color: #ddd; }
.content-wrapper p { margin-bottom: 30px; }
.content-wrapper .perex { font-size: 1.5rem; color: white; font-weight: 300; margin-bottom: 50px; border-left: 3px solid var(--gold); padding-left: 20px; }
.content-wrapper h3 { font-size: 2rem; color: var(--gold); margin-top: 60px; margin-bottom: 20px; }
.content-wrapper blockquote {
    font-family: 'Playfair Display', serif; font-size: 2rem; font-style: italic; color: white;
    text-align: center; margin: 50px 0; padding: 20px; border-top: 1px solid #333; border-bottom: 1px solid #333;
}

.article-image-break {
    width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; margin-top: 50px; margin-bottom: 50px;
}
.article-image-break img { width: 100%; height: auto; max-height: 700px; object-fit: cover; }
.article-image-break .caption { display: block; text-align: center; font-size: 0.9rem; color: #888; margin-top: 10px; }

.article-footer { text-align: center; margin-top: 80px; padding-top: 50px; border-top: 1px solid #222; }
.share-btn { display: inline-block; padding: 15px 40px; border: 1px solid white; border-radius: 50px; cursor: pointer; transition: 0.3s; }
.share-btn:hover { background: white; color: black; }

.next-up { background: #111; padding: 80px 5vw; position: relative; z-index: 10; }
.next-grid { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; }
.next-item { min-width: 300px; height: 200px; position: relative; border-radius: 10px; overflow: hidden; }
.next-item span { position: absolute; bottom: 20px; left: 20px; z-index: 2; font-weight: bold; font-size: 1.2rem; }
.next-item img { transition: 0.4s; filter: brightness(0.6); }
.next-item:hover img { transform: scale(1.1); filter: brightness(0.8); }

/* =========================================
   5. FOOTER & ANIMATIONS
   ========================================= */
.main-footer { position: relative; background: #111; padding: 100px 5vw; color: white; overflow: hidden; z-index: 10; }
.footer-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; opacity: 0.1; }
.footer-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-col h4 { color: var(--gold); margin-bottom: 25px; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; }
.footer-col p { color: #aaa; line-height: 1.6; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.contact-row { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.real-icon { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); }
.newsletter-form { display: flex; gap: 10px; margin-top: 15px; }
.newsletter-input { background: rgba(255,255,255,0.05); border: 1px solid #333; padding: 10px; color: white; flex: 1; outline: none; }
.btn-small { background: var(--gold); color: black; border: none; padding: 0 20px; cursor: pointer; font-weight: bold; }
.sub-footer { background: #000; padding: 20px; text-align: center; border-top: 1px solid #1a1a1a; font-size: 0.8rem; color: #555; position: relative; z-index: 10; }

@keyframes kenBurns { 0% { transform: scale(1); } 100% { transform: scale(1.15); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 168, 124, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(198, 168, 124, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 168, 124, 0); } }

/* =========================================
   6. MOBILE OVERRIDES (MUST BE LAST)
   ========================================= */
@media (max-width: 900px) {
    /* Navigace */
    .nav-links { display: none; }
    .hamburger { display: flex; }
    
    /* Layout */
    .intro { grid-template-columns: 1fr; padding: 80px 5vw; }
    .hero-content h1 { font-size: 3.5rem; }
    .intro-text h2 { font-size: 3rem; }
    .expert-section { grid-template-columns: 1fr; padding: 50px 5vw; }
    .chat-window { margin-right: 0; margin-top: 30px; }
    
    /* Gridy */
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .item-large { height: 300px; }
    
    /* Magazine Mobile Fix */
    .mag-grid { display: flex; flex-direction: column; }
    .mag-item, .mag-item.large, .mag-item.wide, .mag-item.tall { 
        width: 100%; height: 400px; grid-column: auto; grid-row: auto; 
    }
    
    /* Cursor */
    .cursor-dot, .cursor-circle { display: none; }
    * { cursor: auto; }
}
/* --- CHAT LOADING ANIMATION --- */
.typing-indicator {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 20px;
    border-bottom-left-radius: 2px; /* Aby to vypadalo jako bublina od bota */
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    margin-bottom: 10px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}