/* ================================================
   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;
}

.demo-book {
    width: 200px;
    height: 280px;
    background: linear-gradient(15deg, #8B4513 0%, #A0522D 40%, #CD853F 100%);
    border-radius: 8px 12px 12px 8px;
    box-shadow: 
        0 8px 16px rgba(0,0,0,0.3),
        inset 2px 0 4px rgba(255,255,255,0.2);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    color: white;
    text-decoration: none;
}

.demo-book:hover {
    filter: brightness(1.1);
    transform: rotate(0deg);
}

.demo-book::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px;
    background: linear-gradient(180deg, 
        rgba(255,255,255,0.2) 0%, 
        rgba(0,0,0,0.1) 100%);
}

.book-number {
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.book-title {
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* === 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; }