/*
Theme Name: Cronica pe undă
Author: Radio Cronica
Description: Temă editorială pentru Radio Cronica, cu player live, grilă săptămânală, emisiuni și știri.
Version: 1.1.1
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: cronica-pe-unda
*/

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-800.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-800-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #100b19;
  --ink: #fff8f2;
  --night: #110c19;
  --white: #fffaf2;
  --signal: #ff5368;
  --red: #ff9fae;
  --rule: #54405b;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --shell: 76rem;
  --gutter: clamp(1.25rem, 5.5vw, 5rem);
  --dock: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding: 2rem 0 calc(var(--dock) + 2rem); }
body {
  margin: 0;
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom));
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 system-ui, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1; }
:focus-visible { outline: 2px solid #8770de; outline-offset: 4px; }
.shell { width: min(var(--shell), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus {
  z-index: 20;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: .7rem 1rem;
  clip-path: none;
  background: var(--white);
  color: var(--night);
}

.site-header {
  position: relative;
  z-index: 4;
  background: #130e1c;
  color: var(--white);
}
.header-inner { min-height: 4.875rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 8.75rem; max-height: 3.35rem; object-fit: contain; object-position: left center; }
.site-nav ul, .site-footer ul { display: flex; gap: clamp(1rem, 2.35vw, 2.5rem); align-items: center; list-style: none; padding: 0; margin: 0; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: .55rem 0; font-size: .925rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--signal); }
.site-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: -.8rem;
  display: none;
  padding: .45rem .8rem;
  min-width: 11rem;
  max-width: 17rem;
  background: #22182a;
  border: 1px solid #ffffff30;
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
.menu-toggle { padding: .55rem .6rem; border: 0; border-radius: .4rem; color: inherit; background: #ffffff12; }
.header-listen {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  font-size: .875rem;
  font-weight: 750;
  padding: .55rem .8rem;
}
.header-listen:hover { color: var(--signal); }
.signal-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--signal); flex: 0 0 auto; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(.5rem, 1.7vw, 1.6rem) 0 0;
  background: radial-gradient(ellipse at 82% 0%, #69378b 0%, transparent 48%), radial-gradient(ellipse at 2% 70%, #76264d 0%, transparent 46%), #130d21;
  color: var(--white);
}
.hero-slider, .hero-console { width: min(92rem, calc(100% - clamp(1rem, 4.7vw, 5rem))); margin-inline: auto; }
.hero-slider { position: relative; overflow: hidden; border-radius: 1.5rem 1.5rem 0 0; }
.hero-slides { display: grid; min-height: clamp(37rem, calc(95svh - 11.75rem), 55rem); }
.hero-slide { position: relative; isolation: isolate; display: flex; overflow: hidden; animation: slide-in .26s ease-out; }
@keyframes slide-in { from { opacity: .38; } to { opacity: 1; } }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 44%; z-index: -3; }
.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, #100d16 3%, #100d16ed 25%, #140b20a0 49%, #12091e06 74%),
    linear-gradient(0deg, #0e0917ba, transparent 35%);
}
.hero-orbit { position: absolute; z-index: -1; width: min(54vw, 53rem); aspect-ratio: 1; right: -6%; top: 49%; transform: translateY(-50%); opacity: .67; }
.hero-orbit i { position: absolute; inset: 0; border: 1px solid #f99daf50; border-radius: 50%; }
.hero-orbit i:nth-child(2) { inset: 6%; }
.hero-orbit i:nth-child(3) { inset: 12%; }
.hero-inner { display: flex; align-items: center; padding-block: 3.85rem 5rem; }
.hero-copy { width: min(100%, 44rem); }
.live-label {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .34rem .7rem;
  border-radius: .25rem;
  border: 1px solid #ff8a9c84;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .115em;
  text-transform: uppercase;
  background: #210f1ac9;
}
.hero-title {
  margin: clamp(1rem, 1.8vw, 1.65rem) 0 1.15rem;
  font: 800 clamp(5rem, 10.6vw, 10.25rem)/.79 var(--display);
  letter-spacing: -.027em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.hero h2.hero-title { max-width: 43rem; font-size: clamp(4rem, 8.7vw, 8rem); line-height: .88; }
.hero-title em { display: block; color: var(--signal); font-style: italic; }
.hero-description { max-width: 27rem; color: #efe7ed; font-size: clamp(1.08rem, 1.8vw, 1.35rem); line-height: 1.42; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.45rem; margin-top: 1.7rem; }
.hero-play, .program-listen {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  min-height: 3.1rem;
  background: var(--signal);
  color: var(--night);
  padding: .6rem 1.2rem;
  border-radius: .5rem;
  font-weight: 800;
  text-decoration: none;
}
.hero-play:hover, .program-listen:hover, .dock-play:hover { background: #ff8997; }
.hero-program { font-weight: 680; text-decoration-color: #f4d2e591; }
.hero-program:hover { text-decoration-color: var(--white); }
.play-icon { display: inline-block; isolation: isolate; width: 1.15rem; height: 1.15rem; flex: 0 0 auto; position: relative; }
.play-icon::before { content: ""; position: absolute; left: .25rem; top: .12rem; border: .46rem solid transparent; border-left: .65rem solid currentColor; }
[data-radio-toggle].is-active .play-icon::before { width: .65rem; height: .73rem; top: .2rem; border: 0; border-inline: .22rem solid currentColor; }
.slider-controls { position: absolute; right: max(var(--gutter), (100% - var(--shell)) / 2); bottom: 1.4rem; width: auto; display: flex; align-items: center; gap: .45rem; }
.slider-controls button { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; padding: 0; border: 1px solid #fffaf25e; color: var(--white); background: #201323d9; font-size: 1.7rem; line-height: 1; }
.slider-controls button:hover { border-color: var(--signal); }
.slider-dots { display: flex; gap: .14rem; }
.slider-dots button { width: 1.55rem; background: transparent; border: 0; }
.slider-dots button::before { content: ""; display: block; width: .6rem; height: .6rem; background: #eddbe2; border-radius: 50%; }
.slider-dots button[aria-current="true"]::before { background: var(--signal); }
.hero-console { background: #25182f; border-top: 1px solid #ef92ae84; border-radius: 0 0 1.5rem 1.5rem; }
.console-inner { display: flex; min-height: 5.75rem; gap: .95rem; align-items: center; }
.console-play { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; flex: 0 0 auto; border-radius: 50%; color: var(--night); background: var(--signal); }
.console-play:hover { background: #ff8997; }
.console-cover { width: 3.6rem; height: 3.6rem; object-fit: cover; border-radius: .55rem; }
.console-info { display: grid; min-width: 0; gap: .15rem; }
.console-info strong { font-weight: 800; font-size: 1.13rem; }
.console-info span { font-size: .875rem; color: #e7d7e6; }
.console-external { margin-inline-start: 1rem; color: #f1ddec; font-size: .875rem; white-space: nowrap; }

.editorial { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.audio-library { padding-bottom: 0; }
.library-empty { border: 1px solid var(--rule); padding: 1rem 1.25rem; border-radius: .75rem; color: #e7d4ed; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 1rem;
  row-gap: .7rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .85rem;
  margin-bottom: 1.45rem;
}
.section-head h2, .program h2, .about h2 { font: 800 clamp(2.85rem, 5.4vw, 5rem)/.9 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.text-link { font-size: .925rem; font-weight: 750; text-decoration-color: var(--signal); }
.text-link:hover { color: var(--red); }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.stories:has(> .article-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-card { min-width: 0; }
.story-link { display: block; height: 100%; text-decoration: none; background: #21172a; border: 1px solid #48364f; border-radius: .85rem; overflow: hidden; }
.story-image { background: #20152b; aspect-ratio: 1.64; overflow: hidden; }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.story-link:hover img { transform: scale(1.04); }
.story-copy { padding: 1rem 1.15rem 1.2rem; }
.story-meta { color: var(--red); font-size: .875rem; font-weight: 780; }
.story-copy h3 { margin-top: .35rem; font-size: clamp(1.15rem, 1.85vw, 1.55rem); line-height: 1.23; letter-spacing: -.018em; overflow-wrap: anywhere; }
.story-link:hover h3 { text-decoration: underline; text-decoration-color: var(--signal); }

.program { background: linear-gradient(105deg, #24192e, #191021 62%); color: var(--white); border-block: 1px solid var(--rule); }
.program-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-block: clamp(2.8rem, 6vw, 5rem); }
.program-intro p { color: #e0d3e4; margin: .85rem 0 1.3rem; }
.schedule { border-top: 1px solid #ffe1ff49; }
.schedule-day { border-bottom: 1px solid #ffe1ff49; }
.schedule-day summary { font-weight: 760; padding: .85rem .1rem; cursor: pointer; }
.schedule-day summary::marker { color: var(--signal); }
.schedule-day ul { padding: 0 0 .7rem; margin: 0; list-style: none; }
.schedule-day li { padding: .42rem .1rem .42rem 1.15rem; display: grid; grid-template-columns: 7rem 1fr; gap: .5rem; }
.schedule-day time { color: #ff9baa; font-variant-numeric: tabular-nums; }
.schedule-empty { padding: 1rem 0; color: #e0d3e4; border-bottom: 1px solid #ffe1ff49; }
.show-feature { display: grid; grid-template-columns: 1.07fr 1fr; background: #241a2e; border-radius: .85rem; overflow: hidden; border: 1px solid #48364f; }
.show-feature img { width: 100%; height: 100%; min-height: 13rem; object-fit: cover; }
.show-feature div { align-self: center; padding: clamp(1.3rem, 4vw, 4rem); }
.show-feature h3 { font: 800 clamp(2.1rem, 4.25vw, 4rem)/.95 var(--display); text-transform: uppercase; }
.show-feature p { margin: .8rem 0 .9rem; }
.about { padding-block: clamp(2.7rem, 5vw, 4rem); background: #211627; border-top: 1px solid var(--rule); }
.about-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.4rem 4rem; align-items: start; }
.about-inner p { margin: 0 0 .85rem; max-width: 38rem; }
.front-content { padding-bottom: 3rem; }
.site-footer { background: var(--night); color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 1.7rem; }
.footer-inner p { color: #d8cdda; font-size: .875rem; }
.footer-links, .site-footer ul { display: flex; gap: .65rem 1.4rem; flex-wrap: wrap; }
.footer-inner nav, .footer-links { margin-inline-start: auto; font-size: .875rem; }

.radio-dock {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 0;
  width: 100%;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid #c85c72;
  background: #16111c;
  color: var(--white);
  transition: transform .22s ease, visibility .22s;
}
.radio-dock.is-folded { transform: translateY(105%); visibility: hidden; }
.dock-inner { display: flex; align-items: center; min-height: var(--dock); gap: .8rem; }
.dock-play { display: grid; place-items: center; background: var(--signal); color: var(--night); width: 2.7rem; height: 2.7rem; flex: 0 0 auto; border-radius: 50%; }
.dock-cover { width: 2.7rem; height: 2.7rem; flex: 0 0 auto; object-fit: cover; border-radius: .45rem; }
.dock-info { display: grid; gap: .04rem; min-width: 0; }
.dock-info strong { font-size: .96rem; }
.dock-info > span { color: #dfcfdf; font-size: .8125rem; }
.dock-wave { display: flex; gap: .22rem; align-items: center; justify-content: center; margin-inline: auto; height: 2.65rem; color: #c07f9b; }
.dock-wave i { width: 2px; height: var(--height); background: currentColor; opacity: .66; }
.is-playing .dock-wave { color: var(--signal); }
.is-playing .dock-wave i { animation: waveform 870ms ease-in-out infinite alternate; }
.is-playing .dock-wave i:nth-child(3n + 1) { animation-delay: -230ms; }
.is-playing .dock-wave i:nth-child(3n + 2) { animation-delay: -525ms; }
@keyframes waveform { from { transform: scaleY(.38); } to { transform: scaleY(1); } }
.dock-volume { display: flex; gap: .25rem; align-items: center; }
.dock-volume input { width: clamp(3rem, 7vw, 6.5rem); accent-color: var(--signal); }
.mute-button { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 0; background: transparent; color: inherit; }
.volume-icon { display: block; width: .95rem; height: .95rem; background: currentColor; clip-path: polygon(0 34%, 29% 34%, 63% 0, 63% 100%, 29% 66%, 0 66%, 0 34%, 75% 21%, 92% 34%, 96% 65%, 75% 79%, 75% 65%, 85% 59%, 85% 41%, 75% 34%, 75% 21%); }
.mute-button[aria-pressed="true"] { color: var(--signal); }
.mute-button[aria-pressed="true"] .volume-icon { clip-path: polygon(0 34%, 29% 34%, 63% 0, 63% 100%, 29% 66%, 0 66%); }
.dock-external { font-size: .875rem; color: #f1ddec; white-space: nowrap; margin-inline-start: 1rem; }

.interior { min-height: 53vh; padding-block: clamp(2.5rem, 6vw, 5rem); overflow-wrap: anywhere; }
.entry, .comments { max-width: 49rem; margin-inline: auto; }
.entry-header { margin-bottom: 1.65rem; }
.interior h1 { font: 800 clamp(3rem, 7vw, 5.5rem)/.96 var(--display); margin: .25rem 0 1.15rem; }
.entry-photo { margin-bottom: 1.55rem; }
.entry-photo img { width: 100%; }
.entry-photo figcaption { margin-top: .5rem; color: #d9c9de; font-size: .875rem; }
.entry-content > *, .comments p { margin-bottom: 1rem; }
.entry-content h2, .entry-content h3 { margin-top: 1.55em; line-height: 1.2; }
.entry-content iframe, .entry-content video, .entry-content audio { max-width: 100%; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .alignleft { float: left; margin-inline-end: 1.25rem; }
.entry-content .alignright { float: right; margin-inline-start: 1.25rem; }
.entry-content::after { content: ""; display: block; clear: both; }
.comments { border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 1.75rem; }
.comment-list, .comment-list .children { padding-inline-start: 1.3rem; }
.comment-list li { padding-block: .6rem; }
.comment-form label { display: block; }
.comment-form input, .comment-form textarea, .search-form input { max-width: 100%; }
.pagination, .comments .navigation { margin-block: 1.65rem; }
.page-numbers { margin-right: .65rem; }

@media (max-width: 820px) {
  .dock-wave { display: none; }
  .dock-volume { margin-inline-start: auto; }
  .dock-external, .console-external { margin-inline-start: auto; }
  .hero-shade { background: linear-gradient(90deg, #100d16fa, #100d16ba 40%, #140b2031 89%), linear-gradient(0deg, #100d16b8, transparent 50%); }
  .hero-slides { min-height: clamp(34rem, calc(96svh - 11.5rem), 48rem); }
}

@media (max-width: 650px) {
  :root { --dock: 4.35rem; }
  .header-inner { min-height: 4.25rem; gap: .65rem; flex-wrap: wrap; padding-block: .6rem; }
  .brand img { width: 6.65rem; }
  .menu-toggle { margin-inline-start: auto; font-size: .875rem; }
  .header-listen { font-size: .8125rem; padding: .5rem .55rem; gap: .38rem; }
  .site-nav { order: 3; width: 100%; }
  .site-nav.is-enhanced:not(.is-open) { display: none; }
  .site-nav ul { display: block; }
  .site-nav .sub-menu { display: block; position: static; padding: 0 0 .35rem .9rem; border: 0; background: transparent; }
  .hero-slider { border-radius: .8rem .8rem 0 0; }
  .hero-console { border-radius: 0 0 .8rem .8rem; }
  .hero-slides { min-height: clamp(29rem, calc(95svh - 9.5rem), 49rem); }
  .hero-inner { align-items: end; padding-block: 5.5rem 5rem; }
  .hero-image { object-position: 67% center; }
  .hero-shade { background: linear-gradient(0deg, #100d16 4%, #100d16dd 41%, #100d1630), linear-gradient(90deg, #100d1699, transparent 80%); }
  .hero-orbit { width: 87vw; top: 33%; right: -23%; }
  .hero-title { font-size: clamp(4rem, 15vw, 6.5rem); margin-top: .9rem; }
  .hero h2.hero-title { font-size: clamp(3.75rem, 13vw, 6.25rem); }
  .hero-actions { gap: .9rem; }
  .hero-play { padding-inline: .93rem; }
  .stories, .stories:has(> .article-card:nth-child(2):last-child) { grid-template-columns: 1fr; gap: 1.45rem; }
  .program-grid, .show-feature, .about-inner { grid-template-columns: 1fr; }
  .footer-inner nav, .footer-links { width: 100%; margin-inline-start: 0; }
  .slider-controls { bottom: .85rem; }
  .slider-controls button { height: 2.45rem; }
  .console-inner { min-height: 4.7rem; gap: .65rem; }
  .console-play, .console-cover { width: 2.85rem; height: 2.85rem; }
  .console-info strong { font-size: .98rem; }
  .dock-external, .console-external { display: none; }
}

@media (min-width: 651px) { .menu-toggle { display: none !important; } }
@media (max-width: 360px) {
  .dock-cover, .console-cover { display: none; }
  .hero-title { font-size: 3.6rem; }
  .hero-actions { gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
