// Soubor: assets/css/style.css
/* Studio v7.1 CSS guard */ {}

:root {
    --brand: #00897b;
    --brand-dark: #00695c;
    --brand-light: #e0f2f1;
    --brand-ultra: #f2fbf9;
    --gold: #a68246;
    --gold-light: #f9f5eb;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-warm: #fbfaf7;
    --text: #222b34;
    --text-body: #3b4856;
    --muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
    --shadow-book: 0 12px 24px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08);
    --radius: 14px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover {
    color: var(--brand-dark);
}

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

/* ==========================================================================
   HLAVIČKA WEBU A NAVIGACE (dle původního webu Radky Zadinové)
   ========================================================================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eef2f6;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    gap: 24px;
}

.brand-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: var(--text);
}

.brand-logo img {
    max-height: 62px;
    width: auto;
}

.rz-book-emblem {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.rz-book-pages {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
    background: linear-gradient(180deg, #fffdf9 0%, #f5efe2 100%);
    border-radius: 4px;
    padding: 5px 12px;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: #3b352c;
    letter-spacing: 0.12em;
    box-shadow: 0 2px 5px rgba(166, 130, 70, 0.18);
    position: relative;
}

.rz-book-pages span.divider {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: var(--gold);
    margin: 0 8px;
    opacity: 0.65;
}

.rz-book-caption {
    margin-top: 5px;
    font-family: var(--font-serif);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2f3640;
    font-weight: 600;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 16.5px;
    font-weight: 400;
    color: var(--brand);
    padding: 6px 2px;
    position: relative;
    text-decoration: none !important;
}

.nav-link:hover,
.nav-link.active {
    color: #1f2933;
    font-weight: 500;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-toggle-btn,
.mobile-menu-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #334e68;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.search-toggle-btn:hover,
.mobile-menu-btn:hover {
    background: var(--bg-alt);
    color: var(--brand-dark);
}

.mobile-menu-btn {
    display: none;
}

.header-search-bar {
    display: none;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 14px 0;
}

.header-search-bar.open {
    display: block;
}

/* ==========================================================================
   HERO SEKCE NA ÚVODNÍ STRÁNCE (Citát vlevo + portrét vpravo)
   ========================================================================== */
.hero-section {
    background: #ffffff;
    border-bottom: 1px solid #eef2f6;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: center;
    min-height: 520px;
}

.hero-text-col {
    padding: 48px 0;
}

.hero-quote {
    font-size: 19px;
    line-height: 1.75;
    color: #2f3b48;
    font-weight: 500;
    margin: 0 0 24px;
    max-width: 520px;
}

.hero-author-sign {
    font-size: 16.5px;
    font-weight: 600;
    color: #3b4856;
    margin: 0 0 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-photo-col {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-self: stretch;
}

.hero-photo-col img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.hero-photo-placeholder {
    width: 100%;
    min-height: 440px;
    background: linear-gradient(135deg, #f3f7f6 0%, #e4efed 100%);
    border: 1px solid #cfe3e0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px;
    text-align: center;
    color: var(--brand-dark);
}

/* ==========================================================================
   TLAČÍTKA A ODZNAKY
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none !important;
    transition: all 0.18s ease;
}

.btn-primary {
    background: var(--brand);
    color: #ffffff !important;
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: #ffffff;
    color: var(--brand-dark) !important;
    border-color: #b2dfdb;
}

.btn-outline:hover {
    background: var(--brand-light);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13.5px;
    border-radius: 7px;
}

/* ==========================================================================
   SEKCE A NADPISY
   ========================================================================== */
.section {
    padding: 64px 0;
}

.section-alt {
    background: var(--bg-warm);
    border-top: 1px solid #f0ede6;
    border-bottom: 1px solid #f0ede6;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
}

.section-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 30px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.section-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 15.5px;
}

/* ==========================================================================
   KATALOG KNIH (~27 KNIH) – KARTY A FILTRY
   ========================================================================== */
.catalog-filters {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.catalog-filters input[type="text"],
.catalog-filters select {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14.5px;
    background: #ffffff;
    font-family: inherit;
}

.genre-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.genre-pill {
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    background: #f1f5f9;
    color: #334e68;
    border: 1px solid transparent;
}

.genre-pill:hover,
.genre-pill.active {
    background: var(--brand-light);
    color: var(--brand-dark);
    border-color: #80cbc4;
    font-weight: 600;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.book-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.book-cover-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
}

.book-cover-img {
    width: 165px;
    height: 238px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: var(--shadow-book);
}

/* Elegantní knižní obálka, pokud ještě není nahrán JPG obrázek */
.book-cover-art {
    width: 165px;
    height: 238px;
    border-radius: 4px 8px 8px 4px;
    background: linear-gradient(145deg, #00796b 0%, #004d40 100%);
    color: #ffffff;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-shadow: var(--shadow-book);
    border-left: 5px solid rgba(255, 255, 255, 0.22);
    position: relative;
}

.book-cover-art .art-author {
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b2dfdb;
    font-weight: 600;
}

.book-cover-art .art-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    word-break: break-word;
}

.book-cover-art .art-year {
    font-size: 11px;
    color: #e0f2f1;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 6px;
}

.book-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 6px;
}

.book-year-badge {
    background: var(--brand-light);
    color: var(--brand-dark);
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
}

.book-card-title {
    margin: 0 0 8px;
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.35;
}

.book-card-title a {
    color: var(--text);
}

.book-card-title a:hover {
    color: var(--brand);
}

.book-card-annot {
    font-size: 14px;
    color: var(--text-body);
    margin: 0 0 18px;
    flex: 1;
}

.book-card-footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   DETAIL KNIHY A ČTEČKA UKÁZEK
   ========================================================================== */
.book-detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 44px;
    align-items: start;
}

.book-detail-cover-box {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-detail-cover-box .book-cover-img,
.book-detail-cover-box .book-cover-art {
    width: 220px;
    height: 316px;
}

.meta-list {
    width: 100%;
    margin-top: 22px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    font-size: 14px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.buy-box {
    background: var(--brand-ultra);
    border: 1px solid #b2dfdb;
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 24px 0;
}

.excerpt-paper {
    background: #fffdf9;
    border: 1px solid #e6dec8;
    border-radius: var(--radius);
    padding: 32px 36px;
    margin-top: 28px;
    font-family: var(--font-serif);
    font-size: 17.5px;
    line-height: 1.8;
    color: #2b2620;
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   BESEDY, BLOG A KONTAKTNÍ FORMULÁŘ
   ========================================================================== */
.events-list {
    display: grid;
    gap: 16px;
}

.event-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.event-date-box {
    background: var(--brand-light);
    color: var(--brand-dark);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    min-width: 120px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.post-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.post-card-body {
    padding: 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 40px;
    align-items: start;
}

.form-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #334e68;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

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

/* ==========================================================================
   PATIČKA WEBU A NEWSLETTER
   ========================================================================== */
.site-footer {
    background: #1a252c;
    color: #cbd5e1;
    padding: 56px 0 32px;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 18px;
    margin: 0 0 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #4db6ac;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 13px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 14px;
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    color: #94a3b8;
}

/* ==========================================================================
   RESPONZIVITA PRO MOBILY A TABLETY
   ========================================================================== */
@media (max-width: 920px) {
    .hero-grid,
    .book-detail-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-text-col {
        padding: 32px 0 12px;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px 0;
        border-top: 1px solid #eef2f6;
    }

    .main-nav.open {
        display: flex;
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }
}
