/* =====================================================
   Charta 77 – 50 let | Sdílený stylesheet
   Barvy:
     --color-accent:  #4c57a6  (modrá/indigo)
     --color-nav:     #55525e  (navigační lišta)
     --color-text:    #111111  (hlavní text)
     --color-subtle:  #7f8c8d  (podnadpisy, datum)
     --color-bg:      #f0f0f0  (pozadí stránky)
     --color-card:    #f8f9fa  (pozadí karet)
   Fonty:
     Nav položky:    Tahoma, sans-serif
     Logo nav text:  'Courier New', monospace, bold
     Hlavní nadpis:  'Courier New', monospace, bold
     Podnadpisy:     Tahoma, sans-serif
     Běžný text:     'Source Sans Pro', sans-serif
     Citace/box:     Georgia, serif (semibold)
     Footer quote:   Tahoma, sans-serif
   ===================================================== */

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

/* ---------- ZÁKLAD ---------- */
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #111111;
    background: #f9f9f9;
    min-height: 100vh;
}

/* ---------- NAVIGACE ---------- */
.navigation {
    background: #ffffff !important;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

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

.nav-logo {
    font-size: 1.4em;
    font-weight: 600;
    color: #111111;
    text-decoration: none;
    padding: 15px 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #111111;
    text-decoration: none;
    padding: 18px 20px;
    display: block;
    transition: all 0.3s ease;
    font-size: 0.95em;
    border-bottom: 3px solid transparent;
    font-family: Tahoma, 'Segoe UI', sans-serif;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(0,0,0,0.04);
    border-bottom-color: #4c57a6;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #111111;
    margin: 3px 0;
    display: block;
    transition: 0.3s;
    border-radius: 2px;
}

/* ---------- DROBEČKOVÁ NAVIGACE ---------- */
.breadcrumb {
    display: none;
}

.breadcrumb a {
    color: #4c57a6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ---------- KONTEJNER ---------- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ---------- ZÁHLAVÍ STRÁNKY ---------- */
.header,
.page-header {
    text-align: center;
    margin-bottom: 40px;
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.header {
    margin-bottom: 50px;
}

.header::before,
.page-header::before {
    display: none;
}

/* Hlavní nadpis (index) */
.main-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 3.6em;
    font-weight: 700;
    color: #111111;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

/* Nadpis podstránek */
.page-title {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 2.2em;
    font-weight: 400;
    color: #111111;
    margin-bottom: 10px;
}

/* Podtituly */
.subtitle,
.page-subtitle {
    font-family: Tahoma, 'Segoe UI', sans-serif;
    font-size: 1.2em;
    color: #7f8c8d;
    font-weight: 400;
    margin-bottom: 20px;
}

/* Bublina s rokem */
.year-highlight {
    display: inline-block;
    background: #4c57a6;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1.1em;
}

/* ---------- OBSAH ---------- */
.content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

/* Podnadpisy sekcí */
.section-title {
    font-size: 1.5em;
    color: #7f8c8d;
    margin-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    font-weight: 400;
}

/* Odstavce textu */
.text-block {
    margin-bottom: 25px;
    font-family: 'Source Sans Pro', 'Segoe UI', Arial, sans-serif;
    font-size: 1.05em;
    text-align: left;
    line-height: 1.7;
}

/* Zvýrazněný box s levou linkou */
.highlight-box {
    background: #f8f9fa;
    border-left: 5px solid #4c57a6;
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
    font-family: Georgia, 'Georgia Pro', 'Times New Roman', serif;
    font-weight: 600;
    font-style: normal;
}

/* Banner (Připravujeme výročí apod.) */
.coming-soon {
    background: #4c57a6;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    font-weight: 500;
}

/* ---------- CITÁTOVÝ BOX ---------- */
.quote-box {
    background: #eef2f9;
    border-left: 4px solid #4c57a6;
    padding: 20px;
    padding-top: 32px;
    margin: 25px 0;
    border-radius: 8px;
    font-style: italic;
    font-size: 1.1em;
    position: relative;
}

.quote-box::before {
    content: '"';
    font-size: 3em;
    color: #4c57a6;
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.3;
}

.quote-author {
    text-align: right;
    margin-top: 15px;
    font-weight: 600;
    color: #4c57a6;
}

/* ---------- PATIČKA ---------- */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #7f8c8d;
}

.footer-partner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-partner-label {
    font-size: 1em;
    font-weight: 600;
    color: #111111;
    font-style: normal;
    white-space: nowrap;
}

.footer-logo {
    height: 48px;
    width: auto;
    display: block;
}

.footer-logo-babylon {
    height: 120px;
}

@media (max-width: 768px) {
    .footer-logo-babylon {
        height: 60px;
    }
}

.footer-quote {
    font-size: 1em;
    color: #4c57a6;
    font-style: normal;
    font-family: Tahoma, 'Segoe UI', sans-serif;
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-group {
    font-size: 0.78em;
    color: #7f8c8d;
    font-style: normal;
    white-space: nowrap;
}

/* ---------- RESPONZIVITA ---------- */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.active {
        max-height: 400px;
    }

    .nav-links a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .container {
        padding: 20px 15px;
    }

    .header,
    .page-header,
    .content {
        padding: 25px 20px;
    }

    .main-title {
        font-size: 2.2em;
    }

    .page-title {
        font-size: 1.8em;
    }
}

/* =====================================================
   STRÁNKOVĚ SPECIFICKÉ STYLY
   ===================================================== */

/* --- INDEX --- */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.contact-item strong {
    display: block;
    margin-bottom: 8px;
    color: #111111;
}

.contact-item a {
    color: #111111;
    text-decoration: underline;
}

.contact-item a:hover {
    color: #4c57a6;
}

/* --- AKTUALITY --- */
.news-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 5px solid #4c57a6;
}

.news-item.news-item-highlight {
    background: #eef2f9;
    color: #111111;
    border-left: 4px solid #4c57a6;
}

.news-item.featured {
    background: #4c57a6;
    color: white;
    border-left: 5px solid #ffffff;
}

.news-date {
    font-size: 0.9em;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 8px;
}

.news-item.featured .news-date {
    color: rgba(255,255,255,0.9);
}

.news-title {
    font-size: 1.3em;
    color: #111111;
    margin-bottom: 10px;
    font-weight: 500;
}

.news-item.featured .news-title {
    color: white;
}

.news-content {
    font-size: 1.05em;
    line-height: 1.6;
}

.news-tag {
    display: inline-block;
    background: #4c57a6;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    margin-top: 15px;
    margin-right: 8px;
}

.news-item.featured .news-tag {
    background: rgba(255,255,255,0.2);
}

.doc-btn {
    color: #111111;
    text-decoration: underline;
    display: inline-block;
    margin-top: 10px;
}

.newsletter-signup {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-top: 30px;
    text-align: center;
}

.newsletter-signup h3 {
    color: #111111;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 20px auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    font-family: inherit;
}

.newsletter-form button {
    background: #4c57a6;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #3a4480;
}

@media (max-width: 768px) {
    .news-item { padding: 20px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input,
    .newsletter-form button { width: 100%; }
}

/* --- HISTORIE --- */
.timeline {
    position: relative;
    padding-left: 40px;
    margin: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #aaaaaa;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #4c57a6;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -48px;
    top: 30px;
    width: 15px;
    height: 15px;
    background: #4c57a6;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #4c57a6;
}

.timeline-year {
    font-size: 1.4em;
    font-weight: 600;
    color: #111111;
    margin-bottom: 10px;
}

.timeline-content {
    font-size: 1.05em;
    line-height: 1.7;
}

.section-title-lg {
    font-size: 1.8em;
    color: #7f8c8d;
    margin-bottom: 25px;
    border-bottom: 3px solid #ecf0f1;
    padding-bottom: 15px;
    font-weight: 400;
}

.highlight-box-solid {
    background: #4c57a6;
    color: white;
    padding: 25px;
    margin: 30px 0;
    border-radius: 10px;
    font-style: italic;
    text-align: left;
    font-size: 1.1em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-top: 4px solid #4c57a6;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 600;
    color: #4c57a6;
    margin-bottom: 10px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.95em;
}

@media (max-width: 768px) {
    .timeline { padding-left: 30px; }
    .timeline-item::before { left: -38px; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* --- OSOBNOSTI --- */
.person-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid #4c57a6;
    transition: all 0.3s ease;
}

.person-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.person-header {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 20px;
}

.person-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.person-photo:hover img {
    transform: scale(1.1);
}

.person-photo-placeholder {
    color: #999;
    font-size: 0.9em;
    text-align: center;
    padding: 10px;
}

.person-info { flex: 1; }

.person-name {
    font-size: 1.8em;
    color: #111111;
}

.person-role {
    background: #4c57a6;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.person-years {
    color: #7f8c8d;
    font-style: italic;
    font-size: 1.1em;
}

.person-description {
    color: #555;
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
}

.person-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.highlight-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #ecf0f1;
}

.highlight-icon {
    font-size: 1.5em;
    margin-bottom: 8px;
    display: block;
}

.highlight-text {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .person-header { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .person-photo { width: 100px; height: 100px; }
    .person-name { font-size: 1.5em; }
    .person-highlights { grid-template-columns: 1fr; }
}

/* --- DOKUMENTY --- */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-tab {
    background: #ecf0f1;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;
    font-family: inherit;
}

.filter-tab.active,
.filter-tab:hover {
    background: #4c57a6;
    color: white;
}

.document-grid { display: grid; gap: 20px; }

.document-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 5px solid #4c57a6;
    transition: transform 0.2s, box-shadow 0.2s;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.doc-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #111111;
}

.doc-date {
    background: #4c57a6;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    white-space: nowrap;
}

.doc-description {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 15px;
    line-height: 1.5;
}

.doc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.doc-btn {
    background: white;
    color: #111111;
    padding: 6px 15px;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85em;
    transition: background 0.3s;
    cursor: pointer;
    border: 2px solid #111111;
    font-family: inherit;
}

.doc-btn:hover { background: #f0f0f0; }

.doc-btn.secondary {
    background: white;
    color: #111111;
    border: 2px solid #111111;
}

.doc-btn.secondary:hover { background: #f0f0f0; }

.doc-type {
    display: inline-block;
    background: #dde4f0;
    color: #4c57a6;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 10px;
}

.search-box {
    margin-bottom: 20px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 25px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #4c57a6;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
}

.modal-title {
    font-size: 1.4em;
    color: #111111;
    margin: 0;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover { color: #4c57a6; }

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.document-text { line-height: 1.8; font-size: 1.05em; }

.document-text h2 {
    color: #111111;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.document-text p {
    margin-bottom: 15px;
    text-align: left;
}

.loading { text-align: center; padding: 20px; color: #7f8c8d; }

.error {
    text-align: center;
    padding: 20px;
    color: #c41e3a;
    background: #f8d7da;
    border-radius: 5px;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .doc-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .doc-actions { justify-content: flex-start; }
    .modal-content { width: 95%; margin: 5% auto; max-height: 85vh; }
    .modal-body { padding: 20px; }
    .page-header.content { padding: 20px; }
    .page-title { font-size: 1.8em; }
}

/* --- KONTAKT --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.contact-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #4c57a6;
}

.contact-card h3 {
    color: #111111;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.contact-detail {
    margin-bottom: 10px;
    color: #555;
}

.contact-detail strong {
    color: #111111;
    display: inline-block;
    min-width: 80px;
}

.contact-detail a {
    color: #111111;
    text-decoration: underline;
}

.contact-detail a:hover { color: #4c57a6; }

.organization-info {
    background: #eef2f9;
    color: #111111;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid #4c57a6;
}

.organization-info h3 {
    margin-bottom: 20px;
    font-size: 1.3em;
}

.org-detail {
    margin-bottom: 8px;
    font-size: 1.05em;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 20px; }
    .contact-card { padding: 20px; }
}
