/*
Theme Name: EDA Theme
Theme URI: https://4works.cz
Author: 4WORKS Solutions
Author URI: https://4works.cz
Description: Theme pro Elektronický Divadelní Archiv - Národní Muzeum
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: eda
*/

:root {
    --eda-primary: #1a3a5c;
    --eda-secondary: #c4a35a;
    --eda-bg: #f7f5f0;
    --eda-text: #333;
    --eda-border: #ddd;
    --eda-light: #f0ede5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--eda-text);
    background: var(--eda-bg);
    line-height: 1.6;
}

a { color: var(--eda-primary); }
a:hover { color: var(--eda-secondary); }

/* === HEADER & NAV === */
.site-header { background: var(--eda-primary); color: #fff; padding: 1rem 2rem; }
.site-header h1 { font-size: 1.5rem; font-weight: 400; }
.site-header h1 a { color: #fff; text-decoration: none; }
.site-header .subtitle { color: var(--eda-secondary); font-size: 0.85rem; }

.site-nav { background: #1e4670; padding: 0.5rem 2rem; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.site-nav a { color: #ccc; text-decoration: none; padding: 0.25rem 0.75rem; font-size: 0.9rem; border-radius: 3px; }
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* === LAYOUT === */
.site-content { max-width: 1200px; margin: 2rem auto; padding: 0 2rem; }

/* === ENTRY LIST (archives) === */
.entry-list { list-style: none; }
.entry-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--eda-border); }
.entry-list li a { color: var(--eda-primary); text-decoration: none; font-weight: 500; }
.entry-list li a:hover { text-decoration: underline; }

/* === ENTRY DETAIL (single) === */
.entry-detail { background: #fff; padding: 2rem; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.entry-detail h1 { color: var(--eda-primary); margin-bottom: 1.5rem; font-size: 1.8rem; border-bottom: 2px solid var(--eda-secondary); padding-bottom: 0.5rem; }

/* === META TABLE (info tabulka) === */
.meta-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; }
.meta-table th { text-align: left; padding: 0.5rem 1rem 0.5rem 0; background: transparent; width: 200px; font-weight: 600; color: #666; vertical-align: top; border-bottom: 1px solid #f0f0f0; }
.meta-table td { padding: 0.5rem 0; border-bottom: 1px solid #f0f0f0; }
.meta-table a { text-decoration: none; font-weight: 500; }
.meta-table a:hover { text-decoration: underline; }

/* === SECTIONS (vztahy) === */
.eda-section { margin-top: 2rem; }
.eda-section h2 { font-size: 1.2rem; color: var(--eda-primary); padding: 0.5rem 0; border-bottom: 2px solid var(--eda-light); margin-bottom: 0.75rem; }
.eda-count { font-weight: 400; color: #999; font-size: 0.9em; }

/* === DATA TABLE (tabulka s daty) === */
.eda-table-wrap { overflow-x: auto; }
.eda-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.eda-table thead th { background: var(--eda-light); padding: 0.6rem 0.75rem; text-align: left; font-weight: 600; color: #555; border-bottom: 2px solid var(--eda-border); white-space: nowrap; }
.eda-table tbody td { padding: 0.5rem 0.75rem; border-bottom: 1px solid #f5f5f5; vertical-align: top; }
.eda-table tbody tr:hover { background: #faf9f6; }
.eda-table a { text-decoration: none; }
.eda-table a:hover { text-decoration: underline; }

/* === LINK LIST === */
.eda-link-list { list-style: none; margin: 0; }
.eda-link-list li { padding: 0.4rem 0; border-bottom: 1px solid #f5f5f5; }
.eda-link-list li a { text-decoration: none; font-weight: 500; }
.eda-link-list li a:hover { text-decoration: underline; }

/* === BADGE === */
.eda-badge { display: inline-block; background: var(--eda-secondary); color: #fff; font-size: 0.7rem; padding: 0.15rem 0.5rem; border-radius: 3px; font-weight: 600; text-transform: uppercase; vertical-align: middle; }

/* === SIDEBAR === */
.sidebar { margin-top: 2rem; }
.sidebar .widget { background: #fff; padding: 1rem; margin-bottom: 1rem; border-radius: 4px; }
.sidebar .widget h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--eda-primary); }

/* === FOOTER === */
.site-footer { background: var(--eda-primary); color: #aaa; text-align: center; padding: 1.5rem; margin-top: 3rem; font-size: 0.85rem; }

/* === PAGINATION === */
.pagination { text-align: center; margin: 2rem 0; }
.pagination a, .pagination span { display: inline-block; padding: 0.4rem 0.8rem; margin: 0 0.2rem; border: 1px solid var(--eda-border); text-decoration: none; color: var(--eda-primary); border-radius: 3px; }
.pagination .current { background: var(--eda-primary); color: #fff; border-color: var(--eda-primary); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .site-content { padding: 0 1rem; }
    .entry-detail { padding: 1rem; }
    .meta-table th { width: 120px; }
    .eda-table { font-size: 0.8rem; }
}
