/* ================================================
   FamilyBook Propagační Web - Hlavní styly
   ================================================ */

/* === CSS CUSTOM PROPERTIES === */
:root {
    /* Barvy podle FamilyBook designu */
    --accent: #8B6F47;
    --accent-dark: #704214;
    --ink: #1A1A1A;
    --muted: #4A2C0F;
    --bg-soft: #FFFFFF;
    --bg-white: #FFFFFF;
    --text-light: #666666;
    
    /* Statusové barvy */
    --success: #28A745;
    --warning: #FFA500;
    --error: #DC3545;
    
    /* Gradient pozadí */
    --bg-gradient: 
        radial-gradient(ellipse at 30% 30%, rgba(250,248,240,1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(235,230,220,0.8) 0%, transparent 50%),
        linear-gradient(180deg, #f0ede3 0%, #e8e3d5 50%, #ded9c8 100%);
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === ZÁKLADNÍ NASTAVENÍ === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-gradient);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === TYPOGRAFIE === */
h1 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--accent);
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--accent-dark);
}

h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--muted);
}

/* === HEADER & NAVIGATION === */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(139, 111, 71, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: '📚';
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* === MAIN CONTENT === */
.main {
    flex: 1;
    margin-top: 70px; /* Výška fixního headeru */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 4rem 0;
}

/* === HERO SEKCE === */
.hero {
    text-align: center;
    padding: 6rem 0;
    background: 
        radial-gradient(ellipse at center, rgba(250,248,240,0.9) 0%, transparent 70%),
        var(--bg-gradient);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === TLAČÍTKA === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 111, 71, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === FEATURE CARDS === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-dark);
}

.feature-card p {
    color: var(--text-light);
}

/* === BOOK SHOWCASE === */
.book-showcase {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

/* ===== KNIHY - Realistické starožitné svazky ===== */
.demo-book {
    width: 160px;
    height: 320px;
    position: relative;
    display: inline-block;
    margin: 0 15px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: perspective(1200px) rotateY(-12deg) rotateX(2deg);
    transform-style: preserve-3d;
    text-decoration: none;
}

.demo-book:hover {
    transform: perspective(1200px) rotateY(-5deg) rotateX(0deg) translateY(-8px) scale(1.03);
}

/* Hřbet knihy (spine) */
.book-spine {
    position: absolute;
    left: -18px;
    top: 0;
    width: 18px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.4) 0%,
        rgba(0,0,0,0.6) 50%,
        rgba(0,0,0,0.8) 100%);
    border-radius: 3px 0 0 3px;
    transform: translateZ(-5px);
    box-shadow: 
        inset 2px 0 4px rgba(0,0,0,0.5),
        -3px 0 8px rgba(0,0,0,0.4);
}

/* Přední strana knihy (cover) */
.book-cover {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 0 6px 6px 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px 15px 25px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.7),
        0 10px 30px rgba(0,0,0,0.5),
        inset 3px 0 15px rgba(255,255,255,0.08),
        inset -3px 0 15px rgba(0,0,0,0.4),
        20px 0 40px rgba(0,0,0,0.4);
}

/* Kožená textura simulovaná CSS */
.book-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(90deg, 
            transparent 0px, 
            rgba(0,0,0,0.03) 1px, 
            transparent 2px, 
            transparent 4px),
        repeating-linear-gradient(0deg, 
            transparent 0px, 
            rgba(0,0,0,0.03) 1px, 
            transparent 2px, 
            transparent 4px);
    opacity: 0.6;
    pointer-events: none;
    mix-blend-mode: multiply;
}

/* Horizontální zlatá ražba textu na dva řádky */
.book-title-horizontal {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    line-height: 1.3;
    color: #C9A961;
    text-shadow: 
        0 1px 0 rgba(255,255,255,0.3),
        0 -1px 0 rgba(0,0,0,0.8),
        1px 0 2px rgba(0,0,0,0.9),
        0 0 8px rgba(201,169,97,0.4);
    transform: translateZ(5px);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.book-title-horizontal div {
    display: block;
    white-space: nowrap;
}

/* Číslo knihy (mosazný štítek) */
.book-number {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, 
        #E8D4A0 0%, 
        #C9A961 30%, 
        #A88B47 70%, 
        #8B7236 100%);
    border: 2px solid #6B5528;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2C2416;
    text-shadow: 
        0 1px 0 rgba(255,255,255,0.5),
        0 -1px 0 rgba(0,0,0,0.3);
    box-shadow: 
        0 3px 8px rgba(0,0,0,0.6),
        inset 0 1px 2px rgba(255,255,255,0.4),
        inset 0 -1px 2px rgba(0,0,0,0.3);
    transform: translateZ(8px);
    position: relative;
    z-index: 2;
}

/* Barevné varianty knih */

/* Kniha 1: Tmavě hnědá kůže */
.book-brown .book-cover {
    background: linear-gradient(165deg, 
        #3D2817 0%,
        #4A3420 20%,
        #5C4231 50%,
        #4A3420 80%,
        #3D2817 100%);
    border: 1px solid #2C1E10;
}

.book-brown .book-texture {
    background-color: #4A3420;
}

/* Kniha 2: Černohnědá (téměř černá) */
.book-dark .book-cover {
    background: linear-gradient(165deg, 
        #1C1810 0%,
        #2A2319 20%,
        #35281C 50%,
        #2A2319 80%,
        #1C1810 100%);
    border: 1px solid #0F0C08;
}

.book-dark .book-texture {
    background-color: #2A2319;
}

/* Kniha 3: Námořnická modrá */
.book-navy .book-cover {
    background: linear-gradient(165deg, 
        #1A2332 0%,
        #252F3E 20%,
        #2F3A4A 50%,
        #252F3E 80%,
        #1A2332 100%);
    border: 1px solid #0F1419;
}

.book-navy .book-texture {
    background-color: #252F3E;
}

/* Dekorativní linky na hřbetě */
.book-cover::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(201,169,97,0.6) 20%, 
        rgba(201,169,97,0.6) 80%, 
        transparent);
    box-shadow: 0 1px 0 rgba(0,0,0,0.5);
}

.book-cover::after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(201,169,97,0.6) 20%, 
        rgba(201,169,97,0.6) 80%, 
        transparent);
    box-shadow: 0 1px 0 rgba(0,0,0,0.5);
}

/* Responzivita */
@media (max-width: 768px) {
    .demo-book {
        width: 140px;
        height: 280px;
        margin: 0 10px;
        transform: perspective(1000px) rotateY(-8deg) rotateX(1deg);
    }
    
    .book-title-horizontal {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
        gap: 3px;
    }
    
    .book-number {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

/* === FORMULÁŘE === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

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

/* === FOOTER === */
.footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(139, 111, 71, 0.2);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--muted);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 111, 71, 0.2);
    color: var(--muted);
}

/* === VE VÝSTAVBĚ === */
.maintenance-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background: var(--bg-gradient);
}

.maintenance-content {
    max-width: 600px;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.maintenance-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

/* === RESPONZIVNÍ DESIGN === */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .book-showcase {
        gap: 1rem;
    }
    
    .demo-book {
        width: 160px;
        height: 220px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 2rem 0;
    }
}

/* === UTILITY TŘÍDY === */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1.5rem; }
.hidden { display: none; }
.visible { display: block; }