/*
Theme Name: Antenna 97,1
Description: Ελαφρύ ειδησεογραφικό theme για τον Antenna 97,1 Δυτικής Κρήτης.
Version: 1.2
Requires PHP: 7.4
Text Domain: antenna
*/

:root {
	--navy: #123a66;
	--navy-deep: #0b2746;
	--gold: #c9a63f;
	--gold-text: #8a6d14;
	--ink: #17202b;
	--muted: #5b6673;
	--line: #e3e6ea;
	--paper: #ffffff;
	--wash: #f4f5f7;
	--wrap: 1200px;
	--sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--serif: Georgia, "Times New Roman", "Noto Serif", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--paper); }

/* Top strip */
.topbar { background: var(--navy-deep); color: #dbe3ec; font-size: 14px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.live-btn { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border: 0; border-radius: 3px; background: var(--gold); color: var(--navy-deep); font: 700 14px/1.4 var(--sans); cursor: pointer; }
.live-btn:hover { background: #dcbb57; color: var(--navy-deep); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #b3261e; }
.is-playing .live-dot { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .is-playing .live-dot { animation: none; } }

/* Masthead */
.masthead { padding: 18px 0; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo img { width: 290px; }
.search-form { display: flex; max-width: 280px; width: 100%; }
.search-form input[type=search] { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-right: 0; border-radius: 3px 0 0 3px; font: inherit; font-size: 15px; }
.search-form button { padding: 8px 14px; border: 0; border-radius: 0 3px 3px 0; background: var(--navy); color: #fff; font: 600 15px var(--sans); cursor: pointer; }

/* Navigation */
.mainnav { background: var(--navy); position: sticky; top: 0; z-index: 20; }
.mainnav ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.mainnav a { display: block; padding: 12px 15px; color: #fff; font-size: 15px; font-weight: 600; }
.mainnav a:hover, .mainnav .current-cat > a, .mainnav .current-menu-item > a { background: var(--navy-deep); box-shadow: inset 0 -3px 0 var(--gold); color: #fff; }
.nav-toggle { display: none; width: 100%; padding: 12px 0; border: 0; background: none; color: #fff; font: 600 16px var(--sans); text-align: left; cursor: pointer; }

/* Sections */
.section { margin: 36px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; border-bottom: 2px solid var(--navy); }
.section-head h2, .archive-title { margin: 0; color: var(--navy); font-size: 22px; line-height: 1.3; }
.section-head h2 { padding-bottom: 6px; }
.section-head a.more { color: var(--gold-text); font-size: 14px; font-weight: 600; }

/* Lead */
.lead-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; margin-top: 26px; }
.lead-story h2 { margin: 12px 0 8px; font: 700 34px/1.2 var(--serif); }
.lead-story p { margin: 0; color: var(--muted); }
.side-list { display: flex; flex-direction: column; }
.side-item { display: grid; grid-template-columns: 108px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.side-item:first-child { border-top: 0; padding-top: 0; }
.side-item h3 { margin: 0; font-size: 16px; line-height: 1.32; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card h3 { margin: 10px 0 6px; font-size: 18px; line-height: 1.32; }
.thumb { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--gold); font: italic 700 clamp(15px, 2.4vw, 26px) var(--sans); letter-spacing: .03em; }
.meta { color: var(--muted); font-size: 13.5px; }
.kicker { color: var(--gold-text); font-size: 13px; font-weight: 700; }

/* Archive */
.archive-head { margin: 28px 0 22px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.archive-title { font-size: 28px; }
.pagination { margin: 36px 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { padding: 7px 13px; border: 1px solid var(--line); border-radius: 3px; font-size: 15px; }
.pagination .current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Article */
.article { max-width: 780px; margin: 30px auto 0; }
.article h1 { margin: 8px 0 12px; font: 700 clamp(28px, 4.2vw, 40px)/1.2 var(--serif); }
.article-meta { padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.article-hero { margin: 20px 0; }
.article-hero img { width: 100%; }
.entry { font: 19px/1.72 var(--serif); overflow-wrap: anywhere; }
.entry a { color: var(--navy); text-decoration: underline; }
.entry img { height: auto; margin: 20px auto; }
.entry iframe, .entry video, .entry embed, .entry object { display: block; max-width: 100%; margin: 20px auto; }
.entry table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry td, .entry th { padding: 6px 10px; border: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.tags a { padding: 3px 11px; background: var(--wash); border-radius: 3px; font-size: 14px; }

/* Footer */
.site-footer { margin-top: 56px; padding: 34px 0; background: var(--navy-deep); color: #c8d3df; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; }
.site-footer a { color: #fff; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }

.notice-404 { padding: 60px 0; text-align: center; }

/* Cookie consent */
[hidden] { display: none !important; }
.cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--paper); border-top: 3px solid var(--gold); box-shadow: 0 -4px 18px rgba(11, 39, 70, .18); font-size: 15px; max-height: 90vh; overflow-y: auto; }
.cc-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; max-width: var(--wrap); margin: 0 auto; padding: 16px 20px; }
.cc-text { flex: 1 1 420px; margin: 0; line-height: 1.5; }
.cc-text a { color: var(--navy); text-decoration: underline; }
.cc-prefs { display: flex; flex-wrap: wrap; gap: 8px 22px; flex-basis: 100%; }
.cc-prefs label { display: inline-flex; align-items: center; gap: 7px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-btn { padding: 9px 16px; border: 2px solid var(--navy); border-radius: 3px; background: var(--navy); color: #fff; font: 600 15px var(--sans); cursor: pointer; }
.cc-btn.cc-alt { background: var(--paper); color: var(--navy); }
.cc-open { padding: 0; border: 0; background: none; color: #fff; font: inherit; text-decoration: underline; cursor: pointer; }

@media (max-width: 960px) {
	.lead-grid { grid-template-columns: 1fr; }
	.card-grid, .card-grid.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.masthead .wrap { flex-direction: column; align-items: stretch; }
	.logo img { width: 230px; margin: 0 auto; }
	.search-form { max-width: none; }
	.nav-toggle { display: block; }
	.mainnav ul { display: none; flex-direction: column; padding-bottom: 8px; }
	.mainnav.is-open ul { display: flex; }
	.mainnav a { padding: 10px 0; }
	.mainnav { position: static; }
	.lead-story h2 { font-size: 26px; }
	.card-grid, .card-grid.three { grid-template-columns: 1fr; }
	.entry { font-size: 18px; }
}
