/* --- EDITORIAL 6.1 ENHANCEMENTS --- */
:root {
    --gold: #a88e65;
    --ice-white: #fcfcfc;
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-main: #1a1a1a;
    --text-dim: #64748b;
    --border: rgba(0,0,0,0.06);
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --max-w: 1400px;
}

body.night-mode {
    --ice-white: #050a15;
    --card-bg: rgba(15, 23, 42, 0.7);
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
    --border: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Lato', sans-serif; background: var(--ice-white); color: var(--text-main); transition: background-color 0.8s ease, color 0.8s ease; line-height: 1.8; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; transition: color 0.8s ease; letter-spacing: -0.02em; }

/* NAVBAR */
.navbar { position: fixed; top: 0; width: 100%; z-index: 2000; background: rgba(252, 252, 252, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); transition: background-color 0.8s ease, border-color 0.8s ease; }
body.night-mode .navbar { background: rgba(5, 10, 21, 0.7); }
.nav-container { max-width: var(--max-w); margin: 0 auto; padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; text-decoration: none; color: var(--text-main); transition: color 0.6s ease; }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.nav-links a:hover { color: var(--gold); }
.btn-ctrl { background: none; border: 1px solid var(--gold); color: var(--gold); padding: 6px 12px; border-radius: 20px; cursor: pointer; font-size: 0.75rem; font-weight: 700; text-decoration: none; transition: 0.3s; }
.btn-ctrl:hover { background: var(--gold); color: white; }

/* GRID SYSTEM */
.container { max-width: var(--max-w); margin: 0 auto; padding: 80px 40px; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; text-align: left; }

/* HERO */
.hero-section { padding-top: 160px; }
.hero-text h1 { font-size: 5.5rem; margin-bottom: 25px; letter-spacing: -2px; }
.hero-text p { font-size: 1.4rem; color: var(--text-dim); margin-bottom: 40px; }
.hero-img-wrap { display: flex; justify-content: flex-end; }
.hero-img { width: 100%; max-width: 550px; border-radius: 24px; box-shadow: 0 40px 80px rgba(0,0,0,0.15); }

/* STATS */
.stats-row { display: flex; gap: 60px; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border); }
.stat-num { display: block; font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--gold); font-weight: 700; }
.stat-lab { font-size: 0.7rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; }

/* O MNĚ - NOVÉ PRVKY VLEVO/VPRAVO */
.profile-links { background: var(--card-bg); padding: 40px; border-radius: 24px; border: 1px solid var(--border); }
.profile-links h3 { font-size: 1.5rem; margin-bottom: 20px; color: var(--gold); }
.db-link { display: flex; align-items: center; gap: 15px; text-decoration: none; color: var(--text-main); font-weight: 700; margin-bottom: 20px; transition: 0.3s; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.db-link:last-child { border-bottom: none; }
.db-link:hover { color: var(--gold); padding-left: 5px; }
.maiden-name-note { margin-top: 30px; font-size: 0.85rem; color: var(--text-dim); font-style: italic; border-left: 2px solid var(--gold); padding-left: 15px; }

.logos { display: flex; gap: 40px; align-items: center; margin-top: 40px; }
.logos img { height: 26px; filter: grayscale(1); opacity: 0.5; transition: var(--transition); }
.logos img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.1); }

/* BOOKS & ARTICLES */
.section-title { font-size: 3rem; margin-bottom: 60px; text-align: left; position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -15px; left: 0; width: 60px; height: 3px; background: var(--gold); }
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.book-3d-wrap { perspective: 1200px; display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: inherit; }
.book-3d { width: 180px; height: 260px; position: relative; transform-style: preserve-3d; transform: rotateY(-20deg); transition: transform 0.1s ease-out; margin-bottom: 25px; }
.book-3d img { width: 100%; height: 100%; object-fit: cover; box-shadow: 15px 15px 35px rgba(0,0,0,0.2); }
.book-spine { position: absolute; top: 0; left: 0; width: 35px; height: 100%; background: linear-gradient(90deg, #d1d5db 0%, #ffffff 50%, #d1d5db 100%); transform: rotateY(-90deg); transform-origin: left; }
.book-3d-wrap:hover .book-3d { z-index: 10; }
.book-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; }
.book-buy { color: var(--gold); font-weight: 700; font-size: 0.9rem; }

.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.art-card { background: var(--card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 50px; border-radius: 24px; border: 1px solid var(--border); text-decoration: none; color: inherit; transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); border-top: 4px solid var(--gold); }
.art-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 40px 80px rgba(0,0,0,0.1); border-color: var(--gold); }

