/**
 * Layout CSS — Єдині Новини
 */

/* ─── Nav ─── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250,250,250,0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid var(--border);
}

[data-theme="dark"] nav {
    background: rgba(26,26,26,0.85);
}

[data-theme="dark"] body {
    background: var(--bg);
}

nav .inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 10px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.3px;
    color: var(--text);
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.nav-time {
    font-size: 13px;
    color: var(--text-tertiary);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0.5px solid var(--border);
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--blue);
    background: var(--blue-bg);
}

.theme-icon-dark { display: none; }

[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: block; }

/* ─── Hero ─── */
.hero {
    text-align: center;
    padding: 36px 22px 20px;
    max-width: 980px;
    margin: 0 auto;
    animation: fadeUp 0.8s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: clamp(28px, 4.5vw, 46px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.05;
    color: var(--blue);
    white-space: nowrap;
}

.hero h1 span {
    color: var(--text);
}

.hero p {
    font-size: 19px;
    font-weight: 300;
    color: var(--text-secondary);
}
.hero p a {
    color: var(--blue);
    font-weight: 500;
    text-decoration: none;
    margin-top: 14px;
    line-height: 1.5;
}

/* ─── Stats ─── */
.stats {
    max-width: 640px;
    margin: 36px auto 0;
    padding: 0 22px;
    animation: fadeUp 0.8s ease-out 0.15s both;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 22px 0;
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
}

.stat-num {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    text-align: center;
    color: var(--blue);
}

.stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    text-align: center;
    margin-top: 2px;
}

/* ─── Section Header ─── */
.section-header {
    max-width: 720px;
    margin: 0 auto 12px;
    padding: 0;
    animation: fadeUp 0.6s ease-out 0.3s both;
}

.stats .section-header {
    margin-bottom: 4px;
    text-align: center;
}

.section-header h2 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
}

/* ─── Feed ─── */
.feed {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px 80px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ─── Footer ─── */
footer {
    text-align: center;
    padding: 32px 22px;
    border-top: 0.5px solid var(--border);
}

.footer-flag {
    display: inline-flex;
    gap: 0;
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.footer-flag div {
    width: 24px;
    height: 16px;
}

footer p {
    color: var(--text-tertiary);
    font-size: 13px;
}
