/*
Theme Name: Ukraine History Timeline
Theme URI: https://about-ukraine.com/
Author: Vitalii
Author URI: https://about-ukraine.com/
Description: A clean timeline-focused WordPress theme for historical content about Ukraine. Features year-based filters, eras, topics, and places with a custom REST endpoint.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: uht
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: timeline, history, blog, news, accessibility-ready, two-columns, custom-colors
*/
:root {
    --uht-bg: #ffffff;
    --uht-fg: #0d1622;
    --uht-card: #f7f7fa;
    --uht-accent: #0057B7; /* blue */
    --uht-accent-2: #FFD700; /* yellow */
    --uht-muted: #6b7280;
    --uht-radius: 18px;
    --uht-shadow: 0 10px 28px rgba(2, 16, 42, 0.08);
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    color: var(--uht-fg);
    background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    box-shadow: var(--uht-shadow);
}

.site-header .inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    font-weight: 800;
    letter-spacing: .2px;
}

.brand a {
    color: var(--uht-fg);
    text-decoration: none;
    font-size: 20px;
}

.nav {
    margin-left: auto;
}

.nav ul {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav a {
    text-decoration: none;
    color: var(--uht-fg);
    padding: 8px 12px;
    border-radius: 10px;
}

.nav a:hover {
    background: var(--uht-card);
}

.hero {
    display: grid;
    gap: 22px;
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
    padding: 36px 0 14px;
}

.hero .panel {
    background: #0d1117 url('') no-repeat center/cover;
    color: #fff;
    border-radius: var(--uht-radius);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.hero .panel .title {
    font-size: 46px;
    line-height: 1.05;
    margin: 0 0 10px;
    font-weight: 900;
}

.hero .panel .subtitle {
    font-size: 18px;
    color: #e5e7eb;
    max-width: 40ch;
}

.hero .panel .cta {
    margin-top: 18px;
    display: inline-flex;
    gap: 10px;
}

.btn {
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--uht-accent);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-ghost {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.grid {
    display: grid;
    gap: 16px;
}

.right-cards {
    grid-template-columns: 1fr;
}

.card {
    background: #fff;
    border-radius: var(--uht-radius);
    box-shadow: var(--uht-shadow);
    padding: 16px;
}

.section-title {
    font-size: 22px;
    margin: 20px 0 10px;
    font-weight: 800;
}

.timeline {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
    margin: 18px 0 26px;
}

.timeline .rail {
    padding-top: 8px;
    color: var(--uht-muted);
}

.timeline .controls {
    background: var(--uht-card);
    border-radius: var(--uht-radius);
    padding: 14px;
}

.controls .row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.range {
    width: 240px;
}

.badge {
    background: #eef2ff;
    color: #111827;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
}

.filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.filters select, .filters input {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.events {
    display: grid;
    gap: 12px;
}

.event-card {
    display: grid;
    grid-template-columns: 80px 1fr 160px;
    gap: 14px;
    align-items: center;
    background: #fff;
    border-radius: var(--uht-radius);
    box-shadow: var(--uht-shadow);
    padding: 12px;
}

.event-card .year {
    font-weight: 800;
    font-size: 20px;
    color: var(--uht-accent);
}

.event-card .meta {
    color: var(--uht-muted);
    font-size: 13px;
}

.event-card img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

footer.site-footer {
    margin-top: 40px;
    padding: 32px 0;
    color: #6b7280;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .event-card {
        grid-template-columns: 64px 1fr;
    }
}