/* CONTACT */
.contact-card { background: var(--card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); max-width: 900px; margin: 0 auto; padding: 60px; border-radius: 24px; border: 1px solid var(--border); border-top: 4px solid var(--gold); }
.contact-header { text-align: center; margin-bottom: 40px; }
.contact-header .section-title { text-align: center; margin-bottom: 25px; }
.contact-header .section-title::after { left: 50%; transform: translateX(-50%); }
.contact-header p { font-size: 1.2rem; color: var(--text-dim); max-width: 600px; margin: 0 auto; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.form-full { grid-column: span 2; }
::selection { background-color: var(--gold); color: #fff; }

/* FLOATING LABELS */
.floating-group { position: relative; }
.floating-group input, .floating-group textarea { width: 100%; padding: 24px 18px 12px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text-main); font-family: inherit; border-radius: 12px; font-size: 1rem; transition: var(--transition); }
.floating-group textarea { resize: vertical; min-height: 120px; }
.floating-group label { position: absolute; left: 18px; top: 20px; font-size: 1rem; color: var(--text-dim); transition: 0.2s ease-out; pointer-events: none; }
.floating-group input:focus, .floating-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168, 142, 101, 0.2); background: rgba(255, 255, 255, 0.9); }
body.night-mode .floating-group input:focus, body.night-mode .floating-group textarea:focus { background: rgba(15, 23, 42, 0.9); box-shadow: 0 0 0 3px rgba(168, 142, 101, 0.3); }

/* Float up when focused or not empty */
.floating-group input:focus ~ label,
.floating-group input:not(:placeholder-shown) ~ label,
.floating-group textarea:focus ~ label,
.floating-group textarea:not(:placeholder-shown) ~ label {
    top: 6px;
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 700;
}

.btn-send { grid-column: span 2; padding: 20px; background: var(--gold); color: #fff; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.btn-send:hover { background: #8e7550; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(168, 142, 101, 0.3); }

/* SUCCESS MESSAGE */
.form-success { grid-column: span 2; text-align: center; color: #10b981; font-weight: 700; padding: 15px; background: rgba(16, 185, 129, 0.1); border-radius: 12px; margin-top: -10px; }
body.night-mode .form-success { background: rgba(16, 185, 129, 0.05); }

/* FAQ */
.accordion { max-width: 900px; margin: 0; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-trigger { width: 100%; background: none; border: none; padding: 25px 0; text-align: left; font-family: inherit; font-size: 1.2rem; font-weight: 700; cursor: pointer; color: var(--text-main); display: flex; justify-content: space-between; transition: color 0.3s; }
.acc-trigger:hover { color: var(--gold); }
.acc-content { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0, 1, 0, 1); color: var(--text-dim); }
.acc-item.active .acc-content { max-height: 1000px; transition: max-height 1s ease-in-out; }
.acc-content p { padding-bottom: 30px; }

.footer { padding: 60px; text-align: center; color: var(--text-dim); font-size: 0.9rem; border-top: 1px solid var(--border); }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; margin-bottom: 60px; }
.service-box { background: var(--card-bg); padding: 40px; border-radius: 24px; border: 1px solid var(--border); transition: var(--transition); border-top: 4px solid transparent; }
.service-box:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-top-color: var(--gold); }
.service-icon { font-size: 2.5rem; margin-bottom: 20px; }
.service-box h3 { font-size: 1.5rem; margin-bottom: 20px; color: var(--gold); font-family: 'Playfair Display', serif; }
.service-box ul { list-style: none; padding: 0; }
.service-box ul li { margin-bottom: 15px; padding-left: 25px; position: relative; color: var(--text-dim); }
.service-box ul li::before { content: '•'; color: var(--gold); position: absolute; left: 0; font-size: 1.2rem; top: -2px; }

/* ACCOLADES */
.accolades-wrap { background: var(--card-bg); padding: 60px; border-radius: 24px; border: 1px solid var(--border); margin-top: 80px; }
.acc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.acc-card { padding: 30px; background: rgba(255,255,255,0.4); border-radius: 16px; border: 1px solid var(--border); transition: var(--transition); }
body.night-mode .acc-card { background: rgba(0,0,0,0.2); border-color: rgba(255,255,255,0.05); }
.acc-card:hover { transform: translateY(-5px); }
.acc-stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 15px; display: block; letter-spacing: 2px; }
.acc-text { font-size: 1.1rem; font-style: italic; margin-bottom: 20px; color: var(--text-main); line-height: 1.6; }
.acc-author { font-size: 0.85rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 1100px) {
    .split-layout { grid-template-columns: 1fr; }
    .hero-img-wrap { justify-content: center; }
    .hero-text h1 { font-size: 3.5rem; }
    .book-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .acc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .book-grid, .article-grid, .contact-form, .services-grid { grid-template-columns: 1fr; }
}