:root {
  --primary: #2f9bc7;
  --primary-2: #1c6e94;
  --primary-soft: rgba(47, 155, 199, 0.13);
  --bg: #03101d;
  --bg-2: #06182a;
  --panel: rgba(8, 22, 37, 0.86);
  --card: #0a1d31;
  --card-2: #0e2740;
  --border: rgba(85, 182, 214, 0.18);
  --text: #ecf7fb;
  --muted: #8ea9ba;
  --success: #38d57a;
  --warning: #f7bd44;
  --danger: #ff5d70;
  --radius: 16px;
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(
      circle at 15% 12%,
      rgba(47, 155, 199, 0.08),
      transparent 30%
    ),
    radial-gradient(circle at 86% 24%, rgba(23, 82, 112, 0.13), transparent 36%),
    linear-gradient(160deg, #020913, #041322 48%, #020914);
  line-height: 1.55;
  overflow-x: hidden;
}
.hidden {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}
.site-alert-bar {
  position: sticky;
  top: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
}
.site-alert-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.35);
}
.site-alert-item + .site-alert-item {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.site-alert-item.yellow {
  background: rgba(202, 138, 4, 0.95);
}
.site-alert-item.orange {
  background: rgba(234, 88, 12, 0.95);
}
.site-alert-item.red {
  background: rgba(220, 38, 38, 0.97);
  animation: urgentPulse 1.5s infinite;
}
.site-alert-bar button {
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 999px;
  width: 25px;
  height: 25px;
}
@keyframes urgentPulse {
  50% {
    filter: saturate(1.25);
    opacity: 0.88;
  }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: #020b15;
  border-bottom: 1px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.header-strip {
  max-width: 1500px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(2, 10, 18, 0.72);
  backdrop-filter: blur(10px);
}
.live-clock {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.3px;
}
.weather-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-main {
  position: relative;
  min-height: clamp(118px, 15vw, 205px);
  max-width: 1500px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  background-image: url("logo.jpg");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center 66%;
  background-color: #03111f;
}
.header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(1, 8, 16, 0.05),
    rgba(1, 8, 16, 0.15) 55%,
    rgba(1, 8, 16, 0.38)
  );
  z-index: 0;
  pointer-events: none;
}
.brand-text-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  margin-top: 6px;
}
.brand-text-overlay strong {
  font-size: clamp(1.9rem, 4vw, 4.3rem);
  font-weight: 900;
  letter-spacing: -1.8px;
  color: #fff;
}
.brand-text-overlay strong::after {
  content: "";
}
.brand-text-overlay span {
  margin-top: 5px;
  font-size: clamp(0.8rem, 1.35vw, 1.45rem);
  font-weight: 600;
  color: #eefbff;
  letter-spacing: 0.2px;
}
.header-actions {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.icon-header-btn,
.ghost-btn {
  border: 1px solid var(--border);
  background: rgba(5, 21, 35, 0.72);
  color: var(--text);
  border-radius: 10px;
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s;
  backdrop-filter: blur(8px);
}
.icon-header-btn:hover,
.ghost-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.admin-session-indicator {
  font-size: 0.72rem;
  color: var(--primary);
  border: 1px solid rgba(47, 155, 199, 0.35);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(47, 155, 199, 0.07);
  font-weight: 800;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
  font-family: inherit;
}
.admin-session-indicator:hover {
  background: rgba(47, 155, 199, 0.18);
  transform: translateY(-1px);
}
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1900;
  background: rgba(5, 18, 31, 0.95);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar {
  display: none;
}
.nav-inner {
  max-width: 1500px;
  margin: auto;
  display: flex;
  gap: 4px;
  padding: 0 12px;
  justify-content: center;
}
.nav-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 13px 14px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  font-weight: 800;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: 0.2s;
  flex: 0 0 auto;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(47, 155, 199, 0.05);
}
main {
  max-width: 1460px;
  margin: 0 auto;
  padding: 28px 20px 70px;
}
.view-section {
  display: none;
}
.active-view {
  display: block;
  animation: fade 0.35s ease;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin: 6px 0 22px;
}
.section-heading.centered {
  justify-content: center;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 0.72rem;
  letter-spacing: 1.8px;
  font-weight: 900;
}
.section-heading h1,
.subsection-heading h2 {
  margin: 4px 0 0;
  font-family: var(--font-century), "Century Gothic", Georgia, serif;
  line-height: 1.15;
}
.section-heading h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}
.section-subtitle {
  color: var(--muted);
  margin: 8px 0 0;
}
.subsection-heading {
  margin: 26px 0 15px;
}
.subsection-heading h2 {
  font-size: 1.5rem;
}
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}
.featured-hero {
  width: min(1261px, 100%);
  aspect-ratio: 1261/536;
  margin: 0 auto 30px;
  border: 1px solid rgba(47, 155, 199, 0.28);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 40px rgba(47, 155, 199, 0.08);
  background: #061727;
}
.featured-hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  color: inherit;
  display: block;
}
.featured-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(1, 8, 15, 0.82) 0%,
    rgba(1, 8, 15, 0.35) 28%,
    transparent 55%
  );
}
.featured-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #001018;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 1px;
}
.featured-content {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 24px;
  max-width: 900px;
}
.featured-title {
  font-family: var(--font-century), "Century Gothic", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2.55rem);
  font-weight: 900;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.75);
}
.featured-subtitle {
  margin-top: 9px;
  color: #d4e7ee;
  font-size: clamp(0.84rem, 1.2vw, 1rem);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 850px;
}
.featured-meta {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.article-card {
  background: linear-gradient(
    160deg,
    rgba(13, 38, 61, 0.95),
    rgba(7, 25, 41, 0.95)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.25s;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 155, 199, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 22px rgba(47, 155, 199, 0.08);
}
.card-image {
  height: 180px;
  background: #071725;
  position: relative;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s;
}
.article-card:hover .card-image img {
  transform: scale(1.05);
}
.card-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(3, 13, 23, 0.85);
  color: var(--primary);
  border: 1px solid rgba(47, 155, 199, 0.4);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 900;
}
.card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 195px;
}
.card-date {
  color: var(--muted);
  font-size: 0.7rem;
}
.article-card h2 {
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 0;
  color: #fff;
}
.article-subtitle {
  color: #91abb8;
  font-size: 0.82rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.card-cats {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: auto;
}
.cat-pill {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(47, 155, 199, 0.08);
  border: 1px solid rgba(47, 155, 199, 0.18);
  color: #a9ced8;
  font-size: 0.62rem;
}
.featured-mark {
  color: var(--warning);
  font-size: 0.72rem;
  font-weight: 900;
}
.weather-sidebar {
  position: sticky;
  top: 136px;
  background: rgba(8, 22, 37, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.weather-sidebar-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 0.75rem;
  color: var(--primary);
}
.weather-sidebar-footer {
  padding: 11px 16px;
  color: #6e8797;
  font-size: 0.65rem;
  border-top: 1px solid var(--border);
}
.weather-city-card {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.weather-city-card:last-child {
  border-bottom: 0;
}
.weather-city-name {
  font-weight: 800;
  font-size: 0.86rem;
}
.weather-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.weather-day-label {
  font-size: 0.66rem;
  color: var(--muted);
}
.weather-day-desc {
  font-size: 0.72rem;
  color: #a9c0ca;
  text-transform: capitalize;
}
.weather-day-desc.long {
  font-size: 0.62rem;
}
.weather-day-right {
  display: flex;
  align-items: center;
  gap: 7px;
}
.weather-day-temp {
  font-weight: 900;
}
.weather-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  position: relative;
}
.weather-icon-sm {
  width: 32px;
  height: 32px;
}
.weather-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.weather-svg .moon,
.weather-svg .sun,
.weather-svg .cloud {
  fill: currentColor;
}
.weather-svg .rain {
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
}
.weather-svg .star {
  fill: currentColor;
  opacity: 0.85;
}
.weather-mini .weather-icon {
  color: var(--primary);
}
.weather-full-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
}
.weather-full-card {
  background: linear-gradient(145deg, #0b2339, #081827);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 17px;
  min-height: 220px;
}
.wfc-city {
  font-weight: 900;
}
.wfc-icon {
  color: var(--primary);
  width: 78px;
  height: 78px;
  margin: 12px auto 2px;
}
.wfc-icon .weather-icon {
  width: 78px;
  height: 78px;
}
.wfc-temp {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
}
.wfc-desc {
  text-align: center;
  color: #9ab1bd;
  text-transform: capitalize;
  font-size: 0.8rem;
}
.wfc-desc.long {
  font-size: 0.68rem;
}
.wfc-row {
  display: flex;
  justify-content: space-between;
  color: #7f97a5;
  font-size: 0.68rem;
  margin-top: 9px;
}
.live-streams-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.live-card {
  background: #071827;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.live-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
}
.live-badge {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f33;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.75);
  animation: livePulse 1.2s infinite;
}
@keyframes livePulse {
  50% {
    transform: scale(1.6);
    opacity: 0.55;
  }
}
.live-embed {
  aspect-ratio: 16/9;
  background: #000;
}
.live-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.live-copy {
  padding: 14px;
  color: #9bb1bd;
}
.live-copy strong {
  display: block;
  color: #fff;
  margin-bottom: 5px;
}
.live-copy p {
  margin: 0;
  font-size: 0.82rem;
}
.live-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.live-link {
  font-size: 0.72rem;
  color: var(--primary);
  text-decoration: none;
}
.live-placeholder {
  padding: 25px;
  color: #9bb1bd;
  text-align: center;
}
.live-placeholder strong {
  display: block;
  color: #fff;
  margin-bottom: 7px;
}
.auth-shell {
  min-height: 55vh;
  display: grid;
  place-items: center;
}
.auth-card {
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(
    160deg,
    rgba(10, 34, 54, 0.95),
    rgba(5, 18, 30, 0.95)
  );
  box-shadow: var(--shadow);
}
.auth-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(47, 155, 199, 0.1);
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.auth-card h1,
.modal-box h2 {
  margin: 4px 0 8px;
  font-family: var(--font-century), "Century Gothic", Georgia, serif;
  font-size: 2rem;
}
.auth-card p,
.modal-box p {
  color: var(--muted);
  margin: 0 0 18px;
}
.auth-card form,
.modal-box form {
  display: grid;
  gap: 12px;
}
.auth-card label,
.modal-box label,
.admin-panel label {
  display: grid;
  gap: 6px;
  color: #b9d0da;
  font-size: 0.77rem;
  font-weight: 800;
}
.auth-card input,
.modal-box input,
.admin-panel input,
.admin-panel textarea,
.admin-panel select {
  width: 100%;
  background: #061727;
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 11px;
  padding: 11px 12px;
  outline: 0;
}
.auth-card input:focus,
.modal-box input:focus,
.admin-panel input:focus,
.admin-panel textarea:focus,
.admin-panel select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 155, 199, 0.08);
}
.wide {
  width: 100%;
}
.btn-primary,
.btn-secondary {
  border: 0;
  border-radius: 11px;
  padding: 11px 15px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #00a8dc);
  color: #00131d;
  box-shadow: 0 8px 24px rgba(47, 155, 199, 0.15);
}
.btn-secondary {
  background: #0a1b2b;
  color: #aec3cc;
  border: 1px solid var(--border);
}
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}
.message {
  min-height: 24px;
  margin-top: 10px;
  font-size: 0.78rem;
}
.message.success {
  color: var(--success);
}
.message.error {
  color: var(--danger);
}
.admin-panel {
  background: rgba(6, 20, 34, 0.88);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}
.admin-header h1 {
  margin: 3px 0 0;
  font-family: var(--font-century), "Century Gothic", Georgia, serif;
}
.admin-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.admin-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 13px;
  border-bottom: 2px solid transparent;
  font-weight: 900;
}
.admin-tabs button.active,
.admin-tabs button:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.admin-tab-content {
  display: none;
}
.active-tab {
  display: block;
}
.form-row {
  display: flex;
  gap: 14px;
}
.flex-2 {
  flex: 2;
}
.flex-1 {
  flex: 1;
}
.category-fieldset {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0;
}
.category-fieldset legend {
  padding: 0 6px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 900;
}
.category-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.category-check-grid label {
  display: flex;
  grid-template-columns: none;
  gap: 8px;
  align-items: center;
  background: #071927;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 11px;
  border-radius: 10px;
  color: #c4d8df;
}
.category-check-grid input {
  width: auto;
}
.featured-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 16px;
  margin: 14px 0;
  border: 1px solid rgba(247, 189, 68, 0.23);
  border-radius: 14px;
  background: rgba(247, 189, 68, 0.05);
}
.featured-row strong {
  display: block;
}
.featured-row p {
  margin: 4px 0 0;
  color: #8da4b0;
  font-size: 0.75rem;
}
.switch {
  display: block;
  min-width: 58px;
}
.switch input {
  display: none;
}
.switch span {
  display: block;
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: #132739;
  border: 1px solid var(--border);
  position: relative;
}
.switch span::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  top: 3px;
  left: 4px;
  border-radius: 50%;
  background: #6e8797;
  transition: 0.22s;
}
.switch input:checked + span {
  background: rgba(47, 155, 199, 0.18);
  border-color: var(--primary);
}
.switch input:checked + span::after {
  left: 29px;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(47, 155, 199, 0.4);
}
.editor-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px;
  background: #071624;
  border-bottom: 1px solid var(--border);
}
.editor-toolbar button {
  border: 1px solid transparent;
  background: #0d2235;
  color: #aac5d1;
  border-radius: 8px;
  width: 34px;
  height: 32px;
}
.editor-toolbar button:hover {
  color: var(--primary);
  border-color: rgba(47, 155, 199, 0.25);
}
.editor-toolbar-media {
  align-items: center;
  background: #0a1e30;
}
.editor-toolbar-media button {
  width: auto;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}
.editor-toolbar-media-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: 4px;
}
.rich-editor-area {
  min-height: 250px;
  padding: 14px;
  outline: 0;
}
.rich-editor-area:empty::before {
  content: attr(data-placeholder);
  color: #63808f;
}
.rich-editor-area h2,
.rich-editor-area h3 {
  font-family: var(--font-century), "Century Gothic", Georgia, serif;
  color: #fff;
}
.rich-editor-area blockquote {
  border-left: 3px solid var(--primary);
  margin: 12px 0;
  padding-left: 14px;
  color: #b4d2dc;
}
.in-article-image {
  position: relative;
  display: block;
  margin: 14px 0;
  cursor: grab;
  border: 1px dashed transparent;
  border-radius: 10px;
  transition: border-color 0.15s, opacity 0.15s;
}
.in-article-image:hover {
  border-color: rgba(47, 155, 199, 0.4);
}
.in-article-image.dragging {
  opacity: 0.4;
  cursor: grabbing;
}
.in-article-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  pointer-events: none;
}
.in-article-image-handle {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 18, 31, 0.75);
  color: #fff;
  border-radius: 7px;
  font-size: 0.75rem;
  backdrop-filter: blur(4px);
}
.in-article-image-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  border: none;
  border-radius: 7px;
  cursor: pointer;
}
.in-article-image-remove:hover {
  background: #dc2626;
}
/* Στη δημόσια προβολή άρθρου η εικόνα εμφανίζεται καθαρή, χωρίς τα
   εργαλεία επεξεργασίας (λαβή μετακίνησης / κουμπί αφαίρεσης). */
.article-content .in-article-image {
  cursor: default;
}
.article-content .in-article-image-handle,
.article-content .in-article-image-remove {
  display: none;
}
.admin-submit-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.admin-news-list {
  display: grid;
  gap: 9px;
}
.admin-news-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  background: #071827;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 13px;
}
.admin-news-info {
  min-width: 0;
}
.admin-news-title {
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-news-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #8198a5;
  font-size: 0.67rem;
  margin-top: 5px;
}
.admin-actions {
  display: flex;
  gap: 5px;
}
.icon-action {
  border: 1px solid var(--border);
  background: #0c2133;
  color: #a9c1cc;
  border-radius: 9px;
  width: 36px;
  height: 36px;
}
.icon-action:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.icon-action.danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}
.alert-admin-form {
  padding: 15px;
  background: #071827;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.approved {
  color: var(--success);
}
.pending {
  color: var(--warning);
}
.article-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
}
.single-article-card {
  background: #071827;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.single-cover {
  width: 100%;
  max-height: 530px;
  object-fit: cover;
  border-radius: 13px;
  margin-bottom: 20px;
}
.single-article-card h1 {
  font-family: var(--font-century), "Century Gothic", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.12;
  margin: 10px 0;
}
.single-meta {
  color: #829aa7;
  font-size: 0.76rem;
  margin-bottom: 14px;
}
.single-subtitle {
  font-size: 1.1rem;
  color: #bdd0d8;
  margin-bottom: 22px;
}
.article-content {
  font-size: 1rem;
  color: #d7e5ea;
}
.article-content p {
  margin: 0 0 1rem;
}
.article-content a {
  color: var(--primary);
}
.comments-section {
  background: #071827;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  height: fit-content;
  position: sticky;
  top: 135px;
}
.comment-card {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.comment-card:first-child {
  padding-top: 0;
}
.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #9bb4bf;
  font-size: 0.68rem;
}
.comment-body {
  margin-top: 6px;
  color: #d9e4e8;
  font-size: 0.82rem;
}
.comment-form {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  background: #061727;
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 10px;
  padding: 10px 11px;
  outline: 0;
}
.empty-state,
.loading-state,
.error-state {
  text-align: center;
  padding: 50px 20px;
  color: #7f98a6;
  grid-column: 1/-1;
}
.empty-state i,
.error-state i {
  font-size: 2rem;
  color: #2c6176;
  display: block;
  margin-bottom: 8px;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, 0.68);
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(9px);
}
.modal-box {
  width: min(420px, 100%);
  position: relative;
  padding: 26px;
  border-radius: 18px;
  background: #071827;
  border: 1px solid rgba(47, 155, 199, 0.3);
  box-shadow: 0 24px 100px rgba(0, 0, 0, 0.55);
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #0c2133;
  color: #b5c8d0;
}
footer {
  border-top: 1px solid var(--border);
  background: rgba(3, 12, 22, 0.85);
}
.footer-inner {
  max-width: 1460px;
  margin: auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #718996;
  font-size: 0.72rem;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #b7cbd3;
  font-weight: 900;
}
.footer-logo-wrap img {
  height: 32px;
  width: auto;
}
.footer-links a {
  color: var(--primary);
  text-decoration: none;
}
@media (max-width: 1100px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .weather-full-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .article-page-grid {
    grid-template-columns: 1fr;
  }
  .comments-section {
    position: static;
  }
  .weather-sidebar {
    position: static;
  }
  .home-layout {
    grid-template-columns: 1fr;
  }
  .live-streams-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 780px) {
  .header-main {
    min-height: 118px;
    background-position: center 66%;
  }
  .brand-text-overlay strong {
    font-size: clamp(1.7rem, 7vw, 2.7rem);
  }
  .brand-text-overlay span {
    font-size: clamp(0.72rem, 2.3vw, 1rem);
  }
  .header-actions {
    right: 9px;
  }
  .admin-session-indicator {
    display: none;
  }
  .section-heading {
    align-items: flex-start;
  }
  .featured-content {
    left: 18px;
    right: 18px;
    bottom: 17px;
  }
  .featured-title {
    font-size: 1.25rem;
  }
  .featured-subtitle {
    font-size: 0.78rem;
  }
  .category-check-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .weather-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    flex-direction: column;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 520px) {
  main {
    padding: 18px 12px 48px;
  }
  .header-main {
    min-height: 104px;
    background-position: center 66%;
  }
  .brand-text-overlay strong {
    font-size: clamp(1.45rem, 8vw, 2.15rem);
    letter-spacing: -1px;
  }
  .brand-text-overlay span {
    font-size: clamp(0.68rem, 2.7vw, 0.88rem);
  }
  .header-actions {
    right: 7px;
  }
  .nav-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 4px 6px;
    min-width: 0;
    width: 100%;
  }
  .nav-link {
    padding: 9px 4px;
    font-size: 0.58rem;
    letter-spacing: 0.1px;
    border-bottom-width: 2px;
    white-space: normal;
    line-height: 1.15;
    min-height: 42px;
  }
  .nav-link i {
    display: block;
    margin-bottom: 3px;
  }
  .main-nav {
    overflow-x: visible;
  }
  .featured-hero {
    border-radius: 13px;
  }
  .featured-badge {
    top: 11px;
    left: 11px;
  }
  .featured-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .weather-full-grid {
    grid-template-columns: 1fr;
  }
  .category-check-grid {
    grid-template-columns: 1fr;
  }
  .featured-row {
    align-items: flex-start;
  }
  .admin-panel {
    padding: 14px;
  }
  .admin-news-row {
    grid-template-columns: 1fr;
  }
  .single-article-card {
    padding: 16px;
  }
  .comments-section {
    padding: 14px;
  }
}

/* ===== FINAL UI REFINEMENTS ===== */
.header-main {
  max-width: none;
  width: 100%;
  min-height: clamp(92px, 10.5vw, 160px);
  height: clamp(92px, 10.5vw, 160px);
  background-image: none;
  background-color: #03111f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.site-logo-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
  z-index: 0;
}
.header-overlay {
  background: linear-gradient(
    180deg,
    rgba(1, 8, 16, 0.04),
    rgba(1, 8, 16, 0.14) 58%,
    rgba(1, 8, 16, 0.34)
  );
}
.brand-text-overlay {
  display: none !important;
}
.header-actions {
  right: clamp(8px, 2vw, 22px);
}
.featured-title {
  font-size: clamp(1.05rem, 1.9vw, 1.85rem);
  line-height: 1.15;
  max-width: 850px;
}
.featured-content {
  left: clamp(16px, 2.2vw, 30px);
  right: clamp(16px, 2.2vw, 30px);
  bottom: clamp(16px, 2vw, 24px);
}
.main-nav {
  overflow-x: visible;
}
.nav-inner {
  width: 100%;
  max-width: 1600px;
}
@media (max-width: 900px) {
  .header-main {
    min-height: 104px;
    height: 104px;
  }
  .nav-inner {
    justify-content: stretch;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    padding: 4px 6px;
  }
  .nav-link {
    white-space: normal;
    min-height: 45px;
    padding: 8px 5px;
    font-size: 0.62rem;
    line-height: 1.1;
  }
  .nav-link i {
    display: block;
    margin-bottom: 3px;
  }
}
@media (max-width: 560px) {
  .header-main {
    min-height: 88px;
    height: 88px;
  }
  .site-logo-banner {
    object-position: center 54%;
  }
  .header-strip {
    padding: 5px 10px;
    font-size: 0.68rem;
  }
  .nav-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
  }
  .nav-link {
    font-size: 0.56rem;
    padding: 7px 3px;
    min-height: 44px;
  }
  .featured-title {
    font-size: 1.04rem;
    -webkit-line-clamp: 2;
  }
  .featured-subtitle {
    font-size: 0.75rem;
    max-width: 100%;
  }
}
.weather-svg .sun-rays path {
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.weather-svg .fog path {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.75;
}
.weather-svg .snow path {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* ===== Responsive device-safe navigation, logo and weather ===== */
.header-main {
  width: 100%;
  max-width: none;
  height: clamp(64px, 8vw, 100px);
  min-height: unset;
  aspect-ratio: unset;
  background: linear-gradient(135deg, #020b18 0%, #041625 50%, #020c1a 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.site-logo-banner {
  display: none !important;
}
.logo-text-safe {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  pointer-events: none;
  gap: 4px;
}
.header-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 5, 12, 0.03),
    rgba(0, 8, 16, 0.08) 60%,
    rgba(0, 8, 16, 0.25)
  );
}
.header-actions {
  z-index: 3;
}
.main-nav {
  overflow: visible;
}
.nav-inner {
  display: grid;
  width: min(100%, 1600px);
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 4px;
  padding: 4px 8px;
  margin: auto;
}
.nav-link {
  width: 100%;
  min-width: 0;
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  padding: 10px 7px;
  font-size: clamp(0.56rem, 0.72vw, 0.78rem);
  line-height: 1.15;
  min-height: 44px;
  border: 1px solid rgba(85, 182, 214, 0.08);
  border-radius: 10px;
}
.nav-link i {
  flex: 0 0 auto;
}
.featured-title {
  font-size: clamp(0.95rem, 1.75vw, 1.72rem);
  max-width: min(820px, 85%);
}
.featured-subtitle {
  font-size: clamp(0.72rem, 1vw, 0.95rem);
  max-width: min(760px, 86%);
}
.single-article-only {
  grid-template-columns: 1fr;
}
.live-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.live-admin-card {
  padding: 16px;
  border: 1px solid var(--border);
  background: #071827;
  border-radius: 14px;
}
.live-admin-card h2 {
  font-family: var(--font-century), "Century Gothic", Georgia, serif;
  margin: 5px 0 13px;
  font-size: 1.12rem;
}
.live-admin-card small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.45;
}
.live-admin-preview {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed rgba(47, 155, 199, 0.28);
  border-radius: 12px;
  background: rgba(47, 155, 199, 0.04);
  color: #a9c4cf;
  font-size: 0.78rem;
}
.live-admin-preview p {
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.live-channel-card {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  background: #071827;
  border-radius: 14px;
}
.live-channel-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* 25-area weather page */
.weather-full-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.weather-full-card {
  min-width: 0;
}
.wfc-two-day {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wfc-day {
  padding: 10px;
  border: 1px solid rgba(85, 182, 214, 0.12);
  border-radius: 12px;
  background: rgba(3, 17, 29, 0.36);
}
.wfc-day.tomorrow {
  border-color: rgba(47, 155, 199, 0.3);
  box-shadow: inset 0 0 20px rgba(47, 155, 199, 0.045);
}
.wfc-day-label {
  font-weight: 900;
  color: var(--primary);
  font-size: 0.72rem;
  margin-bottom: 7px;
}
.wfc-day .wfc-icon {
  height: 54px;
}
.wfc-day .wfc-temp {
  font-size: 1.35rem;
}
.wfc-day .wfc-desc {
  min-height: 32px;
  font-size: 0.69rem;
}
.wfc-row {
  font-size: 0.68rem;
}

@media (max-width: 1280px) {
  .nav-inner {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}
@media (max-width: 900px) {
  .header-main {
    aspect-ratio: 16/3.8;
    min-height: 76px;
  }
  .site-logo-banner {
    max-height: 120px;
  }
  .nav-inner {
    grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
    gap: 3px;
  }
  .nav-link {
    min-height: 43px;
    padding: 8px 5px;
    font-size: clamp(0.54rem, 0.95vw, 0.7rem);
  }
  .nav-link i {
    font-size: 0.82em;
  }
  .live-admin-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .header-main {
    aspect-ratio: 16/4.4;
    min-height: 72px;
  }
  .site-logo-banner {
    max-height: 100px;
  }
  .nav-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 4px 6px;
  }
  .nav-link {
    min-height: 46px;
    font-size: clamp(0.5rem, 1.7vw, 0.64rem);
    padding: 7px 3px;
  }
  .nav-link i {
    display: block;
    margin-bottom: 3px;
  }
  .wfc-two-day {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 430px) {
  .header-strip {
    font-size: 0.62rem;
    padding: 4px 8px;
  }
  .header-main {
    aspect-ratio: 16/5.15;
    min-height: 68px;
  }
  .site-logo-banner {
    max-height: 90px;
  }
  .header-actions {
    right: 6px;
  }
  .nav-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    padding: 3px 4px;
  }
  .nav-link {
    min-height: 43px;
    border-radius: 8px;
    font-size: clamp(0.47rem, 2.3vw, 0.58rem);
    letter-spacing: 0;
    padding: 6px 2px;
  }
  .nav-link i {
    font-size: 0.85em;
  }
  .weather-full-grid {
    grid-template-columns: 1fr;
  }
  .live-channel-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 320px) {
  .header-main {
    aspect-ratio: 16/5.8;
    min-height: 64px;
  }
  .site-logo-banner {
    max-height: 80px;
  }
  .nav-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 2px;
  }
  .nav-link {
    min-height: 41px;
    font-size: 0.45rem;
  }
}

/* ============================================================
   MOURMOURA NEWS v2 — NEW FEATURES
   Century Gothic · Themes · Reactions · Theme Switcher
   ============================================================ */

/* ===== TYPOGRAPHY: Century Gothic stack =====
   Single source of truth for the "Century Gothic" look. Order matters:
   1) the local CenturyGothic @font-face (only matches if the visitor's
      device actually has the font installed — mostly desktop/Mac);
   2) Nunito, loaded from Google Fonts, as the ACTUAL fallback that renders
      identically on every device (this is what most visitors, especially
      on mobile, will see);
   3) generic sans-serif as the last resort.
   This is defined ONCE, here, and must not be redefined anywhere else in
   this file — duplicate :root overrides further down previously caused
   mobile and desktop to render different fonts. */
:root {
  --font-century: "CenturyGothic", "Century Gothic", "Nunito", "AppleGothic",
    "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  --font-century-italic: "Century Gothic", "Nunito", "AppleGothic", "Gill Sans",
    oblique 10deg, sans-serif;
  --font-body: Arial, "Century Gothic", "CenturyGothic", "Nunito", sans-serif;
}

/* Titles use Century Gothic */
.article-card h2,
.single-article-card h1,
.featured-title,
.admin-panel h1,
.section-heading h1,
.live-card strong {
  font-family: var(--font-century);
  font-weight: 700;
}

/* Subtitles use Century Gothic Italic */
.article-subtitle,
.single-subtitle,
.featured-subtitle,
.section-subtitle {
  font-family: var(--font-century-italic);
  font-style: italic;
}

/* ===== THEME SWITCHER ===== */
.theme-switcher {
  position: fixed;
  bottom: 28px;
  right: 22px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.theme-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: rgba(6, 22, 38, 0.92);
  color: var(--primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(47, 155, 199, 0.12);
  backdrop-filter: blur(12px);
  transition: all 0.22s;
}
.theme-toggle-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(47, 155, 199, 0.28);
  transform: scale(1.08);
}

.theme-panel {
  background: rgba(5, 18, 32, 0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  min-width: 160px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  animation: fade 0.2s ease;
}
.theme-panel-label {
  font-size: 0.62rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 1.4px;
  margin-bottom: 10px;
}
.theme-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.theme-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 8px 10px;
  color: #b4c9d4;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.18s;
  width: 100%;
  text-align: left;
}
.theme-opt:hover,
.theme-opt.active {
  border-color: var(--primary);
  color: #fff;
  background: rgba(47, 155, 199, 0.08);
}
.theme-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}
.td-network {
  background: radial-gradient(circle, #2f9bc7 0%, #020a14 100%);
}
.td-storm {
  background: radial-gradient(circle, #1e3a5f 0%, #050510 100%);
}
.td-fog {
  background: radial-gradient(circle, #c8d8e0 0%, #7a8f98 100%);
}
.td-dark {
  background: #050505;
}

/* ===== THEME CANVASES & BODY OVERRIDES ===== */
body.theme-network {
  background: radial-gradient(
      circle at 15% 12%,
      rgba(47, 155, 199, 0.08),
      transparent 30%
    ),
    radial-gradient(circle at 86% 24%, rgba(23, 82, 112, 0.13), transparent 36%),
    linear-gradient(160deg, #020913, #041322 48%, #020914);
}
body.theme-storm {
  background: linear-gradient(160deg, #010209, #060c1a 50%, #010308);
}
body.theme-fog {
  background: linear-gradient(160deg, #b8c8d2, #cdd8de 50%, #b0c0ca);
  color: #1a2a34;
}
body.theme-dark {
  background: #050505;
}

/* Fog theme — text overrides */
body.theme-fog {
  --text: #1a2a34;
  --muted: #4a6070;
  --card: rgba(200, 215, 222, 0.85);
  --border: rgba(100, 140, 160, 0.28);
  --panel: rgba(210, 222, 228, 0.9);
}
body.theme-fog .site-header {
  background: rgba(190, 205, 212, 0.97);
  border-bottom-color: #90abb8;
}
body.theme-fog .main-nav {
  background: rgba(180, 196, 204, 0.97);
}
body.theme-fog .nav-link {
  color: #3a5060;
}
body.theme-fog .nav-link.active,
body.theme-fog .nav-link:hover {
  color: #005580;
  border-bottom-color: #005580;
}
body.theme-fog .article-card {
  background: rgba(210, 224, 230, 0.9);
  border-color: rgba(100, 140, 160, 0.3);
}
body.theme-fog .article-card h2 {
  color: #112030;
}
body.theme-fog .site-alert-item.yellow {
  background: rgba(180, 130, 0, 0.92);
}

/* Dark theme */
body.theme-dark {
  --text: #d0d0d0;
  --muted: #666;
  --card: #0a0a0a;
  --border: rgba(60, 60, 60, 0.5);
  --primary: #aaa;
}
body.theme-dark #bg-canvas {
  display: none;
}
body.theme-dark .site-header {
  background: #050505;
  border-bottom-color: #222;
}
body.theme-dark .main-nav {
  background: #080808;
  border-bottom-color: #1a1a1a;
}
body.theme-dark .nav-link.active,
body.theme-dark .nav-link:hover {
  color: #ccc;
  border-bottom-color: #888;
}
body.theme-dark .article-card {
  background: #0d0d0d;
  border-color: #1c1c1c;
}

/* Storm theme text/border adjustments */
body.theme-storm {
  --text: #d8eaf5;
  --card: rgba(10, 20, 40, 0.95);
  --border: rgba(50, 90, 140, 0.35);
}

/* ===== STORM CANVAS lightning ===== */
#storm-canvas {
  background: transparent;
}
#fog-canvas {
  background: transparent;
}

/* ===== ARTICLE REACTIONS ===== */
.article-reactions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 24px;
  background: rgba(6, 20, 34, 0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 8px;
  backdrop-filter: blur(10px);
}

/* Πλοήγηση προηγούμενο/επόμενο άρθρο ("stories"-style) */
.article-story-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.story-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  max-width: 48%;
  overflow: hidden;
}
.story-nav-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.story-nav-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(47, 155, 199, 0.08);
}
.story-nav-btn:disabled {
  visibility: hidden;
}
.story-nav-next {
  margin-left: auto;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border);
  color: var(--muted);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
}
.reaction-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(47, 155, 199, 0.08);
  transform: translateY(-1px);
}
.reaction-btn.active-like {
  background: rgba(56, 213, 122, 0.12);
  border-color: var(--success);
  color: var(--success);
}
.reaction-btn.active-dislike {
  background: rgba(255, 93, 112, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}
.reaction-btn i {
  font-size: 0.95rem;
}
.share-btn {
  margin-left: auto;
}

/* Fog theme reactions */
body.theme-fog .article-reactions {
  background: rgba(200, 215, 222, 0.85);
}
body.theme-fog .reaction-btn {
  border-color: rgba(80, 120, 140, 0.4);
  color: #3a5060;
}
body.theme-fog .reaction-btn:hover {
  color: #005580;
  border-color: #005580;
}

/* ===== ADMIN: Extra tabs — comments section removed notice ===== */
.comments-removed-notice {
  padding: 22px;
  background: rgba(247, 189, 68, 0.07);
  border: 1px solid rgba(247, 189, 68, 0.25);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}
.comments-removed-notice i {
  color: var(--warning);
  margin-right: 6px;
}

/* ===== ADMIN: Additional fields for article form ===== */
.admin-tags-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 12px;
}
.form-hint {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* ===== SHARE TOAST ===== */
.share-toast {
  position: fixed;
  bottom: 90px;
  right: 22px;
  background: rgba(56, 213, 122, 0.92);
  color: #001a0a;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  z-index: 6000;
  animation: toastIn 0.25s ease;
  pointer-events: none;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== STORM STUDIO BG visual (behind canvas) ===== */
body.theme-storm .header-strip {
  background: rgba(1, 4, 16, 0.85);
}
body.theme-storm .site-header {
  background: rgba(1, 4, 18, 0.95);
  border-bottom-color: rgba(40, 80, 160, 0.5);
}
body.theme-storm .article-card {
  background: linear-gradient(
    160deg,
    rgba(8, 18, 40, 0.97),
    rgba(4, 10, 24, 0.97)
  );
}

/* ===== SLIM HEADER — title + slogan only ===== */
.logo-text-safe strong {
  font-family: var(--font-century), "Playfair Display", serif;
  font-size: clamp(1.4rem, 3.2vw, 3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1;
}
.logo-text-safe strong span {
  color: var(--primary);
}
.logo-text-safe em {
  font-family: var(--font-century-italic), serif;
  font-size: clamp(0.62rem, 1.1vw, 0.95rem);
  color: rgba(200, 230, 240, 0.7);
  font-style: italic;
  letter-spacing: 0.3px;
}
/* Decorative line behind header text */
.header-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(47, 155, 199, 0.04) 50%,
    transparent 100%
  );
  pointer-events: none;
}
.header-main::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.4;
}

/* ===== HAMBURGER MENU (mobile) ===== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(6, 22, 38, 0.85);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  position: fixed;
  top: clamp(64px, 8vw, 100px);
  right: 10px;
  z-index: 2500;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
@media (max-width: 700px) {
  .hamburger-btn {
    display: flex;
  }
  .main-nav {
    position: fixed !important;
    top: clamp(64px, 8vw, 100px) !important;
    left: 0;
    right: 0;
    background: rgba(4, 14, 26, 0.98) !important;
    border-bottom: 1px solid var(--border) !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2400;
    backdrop-filter: blur(16px);
  }
  .main-nav.open {
    max-height: 400px;
  }
  .nav-inner {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    padding: 10px 10px 14px !important;
  }
  .nav-link {
    justify-content: flex-start !important;
    padding: 11px 14px !important;
    font-size: 0.78rem !important;
    min-height: 44px !important;
    border-radius: 10px;
    border: 1px solid rgba(85, 182, 214, 0.1) !important;
  }
  /* Push main content down when nav is open */
  main {
    padding-top: 10px;
  }
}

/* ===== SMALLER WEATHER CITY CARDS ===== */
.weather-city-card {
  padding: 8px 12px;
}
.weather-city-name {
  font-size: 0.78rem;
}
.weather-day {
  margin-top: 6px;
  gap: 8px;
}
.weather-day-label {
  font-size: 0.6rem;
}
.weather-day-desc {
  font-size: 0.64rem;
}
.weather-day-desc.long {
  font-size: 0.56rem;
}
.weather-day-temp {
  font-size: 0.82rem;
}
.weather-icon {
  width: 30px;
  height: 30px;
}
.weather-sidebar-header {
  padding: 9px 12px;
  font-size: 0.68rem;
}
.weather-sidebar-footer {
  padding: 7px 12px;
  font-size: 0.6rem;
}

/* ===== Regional weather accordions & legacy-screen layout ===== */
.site-logo-banner {
  display: none !important;
}
.header-main {
  height: clamp(64px, 8vw, 100px);
  min-height: 64px;
  justify-content: center;
  gap: 0;
}
.logo-text-safe {
  align-items: center;
  text-align: center;
  padding-right: 0;
}
.header-overlay {
  z-index: 1;
}
.weather-models {
  margin: -8px 0 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}
.weather-models i {
  color: var(--primary);
}
.weather-full-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.weather-region {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(5, 21, 36, 0.88);
}
.weather-region > summary,
.weather-city-accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}
.weather-region > summary::-webkit-details-marker,
.weather-city-accordion > summary::-webkit-details-marker {
  display: none;
}
.weather-region > summary {
  padding: 14px 15px;
  font-weight: 900;
  color: #e9faff;
}
.weather-region > summary i:first-child {
  color: var(--primary);
  margin-right: 7px;
}
.weather-region[open] > summary {
  border-bottom: 1px solid var(--border);
  background: rgba(47, 155, 199, 0.07);
}
.weather-region summary > .fa-chevron-down,
.weather-city-accordion summary > .fa-chevron-down {
  color: var(--primary);
  font-size: 0.76rem;
  transition: transform 0.2s;
}
.weather-region[open] > summary > .fa-chevron-down,
.weather-city-accordion[open] > summary > .fa-chevron-down {
  transform: rotate(180deg);
}
.weather-region-cities {
  padding: 8px;
  display: grid;
  gap: 7px;
}
.weather-city-accordion {
  border-radius: 10px;
  border: 1px solid rgba(85, 182, 214, 0.15);
  background: rgba(2, 13, 25, 0.5);
}
.weather-city-accordion > summary {
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 800;
}
.weather-city-accordion[open] > summary {
  color: var(--primary);
  border-bottom: 1px solid rgba(85, 182, 214, 0.15);
}
.weather-city-detail {
  padding: 10px;
}
.weather-four-day {
  display: grid;
  gap: 9px;
}
.weather-day-card {
  border-radius: 10px;
  padding: 10px;
  background: linear-gradient(
    140deg,
    rgba(14, 47, 72, 0.85),
    rgba(4, 23, 39, 0.9)
  );
  border: 1px solid rgba(47, 155, 199, 0.14);
}
.weather-day-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
}
.weather-day-title strong {
  text-transform: capitalize;
}
.weather-day-title span {
  color: var(--primary);
  font-weight: 900;
  white-space: nowrap;
}
.weather-phases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  margin: 6px 0 2px;
}
.weather-phases > div {
  display: grid;
  justify-items: center;
  gap: 1px;
}
.weather-phases small {
  color: var(--muted);
  font-size: 0.62rem;
}
.weather-phases .weather-icon {
  width: 38px;
  height: 38px;
  color: var(--primary);
  filter: drop-shadow(0 0 6px rgba(47, 155, 199, 0.32));
}
.weather-condition {
  margin: 4px 0 8px;
  text-align: center;
  text-transform: capitalize;
  font-size: 0.73rem;
  color: #bcd2dc;
}
.weather-condition.long {
  font-size: 0.62rem;
}
.weather-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  font-size: 0.67rem;
  color: #a9c2cc;
}
.weather-metrics i {
  width: 15px;
  color: var(--primary);
}
.weather-metrics b {
  float: right;
  color: #fff;
}
.weather-unavailable {
  padding: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}
.weather-partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 34px;
}
.weather-partner-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(5, 22, 38, 0.82);
  color: var(--muted);
  font-size: 0.82rem;
  transition: border-color 0.2s, transform 0.2s;
}
.weather-partner-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.weather-partner-card img {
  width: 45%;
  max-width: 150px;
  max-height: 100px;
  object-fit: contain;
}
.weather-partner-card strong {
  display: block;
  color: var(--primary);
  margin-top: 4px;
}
.theme-switcher {
  left: 18px;
  right: auto;
  bottom: 18px;
  align-items: flex-start;
}

@media (max-width: 1280px) {
  .nav-inner {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .weather-full-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .header-main {
    height: 70px;
    gap: 8px;
  }
  .site-logo-banner {
    width: 52px;
    height: 52px;
    margin-left: 8px;
  }
  .logo-text-safe strong {
    font-size: clamp(0.88rem, 4.5vw, 1.25rem);
  }
  .logo-text-safe em {
    display: none;
  }
  .weather-full-grid,
  .weather-partners {
    grid-template-columns: 1fr;
  }
  .weather-partner-card img {
    width: 36%;
    max-width: 115px;
  }
  .theme-switcher {
    left: 10px;
    bottom: 10px;
  }
  .hamburger-btn {
    top: 12px;
    right: 10px;
  }
  .main-nav {
    top: 64px !important;
  }
}

/* Final mobile navigation and newsroom tools */
body,
button,
input,
textarea,
select {
  font-family: var(--font-body);
}
.weather-full-grid {
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
}
.weather-region {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.weather-region[open] {
  border-color: rgba(47, 155, 199, 0.48);
}
.weather-region-cities {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding: 12px;
  background: rgba(1, 10, 20, 0.32);
}
.weather-city-accordion[open] {
  grid-column: 1 / -1;
  border-color: rgba(47, 155, 199, 0.55);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.22);
}
.weather-city-detail {
  background: linear-gradient(
    135deg,
    rgba(4, 31, 54, 0.94),
    rgba(9, 59, 82, 0.72)
  );
}
.weather-four-day {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.weather-day-card {
  background: linear-gradient(145deg, #123e5c, #06243c 58%, #071521);
}
.weather-phases > div:first-child {
  background: linear-gradient(180deg, rgba(255, 190, 50, 0.13), transparent);
  border-radius: 8px;
}
.weather-phases > div:last-child {
  background: linear-gradient(180deg, rgba(83, 130, 220, 0.17), transparent);
  border-radius: 8px;
}
.weather-svg .sun {
  filter: drop-shadow(0 0 2px #ffc940);
  animation: weatherGlow 2.5s ease-in-out infinite;
}
.weather-svg .moon {
  filter: drop-shadow(0 0 2px #9edcff);
  animation: weatherGlow 3.5s ease-in-out infinite;
}
.weather-svg .cloud {
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.35));
}
@keyframes weatherGlow {
  50% {
    opacity: 0.74;
  }
}
.admin-media-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: -2px 0 10px;
}
.image-file-picker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #041624;
  background: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}
.image-file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.admin-media-tools .btn-secondary {
  padding: 8px 10px;
  font-size: 0.74rem;
}
.admin-image-info,
.editor-stats {
  font-size: 0.7rem;
  color: var(--muted);
}
.admin-image-preview {
  height: 150px;
  width: min(280px, 100%);
  margin: 0 0 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #061523;
}
.admin-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.editor-stats {
  padding: 6px 9px;
  text-align: right;
  border-top: 1px solid rgba(85, 182, 214, 0.15);
}
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex !important;
    top: 12px !important;
    right: 10px !important;
    z-index: 9999 !important;
  }
  .main-nav {
    position: fixed !important;
    top: 64px !important;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    z-index: 9998;
  }
  .main-nav.open {
    max-height: min(75vh, 560px) !important;
    overflow-y: auto;
  }
  .main-nav .nav-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .weather-region-cities {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }
  .weather-city-accordion[open] {
    grid-column: auto;
  }
  .weather-four-day {
    grid-template-columns: 1fr;
  }
  .weather-day-card {
    padding: 12px;
  }
  .weather-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .weather-metrics span {
    padding: 7px 5px;
    background: rgba(0, 0, 0, 0.13);
    border-radius: 8px;
  }
  .weather-metrics b {
    float: none;
    display: block;
    margin-top: 2px;
  }
}

/* Two-font editorial system: Century Gothic for headings/editorial controls,
   body font elsewhere. Both share the same underlying stacks defined once
   in :root (--font-body / --font-century) so behaviour is identical on
   every device instead of each block guessing its own fallback order. */
body,
input,
textarea,
select,
button,
footer,
.article-content,
.article-subtitle,
.single-subtitle,
.section-subtitle {
  font-family: var(--font-body);
}
.admin-panel,
.admin-panel input,
.admin-panel textarea,
.admin-panel select,
.admin-panel button,
.section-heading h1,
.article-card h2,
.single-article-card h1,
.featured-title,
.nav-link,
.weather-region > summary,
.weather-city-accordion > summary,
.weather-day-title,
.weather-sidebar-header,
#home-refresh,
.auth-card h1,
.auth-card .btn-primary,
.theme-panel-label,
.theme-opt,
.footer-logo-wrap {
  font-family: var(--font-century);
}
.admin-media-tools {
  display: grid;
  grid-template-columns: minmax(190px, auto) auto minmax(150px, 1fr);
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(47, 155, 199, 0.22);
  border-radius: 13px;
  background: linear-gradient(
    100deg,
    rgba(47, 155, 199, 0.1),
    rgba(4, 19, 33, 0.4)
  );
}
.image-file-picker {
  min-height: 42px;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(47, 155, 199, 0.18);
}
.admin-image-preview {
  width: 100%;
  max-width: 360px;
  height: 180px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.weather-svg .sun {
  fill: #ffbf23 !important;
  stroke: #ff8a18;
  stroke-width: 1;
  filter: drop-shadow(0 0 5px #ffbd35);
  animation: sunPulse 2.2s ease-in-out infinite;
}
.weather-svg .sun-rays path {
  stroke: #ffb20d !important;
  stroke-width: 2.2;
  animation: sunRays 8s linear infinite;
  transform-origin: 17px 17px;
}
.weather-svg .moon {
  fill: #d8efff !important;
  stroke: #8cccff;
  filter: drop-shadow(0 0 4px #b0deff);
}
.weather-svg .cloud {
  fill: #d9eef7 !important;
  stroke: #8ec2d9;
  stroke-width: 0.6;
}
.weather-svg .rain path {
  stroke: #3baaf1 !important;
  stroke-width: 2.7;
  animation: rainFall 0.9s linear infinite;
}
.weather-svg .snow path {
  stroke: #fff !important;
  animation: snowSpin 2.5s linear infinite;
  transform-origin: center;
}
.weather-svg .fog path {
  stroke: #d7e7ed !important;
}
@keyframes sunPulse {
  50% {
    fill: #ffe372;
    filter: drop-shadow(0 0 10px #ffbd35);
  }
}
@keyframes sunRays {
  to {
    transform: rotate(360deg);
  }
}
@keyframes rainFall {
  50% {
    transform: translateY(2px);
    opacity: 0.45;
  }
}
@keyframes snowSpin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 700px) {
  .admin-media-tools {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .admin-image-info {
    text-align: center;
  }
}

/* Final typography and contact page */
.image-file-picker {
  background: #083b69 !important;
  color: #fff !important;
  border: 1px solid #168bd1;
}
.image-file-picker:hover {
  background: #0b528d !important;
}
.admin-image-info {
  color: #d7e7f4;
}
.footer-links button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}
.contact-page {
  max-width: 900px;
  margin: 0 auto;
}
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1.35fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(8, 34, 54, 0.96),
    rgba(3, 17, 30, 0.96)
  );
  box-shadow: var(--shadow);
}
.contact-card > div {
  padding: clamp(24px, 4vw, 46px);
}
.contact-card h1 {
  margin: 6px 0 13px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}
.contact-card p {
  color: #c2d6df;
  margin: 0 0 24px;
}
.contact-cover {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}
.contact-creators {
  margin-top: 28px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
}
.contact-creators strong {
  color: var(--primary);
}
@media (max-width: 700px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
  .contact-cover {
    min-height: 180px;
    max-height: 240px;
  }
}

/* ── AI THUMBNAIL BUTTON ─────────────────────────────── */
.btn-ai-thumb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.12s, box-shadow 0.18s;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
  white-space: nowrap;
}
.btn-ai-thumb:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
}
.btn-ai-thumb i {
  font-size: 0.95em;
}

/* ── AI THUMBNAIL MODAL ──────────────────────────────── */
.ai-thumb-modal-box {
  max-width: 680px;
  width: 95vw;
  max-height: 92vh;
  overflow-y: auto;
}
.ai-thumb-icon {
  background: linear-gradient(135deg, #7c3aed22, #4f46e522);
  border: 1px solid rgba(124, 58, 237, 0.3);
}
.ai-thumb-icon i {
  color: #a78bfa;
}
.ai-thumb-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 18px;
  line-height: 1.5;
}
.ai-thumb-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.ai-thumb-input-row input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
}
.ai-thumb-input-row input:focus {
  outline: none;
  border-color: #7c3aed;
}
.ai-thumb-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-bottom: 14px;
}
.ai-thumb-option {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ai-thumb-option label {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
}
.ai-thumb-option select {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.85rem;
}
.ai-thumb-option select:focus {
  outline: none;
  border-color: #7c3aed;
}
.ai-thumb-option-checkbox {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
}
.ai-thumb-option-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
}
.ai-thumb-option-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #7c3aed;
  cursor: pointer;
}
@media (max-width: 600px) {
  .ai-thumb-options-grid {
    grid-template-columns: 1fr;
  }
}
.ai-thumb-message {
  font-size: 0.87rem;
  min-height: 1.4em;
  margin-bottom: 10px;
  font-weight: 600;
}
.ai-thumb-result {
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.ai-thumb-img-wrap img {
  width: 100%;
  max-height: 46vh;
  object-fit: contain;
  display: block;
  background: #000;
  border-radius: 10px 10px 0 0;
}
.ai-thumb-prompt-note {
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
  line-height: 1.45;
}
.ai-thumb-prompt-note i {
  color: #a78bfa;
  margin-right: 6px;
}
.ai-thumb-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .ai-thumb-input-row {
    flex-direction: column;
  }
  .ai-thumb-actions {
    flex-direction: column;
  }
}

/* AI Thumb loading bar */
.ai-thumb-loading-bar {
  padding: 14px 16px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(47, 155, 199, 0.06);
}

/* ===== Typography: Century Gothic (headings/body) + Arial Narrow (tabs/labels) ===== */
.nav-link,
.eyebrow,
.admin-tabs button,
.featured-badge,
.weather-day-label,
.admin-image-info,
.weather-sidebar-footer,
.theme-panel-label,
.category-check-grid label,
.weather-city-name {
  font-family: "Arial Narrow", "Century Gothic", Arial, sans-serif;
}

/* ===== Athens featured forecast (weather tab, pinned above the regions) ===== */
.weather-quick-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(5, 21, 36, 0.88);
  padding: 14px;
  margin: 0 0 22px;
}
.weather-quick-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: "Arial Narrow", "Century Gothic", Arial, sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.4px;
}
.weather-quick-close-btn {
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.weather-quick-close-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.weather-quick-header i {
  color: var(--primary);
}
.weather-quick-regions,
.weather-quick-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.weather-quick-regions {
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1c4f8f, #123a6e);
  border: 1px solid rgba(58, 141, 219, 0.35);
}
.weather-quick-cities {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border-top: none;
  background: linear-gradient(135deg, #0f6e63, #1a4f7a);
  border: 1px solid rgba(45, 179, 158, 0.35);
}
.weather-quick-region-btn,
.weather-quick-city-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.weather-quick-region-btn:hover,
.weather-quick-city-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}
.weather-quick-region-btn.active,
.weather-quick-city-btn.active {
  background: #fff;
  border-color: #fff;
  color: #123a6e;
}
.weather-quick-result {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.weather-quick-result-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}
.weather-quick-result-title i {
  color: var(--primary);
}
.weather-featured-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 760px) {
  .weather-featured-row {
    grid-template-columns: 1fr;
  }
}
.weather-athens-featured {
  margin: 0 0 22px;
}
.weather-athens-featured-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: "Arial Narrow", "Century Gothic", Arial, sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.4px;
}
.weather-athens-featured-header i {
  color: var(--primary);
}
.weather-athens-featured-body {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(5, 21, 36, 0.88);
  padding: 12px;
}

/* ===== Overall polish pass: transitions, scrollbar, buttons, focus states ===== */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 155, 199, 0.45) rgba(4, 14, 24, 0.4);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(4, 14, 24, 0.4);
}
::-webkit-scrollbar-thumb {
  background: rgba(47, 155, 199, 0.4);
  border-radius: 999px;
  border: 2px solid rgba(4, 14, 24, 0.4);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(47, 155, 199, 0.65);
}
::selection {
  background: rgba(47, 155, 199, 0.35);
  color: #fff;
}
a,
button,
.nav-link,
.article-card,
.weather-city-card,
.weather-day-card,
.weather-full-card,
.icon-header-btn,
.ghost-btn,
.theme-opt,
.reaction-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  box-shadow: 0 8px 22px rgba(47, 155, 199, 0.22);
}
.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(47, 155, 199, 0.32);
  filter: brightness(1.06);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--text);
}
.weather-city-card,
.weather-day-card,
.weather-full-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.weather-city-card:hover,
.weather-day-card:hover,
.weather-full-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 155, 199, 0.4);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.weather-partner-card,
.weather-region,
.admin-image-preview,
.ai-thumb-result {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
:root {
  --primary: #2f9bc7;
  --primary-2: #1c6e94;
  --primary-soft: rgba(47, 155, 199, 0.13);
  --bg: #03101d;
  --bg-2: #06182a;
  --panel: rgba(8, 22, 37, 0.86);
  --card: #0a1d31;
  --card-2: #0e2740;
  --border: rgba(85, 182, 214, 0.18);
  --text: #ecf7fb;
  --muted: #8ea9ba;
  --success: #38d57a;
  --warning: #f7bd44;
  --danger: #ff5d70;
  --radius: 16px;
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(
      circle at 15% 12%,
      rgba(47, 155, 199, 0.08),
      transparent 30%
    ),
    radial-gradient(circle at 86% 24%, rgba(23, 82, 112, 0.13), transparent 36%),
    linear-gradient(160deg, #020913, #041322 48%, #020914);
  line-height: 1.55;
  overflow-x: hidden;
}
.hidden {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}
.site-alert-bar {
  position: sticky;
  top: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
}
.site-alert-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.35);
}
.site-alert-item + .site-alert-item {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.site-alert-item.yellow {
  background: rgba(202, 138, 4, 0.95);
}
.site-alert-item.orange {
  background: rgba(234, 88, 12, 0.95);
}
.site-alert-item.red {
  background: rgba(220, 38, 38, 0.97);
  animation: urgentPulse 1.5s infinite;
}
.site-alert-bar button {
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 999px;
  width: 25px;
  height: 25px;
}
@keyframes urgentPulse {
  50% {
    filter: saturate(1.25);
    opacity: 0.88;
  }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: #020b15;
  border-bottom: 1px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.header-strip {
  max-width: 1500px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(2, 10, 18, 0.72);
  backdrop-filter: blur(10px);
}
.live-clock {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.3px;
}
.weather-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-main {
  position: relative;
  min-height: clamp(118px, 15vw, 205px);
  max-width: 1500px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  background-image: url("logo.jpg");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center 66%;
  background-color: #03111f;
}
.header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(1, 8, 16, 0.05),
    rgba(1, 8, 16, 0.15) 55%,
    rgba(1, 8, 16, 0.38)
  );
  z-index: 0;
  pointer-events: none;
}
.brand-text-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  margin-top: 6px;
}
.brand-text-overlay strong {
  font-size: clamp(1.9rem, 4vw, 4.3rem);
  font-weight: 900;
  letter-spacing: -1.8px;
  color: #fff;
}
.brand-text-overlay strong::after {
  content: "";
}
.brand-text-overlay span {
  margin-top: 5px;
  font-size: clamp(0.8rem, 1.35vw, 1.45rem);
  font-weight: 600;
  color: #eefbff;
  letter-spacing: 0.2px;
}
.header-actions {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.icon-header-btn,
.ghost-btn {
  border: 1px solid var(--border);
  background: rgba(5, 21, 35, 0.72);
  color: var(--text);
  border-radius: 10px;
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s;
  backdrop-filter: blur(8px);
}
.icon-header-btn:hover,
.ghost-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.admin-session-indicator {
  font-size: 0.72rem;
  color: var(--primary);
  border: 1px solid rgba(47, 155, 199, 0.35);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(47, 155, 199, 0.07);
  font-weight: 800;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
  font-family: inherit;
}
.admin-session-indicator:hover {
  background: rgba(47, 155, 199, 0.18);
  transform: translateY(-1px);
}
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1900;
  background: rgba(5, 18, 31, 0.95);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar {
  display: none;
}
.nav-inner {
  max-width: 1500px;
  margin: auto;
  display: flex;
  gap: 4px;
  padding: 0 12px;
  justify-content: center;
}
.nav-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 13px 14px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  font-weight: 800;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: 0.2s;
  flex: 0 0 auto;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(47, 155, 199, 0.05);
}
main {
  max-width: 1460px;
  margin: 0 auto;
  padding: 28px 20px 70px;
}
.view-section {
  display: none;
}
.active-view {
  display: block;
  animation: fade 0.35s ease;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin: 6px 0 22px;
}
.section-heading.centered {
  justify-content: center;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 0.72rem;
  letter-spacing: 1.8px;
  font-weight: 900;
}
.section-heading h1,
.subsection-heading h2 {
  margin: 4px 0 0;
  font-family: var(--font-century), "Century Gothic", Georgia, serif;
  line-height: 1.15;
}
.section-heading h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}
.section-subtitle {
  color: var(--muted);
  margin: 8px 0 0;
}
.subsection-heading {
  margin: 26px 0 15px;
}
.subsection-heading h2 {
  font-size: 1.5rem;
}
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}
.featured-hero {
  width: min(1261px, 100%);
  aspect-ratio: 1261/536;
  margin: 0 auto 30px;
  border: 1px solid rgba(47, 155, 199, 0.28);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 40px rgba(47, 155, 199, 0.08);
  background: #061727;
}
.featured-hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  color: inherit;
  display: block;
}
.featured-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(1, 8, 15, 0.82) 0%,
    rgba(1, 8, 15, 0.35) 28%,
    transparent 55%
  );
}
.featured-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #001018;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 1px;
}
.featured-content {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 24px;
  max-width: 900px;
}
.featured-title {
  font-family: var(--font-century), "Century Gothic", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2.55rem);
  font-weight: 900;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.75);
}
.featured-subtitle {
  margin-top: 9px;
  color: #d4e7ee;
  font-size: clamp(0.84rem, 1.2vw, 1rem);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 850px;
}
.featured-meta {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.article-card {
  background: linear-gradient(
    160deg,
    rgba(13, 38, 61, 0.95),
    rgba(7, 25, 41, 0.95)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.25s;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 155, 199, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 22px rgba(47, 155, 199, 0.08);
}
.card-image {
  height: 180px;
  background: #071725;
  position: relative;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s;
}
.article-card:hover .card-image img {
  transform: scale(1.05);
}
.card-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(3, 13, 23, 0.85);
  color: var(--primary);
  border: 1px solid rgba(47, 155, 199, 0.4);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 900;
}
.card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 195px;
}
.card-date {
  color: var(--muted);
  font-size: 0.7rem;
}
.article-card h2 {
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 0;
  color: #fff;
}
.article-subtitle {
  color: #91abb8;
  font-size: 0.82rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.card-cats {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: auto;
}
.cat-pill {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(47, 155, 199, 0.08);
  border: 1px solid rgba(47, 155, 199, 0.18);
  color: #a9ced8;
  font-size: 0.62rem;
}
.featured-mark {
  color: var(--warning);
  font-size: 0.72rem;
  font-weight: 900;
}
.weather-sidebar {
  position: sticky;
  top: 136px;
  background: rgba(8, 22, 37, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.weather-sidebar-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 0.75rem;
  color: var(--primary);
}
.weather-sidebar-footer {
  padding: 11px 16px;
  color: #6e8797;
  font-size: 0.65rem;
  border-top: 1px solid var(--border);
}
.weather-city-card {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.weather-city-card:last-child {
  border-bottom: 0;
}
.weather-city-name {
  font-weight: 800;
  font-size: 0.86rem;
}
.weather-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.weather-day-label {
  font-size: 0.66rem;
  color: var(--muted);
}
.weather-day-desc {
  font-size: 0.72rem;
  color: #a9c0ca;
  text-transform: capitalize;
}
.weather-day-desc.long {
  font-size: 0.62rem;
}
.weather-day-right {
  display: flex;
  align-items: center;
  gap: 7px;
}
.weather-day-temp {
  font-weight: 900;
}
.weather-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  position: relative;
}
.weather-icon-sm {
  width: 32px;
  height: 32px;
}
.weather-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.weather-svg .moon,
.weather-svg .sun,
.weather-svg .cloud {
  fill: currentColor;
}
.weather-svg .rain {
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
}
.weather-svg .star {
  fill: currentColor;
  opacity: 0.85;
}
.weather-mini .weather-icon {
  color: var(--primary);
}
.weather-full-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
}
.weather-full-card {
  background: linear-gradient(145deg, #0b2339, #081827);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 17px;
  min-height: 220px;
}
.wfc-city {
  font-weight: 900;
}
.wfc-icon {
  color: var(--primary);
  width: 78px;
  height: 78px;
  margin: 12px auto 2px;
}
.wfc-icon .weather-icon {
  width: 78px;
  height: 78px;
}
.wfc-temp {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
}
.wfc-desc {
  text-align: center;
  color: #9ab1bd;
  text-transform: capitalize;
  font-size: 0.8rem;
}
.wfc-desc.long {
  font-size: 0.68rem;
}
.wfc-row {
  display: flex;
  justify-content: space-between;
  color: #7f97a5;
  font-size: 0.68rem;
  margin-top: 9px;
}
.live-streams-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.live-card {
  background: #071827;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.live-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
}
.live-badge {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f33;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.75);
  animation: livePulse 1.2s infinite;
}
@keyframes livePulse {
  50% {
    transform: scale(1.6);
    opacity: 0.55;
  }
}
.live-embed {
  aspect-ratio: 16/9;
  background: #000;
}
.live-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.live-copy {
  padding: 14px;
  color: #9bb1bd;
}
.live-copy strong {
  display: block;
  color: #fff;
  margin-bottom: 5px;
}
.live-copy p {
  margin: 0;
  font-size: 0.82rem;
}
.live-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.live-link {
  font-size: 0.72rem;
  color: var(--primary);
  text-decoration: none;
}
.live-placeholder {
  padding: 25px;
  color: #9bb1bd;
  text-align: center;
}
.live-placeholder strong {
  display: block;
  color: #fff;
  margin-bottom: 7px;
}
.auth-shell {
  min-height: 55vh;
  display: grid;
  place-items: center;
}
.auth-card {
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(
    160deg,
    rgba(10, 34, 54, 0.95),
    rgba(5, 18, 30, 0.95)
  );
  box-shadow: var(--shadow);
}
.auth-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(47, 155, 199, 0.1);
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.auth-card h1,
.modal-box h2 {
  margin: 4px 0 8px;
  font-family: var(--font-century), "Century Gothic", Georgia, serif;
  font-size: 2rem;
}
.auth-card p,
.modal-box p {
  color: var(--muted);
  margin: 0 0 18px;
}
.auth-card form,
.modal-box form {
  display: grid;
  gap: 12px;
}
.auth-card label,
.modal-box label,
.admin-panel label {
  display: grid;
  gap: 6px;
  color: #b9d0da;
  font-size: 0.77rem;
  font-weight: 800;
}
.auth-card input,
.modal-box input,
.admin-panel input,
.admin-panel textarea,
.admin-panel select {
  width: 100%;
  background: #061727;
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 11px;
  padding: 11px 12px;
  outline: 0;
}
.auth-card input:focus,
.modal-box input:focus,
.admin-panel input:focus,
.admin-panel textarea:focus,
.admin-panel select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 155, 199, 0.08);
}
.wide {
  width: 100%;
}
.btn-primary,
.btn-secondary {
  border: 0;
  border-radius: 11px;
  padding: 11px 15px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #00a8dc);
  color: #00131d;
  box-shadow: 0 8px 24px rgba(47, 155, 199, 0.15);
}
.btn-secondary {
  background: #0a1b2b;
  color: #aec3cc;
  border: 1px solid var(--border);
}
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}
.message {
  min-height: 24px;
  margin-top: 10px;
  font-size: 0.78rem;
}
.message.success {
  color: var(--success);
}
.message.error {
  color: var(--danger);
}
.admin-panel {
  background: rgba(6, 20, 34, 0.88);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}
.admin-header h1 {
  margin: 3px 0 0;
  font-family: var(--font-century), "Century Gothic", Georgia, serif;
}
.admin-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.admin-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 13px;
  border-bottom: 2px solid transparent;
  font-weight: 900;
}
.admin-tabs button.active,
.admin-tabs button:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.admin-tab-content {
  display: none;
}
.active-tab {
  display: block;
}
.form-row {
  display: flex;
  gap: 14px;
}
.flex-2 {
  flex: 2;
}
.flex-1 {
  flex: 1;
}
.category-fieldset {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0;
}
.category-fieldset legend {
  padding: 0 6px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 900;
}
.category-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.category-check-grid label {
  display: flex;
  grid-template-columns: none;
  gap: 8px;
  align-items: center;
  background: #071927;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 11px;
  border-radius: 10px;
  color: #c4d8df;
}
.category-check-grid input {
  width: auto;
}
.featured-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 16px;
  margin: 14px 0;
  border: 1px solid rgba(247, 189, 68, 0.23);
  border-radius: 14px;
  background: rgba(247, 189, 68, 0.05);
}
.featured-row strong {
  display: block;
}
.featured-row p {
  margin: 4px 0 0;
  color: #8da4b0;
  font-size: 0.75rem;
}
.switch {
  display: block;
  min-width: 58px;
}
.switch input {
  display: none;
}
.switch span {
  display: block;
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: #132739;
  border: 1px solid var(--border);
  position: relative;
}
.switch span::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  top: 3px;
  left: 4px;
  border-radius: 50%;
  background: #6e8797;
  transition: 0.22s;
}
.switch input:checked + span {
  background: rgba(47, 155, 199, 0.18);
  border-color: var(--primary);
}
.switch input:checked + span::after {
  left: 29px;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(47, 155, 199, 0.4);
}
.editor-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px;
  background: #071624;
  border-bottom: 1px solid var(--border);
}
.editor-toolbar button {
  border: 1px solid transparent;
  background: #0d2235;
  color: #aac5d1;
  border-radius: 8px;
  width: 34px;
  height: 32px;
}
.editor-toolbar button:hover {
  color: var(--primary);
  border-color: rgba(47, 155, 199, 0.25);
}
.editor-toolbar-media {
  align-items: center;
  background: #0a1e30;
}
.editor-toolbar-media button {
  width: auto;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}
.editor-toolbar-media-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: 4px;
}
.rich-editor-area {
  min-height: 250px;
  padding: 14px;
  outline: 0;
}
.rich-editor-area:empty::before {
  content: attr(data-placeholder);
  color: #63808f;
}
.rich-editor-area h2,
.rich-editor-area h3 {
  font-family: var(--font-century), "Century Gothic", Georgia, serif;
  color: #fff;
}
.rich-editor-area blockquote {
  border-left: 3px solid var(--primary);
  margin: 12px 0;
  padding-left: 14px;
  color: #b4d2dc;
}
.in-article-image {
  position: relative;
  display: block;
  margin: 14px 0;
  cursor: grab;
  border: 1px dashed transparent;
  border-radius: 10px;
  transition: border-color 0.15s, opacity 0.15s;
}
.in-article-image:hover {
  border-color: rgba(47, 155, 199, 0.4);
}
.in-article-image.dragging {
  opacity: 0.4;
  cursor: grabbing;
}
.in-article-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  pointer-events: none;
}
.in-article-image-handle {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 18, 31, 0.75);
  color: #fff;
  border-radius: 7px;
  font-size: 0.75rem;
  backdrop-filter: blur(4px);
}
.in-article-image-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  border: none;
  border-radius: 7px;
  cursor: pointer;
}
.in-article-image-remove:hover {
  background: #dc2626;
}
/* Στη δημόσια προβολή άρθρου η εικόνα εμφανίζεται καθαρή, χωρίς τα
   εργαλεία επεξεργασίας (λαβή μετακίνησης / κουμπί αφαίρεσης). */
.article-content .in-article-image {
  cursor: default;
}
.article-content .in-article-image-handle,
.article-content .in-article-image-remove {
  display: none;
}
.admin-submit-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.admin-news-list {
  display: grid;
  gap: 9px;
}
.admin-news-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  background: #071827;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 13px;
}
.admin-news-info {
  min-width: 0;
}
.admin-news-title {
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-news-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #8198a5;
  font-size: 0.67rem;
  margin-top: 5px;
}
.admin-actions {
  display: flex;
  gap: 5px;
}
.icon-action {
  border: 1px solid var(--border);
  background: #0c2133;
  color: #a9c1cc;
  border-radius: 9px;
  width: 36px;
  height: 36px;
}
.icon-action:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.icon-action.danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}
.alert-admin-form {
  padding: 15px;
  background: #071827;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.approved {
  color: var(--success);
}
.pending {
  color: var(--warning);
}
.article-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
}
.single-article-card {
  background: #071827;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.single-cover {
  width: 100%;
  max-height: 530px;
  object-fit: cover;
  border-radius: 13px;
  margin-bottom: 20px;
}
.single-article-card h1 {
  font-family: var(--font-century), "Century Gothic", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.12;
  margin: 10px 0;
}
.single-meta {
  color: #829aa7;
  font-size: 0.76rem;
  margin-bottom: 14px;
}
.single-subtitle {
  font-size: 1.1rem;
  color: #bdd0d8;
  margin-bottom: 22px;
}
.article-content {
  font-size: 1rem;
  color: #d7e5ea;
}
.article-content p {
  margin: 0 0 1rem;
}
.article-content a {
  color: var(--primary);
}
.comments-section {
  background: #071827;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  height: fit-content;
  position: sticky;
  top: 135px;
}
.comment-card {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.comment-card:first-child {
  padding-top: 0;
}
.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #9bb4bf;
  font-size: 0.68rem;
}
.comment-body {
  margin-top: 6px;
  color: #d9e4e8;
  font-size: 0.82rem;
}
.comment-form {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  background: #061727;
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 10px;
  padding: 10px 11px;
  outline: 0;
}
.empty-state,
.loading-state,
.error-state {
  text-align: center;
  padding: 50px 20px;
  color: #7f98a6;
  grid-column: 1/-1;
}
.empty-state i,
.error-state i {
  font-size: 2rem;
  color: #2c6176;
  display: block;
  margin-bottom: 8px;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, 0.68);
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(9px);
}
.modal-box {
  width: min(420px, 100%);
  position: relative;
  padding: 26px;
  border-radius: 18px;
  background: #071827;
  border: 1px solid rgba(47, 155, 199, 0.3);
  box-shadow: 0 24px 100px rgba(0, 0, 0, 0.55);
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #0c2133;
  color: #b5c8d0;
}
footer {
  border-top: 1px solid var(--border);
  background: rgba(3, 12, 22, 0.85);
}
.footer-inner {
  max-width: 1460px;
  margin: auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #718996;
  font-size: 0.72rem;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #b7cbd3;
  font-weight: 900;
}
.footer-logo-wrap img {
  height: 32px;
  width: auto;
}
.footer-links a {
  color: var(--primary);
  text-decoration: none;
}
@media (max-width: 1100px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .weather-full-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .article-page-grid {
    grid-template-columns: 1fr;
  }
  .comments-section {
    position: static;
  }
  .weather-sidebar {
    position: static;
  }
  .home-layout {
    grid-template-columns: 1fr;
  }
  .live-streams-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 780px) {
  .header-main {
    min-height: 118px;
    background-position: center 66%;
  }
  .brand-text-overlay strong {
    font-size: clamp(1.7rem, 7vw, 2.7rem);
  }
  .brand-text-overlay span {
    font-size: clamp(0.72rem, 2.3vw, 1rem);
  }
  .header-actions {
    right: 9px;
  }
  .admin-session-indicator {
    display: none;
  }
  .section-heading {
    align-items: flex-start;
  }
  .featured-content {
    left: 18px;
    right: 18px;
    bottom: 17px;
  }
  .featured-title {
    font-size: 1.25rem;
  }
  .featured-subtitle {
    font-size: 0.78rem;
  }
  .category-check-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .weather-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    flex-direction: column;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 520px) {
  main {
    padding: 18px 12px 48px;
  }
  .header-main {
    min-height: 104px;
    background-position: center 66%;
  }
  .brand-text-overlay strong {
    font-size: clamp(1.45rem, 8vw, 2.15rem);
    letter-spacing: -1px;
  }
  .brand-text-overlay span {
    font-size: clamp(0.68rem, 2.7vw, 0.88rem);
  }
  .header-actions {
    right: 7px;
  }
  .nav-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 4px 6px;
    min-width: 0;
    width: 100%;
  }
  .nav-link {
    padding: 9px 4px;
    font-size: 0.58rem;
    letter-spacing: 0.1px;
    border-bottom-width: 2px;
    white-space: normal;
    line-height: 1.15;
    min-height: 42px;
  }
  .nav-link i {
    display: block;
    margin-bottom: 3px;
  }
  .main-nav {
    overflow-x: visible;
  }
  .featured-hero {
    border-radius: 13px;
  }
  .featured-badge {
    top: 11px;
    left: 11px;
  }
  .featured-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .weather-full-grid {
    grid-template-columns: 1fr;
  }
  .category-check-grid {
    grid-template-columns: 1fr;
  }
  .featured-row {
    align-items: flex-start;
  }
  .admin-panel {
    padding: 14px;
  }
  .admin-news-row {
    grid-template-columns: 1fr;
  }
  .single-article-card {
    padding: 16px;
  }
  .comments-section {
    padding: 14px;
  }
}

/* ===== FINAL UI REFINEMENTS ===== */
.header-main {
  max-width: none;
  width: 100%;
  min-height: clamp(92px, 10.5vw, 160px);
  height: clamp(92px, 10.5vw, 160px);
  background-image: none;
  background-color: #03111f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.site-logo-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
  z-index: 0;
}
.header-overlay {
  background: linear-gradient(
    180deg,
    rgba(1, 8, 16, 0.04),
    rgba(1, 8, 16, 0.14) 58%,
    rgba(1, 8, 16, 0.34)
  );
}
.brand-text-overlay {
  display: none !important;
}
.header-actions {
  right: clamp(8px, 2vw, 22px);
}
.featured-title {
  font-size: clamp(1.05rem, 1.9vw, 1.85rem);
  line-height: 1.15;
  max-width: 850px;
}
.featured-content {
  left: clamp(16px, 2.2vw, 30px);
  right: clamp(16px, 2.2vw, 30px);
  bottom: clamp(16px, 2vw, 24px);
}
.main-nav {
  overflow-x: visible;
}
.nav-inner {
  width: 100%;
  max-width: 1600px;
}
@media (max-width: 900px) {
  .header-main {
    min-height: 104px;
    height: 104px;
  }
  .nav-inner {
    justify-content: stretch;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    padding: 4px 6px;
  }
  .nav-link {
    white-space: normal;
    min-height: 45px;
    padding: 8px 5px;
    font-size: 0.62rem;
    line-height: 1.1;
  }
  .nav-link i {
    display: block;
    margin-bottom: 3px;
  }
}
@media (max-width: 560px) {
  .header-main {
    min-height: 88px;
    height: 88px;
  }
  .site-logo-banner {
    object-position: center 54%;
  }
  .header-strip {
    padding: 5px 10px;
    font-size: 0.68rem;
  }
  .nav-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
  }
  .nav-link {
    font-size: 0.56rem;
    padding: 7px 3px;
    min-height: 44px;
  }
  .featured-title {
    font-size: 1.04rem;
    -webkit-line-clamp: 2;
  }
  .featured-subtitle {
    font-size: 0.75rem;
    max-width: 100%;
  }
}
.weather-svg .sun-rays path {
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.weather-svg .fog path {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.75;
}
.weather-svg .snow path {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* ===== Responsive device-safe navigation, logo and weather ===== */
.header-main {
  width: 100%;
  max-width: none;
  height: clamp(64px, 8vw, 100px);
  min-height: unset;
  aspect-ratio: unset;
  background: linear-gradient(135deg, #020b18 0%, #041625 50%, #020c1a 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.site-logo-banner {
  display: none !important;
}
.logo-text-safe {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  pointer-events: none;
  gap: 4px;
}
.header-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 5, 12, 0.03),
    rgba(0, 8, 16, 0.08) 60%,
    rgba(0, 8, 16, 0.25)
  );
}
.header-actions {
  z-index: 3;
}
.main-nav {
  overflow: visible;
}
.nav-inner {
  display: grid;
  width: min(100%, 1600px);
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 4px;
  padding: 4px 8px;
  margin: auto;
}
.nav-link {
  width: 100%;
  min-width: 0;
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  padding: 10px 7px;
  font-size: clamp(0.56rem, 0.72vw, 0.78rem);
  line-height: 1.15;
  min-height: 44px;
  border: 1px solid rgba(85, 182, 214, 0.08);
  border-radius: 10px;
}
.nav-link i {
  flex: 0 0 auto;
}
.featured-title {
  font-size: clamp(0.95rem, 1.75vw, 1.72rem);
  max-width: min(820px, 85%);
}
.featured-subtitle {
  font-size: clamp(0.72rem, 1vw, 0.95rem);
  max-width: min(760px, 86%);
}
.single-article-only {
  grid-template-columns: 1fr;
}
.live-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.live-admin-card {
  padding: 16px;
  border: 1px solid var(--border);
  background: #071827;
  border-radius: 14px;
}
.live-admin-card h2 {
  font-family: var(--font-century), "Century Gothic", Georgia, serif;
  margin: 5px 0 13px;
  font-size: 1.12rem;
}
.live-admin-card small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.45;
}
.live-admin-preview {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed rgba(47, 155, 199, 0.28);
  border-radius: 12px;
  background: rgba(47, 155, 199, 0.04);
  color: #a9c4cf;
  font-size: 0.78rem;
}
.live-admin-preview p {
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.live-channel-card {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  background: #071827;
  border-radius: 14px;
}
.live-channel-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* 25-area weather page */
.weather-full-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.weather-full-card {
  min-width: 0;
}
.wfc-two-day {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wfc-day {
  padding: 10px;
  border: 1px solid rgba(85, 182, 214, 0.12);
  border-radius: 12px;
  background: rgba(3, 17, 29, 0.36);
}
.wfc-day.tomorrow {
  border-color: rgba(47, 155, 199, 0.3);
  box-shadow: inset 0 0 20px rgba(47, 155, 199, 0.045);
}
.wfc-day-label {
  font-weight: 900;
  color: var(--primary);
  font-size: 0.72rem;
  margin-bottom: 7px;
}
.wfc-day .wfc-icon {
  height: 54px;
}
.wfc-day .wfc-temp {
  font-size: 1.35rem;
}
.wfc-day .wfc-desc {
  min-height: 32px;
  font-size: 0.69rem;
}
.wfc-row {
  font-size: 0.68rem;
}

@media (max-width: 1280px) {
  .nav-inner {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}
@media (max-width: 900px) {
  .header-main {
    aspect-ratio: 16/3.8;
    min-height: 76px;
  }
  .site-logo-banner {
    max-height: 120px;
  }
  .nav-inner {
    grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
    gap: 3px;
  }
  .nav-link {
    min-height: 43px;
    padding: 8px 5px;
    font-size: clamp(0.54rem, 0.95vw, 0.7rem);
  }
  .nav-link i {
    font-size: 0.82em;
  }
  .live-admin-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .header-main {
    aspect-ratio: 16/4.4;
    min-height: 72px;
  }
  .site-logo-banner {
    max-height: 100px;
  }
  .nav-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 4px 6px;
  }
  .nav-link {
    min-height: 46px;
    font-size: clamp(0.5rem, 1.7vw, 0.64rem);
    padding: 7px 3px;
  }
  .nav-link i {
    display: block;
    margin-bottom: 3px;
  }
  .wfc-two-day {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 430px) {
  .header-strip {
    font-size: 0.62rem;
    padding: 4px 8px;
  }
  .header-main {
    aspect-ratio: 16/5.15;
    min-height: 68px;
  }
  .site-logo-banner {
    max-height: 90px;
  }
  .header-actions {
    right: 6px;
  }
  .nav-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    padding: 3px 4px;
  }
  .nav-link {
    min-height: 43px;
    border-radius: 8px;
    font-size: clamp(0.47rem, 2.3vw, 0.58rem);
    letter-spacing: 0;
    padding: 6px 2px;
  }
  .nav-link i {
    font-size: 0.85em;
  }
  .weather-full-grid {
    grid-template-columns: 1fr;
  }
  .live-channel-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 320px) {
  .header-main {
    aspect-ratio: 16/5.8;
    min-height: 64px;
  }
  .site-logo-banner {
    max-height: 80px;
  }
  .nav-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 2px;
  }
  .nav-link {
    min-height: 41px;
    font-size: 0.45rem;
  }
}

/* ============================================================
   MOURMOURA NEWS v2 — NEW FEATURES
   Century Gothic · Themes · Reactions · Theme Switcher
   ============================================================ */

/* ===== TYPOGRAPHY: Century Gothic stack =====
   Single source of truth for the "Century Gothic" look. Order matters:
   1) the local CenturyGothic @font-face (only matches if the visitor's
      device actually has the font installed — mostly desktop/Mac);
   2) Nunito, loaded from Google Fonts, as the ACTUAL fallback that renders
      identically on every device (this is what most visitors, especially
      on mobile, will see);
   3) generic sans-serif as the last resort.
   This is defined ONCE, here, and must not be redefined anywhere else in
   this file — duplicate :root overrides further down previously caused
   mobile and desktop to render different fonts. */
:root {
  --font-century: "CenturyGothic", "Century Gothic", "Nunito", "AppleGothic",
    "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  --font-century-italic: "Century Gothic", "Nunito", "AppleGothic", "Gill Sans",
    oblique 10deg, sans-serif;
  --font-body: Arial, "Century Gothic", "CenturyGothic", "Nunito", sans-serif;
}

/* Titles use Century Gothic */
.article-card h2,
.single-article-card h1,
.featured-title,
.admin-panel h1,
.section-heading h1,
.live-card strong {
  font-family: var(--font-century);
  font-weight: 700;
}

/* Subtitles use Century Gothic Italic */
.article-subtitle,
.single-subtitle,
.featured-subtitle,
.section-subtitle {
  font-family: var(--font-century-italic);
  font-style: italic;
}

/* ===== THEME SWITCHER ===== */
.theme-switcher {
  position: fixed;
  bottom: 28px;
  right: 22px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.theme-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: rgba(6, 22, 38, 0.92);
  color: var(--primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(47, 155, 199, 0.12);
  backdrop-filter: blur(12px);
  transition: all 0.22s;
}
.theme-toggle-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(47, 155, 199, 0.28);
  transform: scale(1.08);
}

.theme-panel {
  background: rgba(5, 18, 32, 0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  min-width: 160px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  animation: fade 0.2s ease;
}
.theme-panel-label {
  font-size: 0.62rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 1.4px;
  margin-bottom: 10px;
}
.theme-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.theme-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 8px 10px;
  color: #b4c9d4;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.18s;
  width: 100%;
  text-align: left;
}
.theme-opt:hover,
.theme-opt.active {
  border-color: var(--primary);
  color: #fff;
  background: rgba(47, 155, 199, 0.08);
}
.theme-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}
.td-network {
  background: radial-gradient(circle, #2f9bc7 0%, #020a14 100%);
}
.td-storm {
  background: radial-gradient(circle, #1e3a5f 0%, #050510 100%);
}
.td-fog {
  background: radial-gradient(circle, #c8d8e0 0%, #7a8f98 100%);
}
.td-dark {
  background: #050505;
}

/* ===== THEME CANVASES & BODY OVERRIDES ===== */
body.theme-network {
  background: radial-gradient(
      circle at 15% 12%,
      rgba(47, 155, 199, 0.08),
      transparent 30%
    ),
    radial-gradient(circle at 86% 24%, rgba(23, 82, 112, 0.13), transparent 36%),
    linear-gradient(160deg, #020913, #041322 48%, #020914);
}
body.theme-storm {
  background: linear-gradient(160deg, #010209, #060c1a 50%, #010308);
}
body.theme-fog {
  background: linear-gradient(160deg, #b8c8d2, #cdd8de 50%, #b0c0ca);
  color: #1a2a34;
}
body.theme-dark {
  background: #050505;
}

/* Fog theme — text overrides */
body.theme-fog {
  --text: #1a2a34;
  --muted: #4a6070;
  --card: rgba(200, 215, 222, 0.85);
  --border: rgba(100, 140, 160, 0.28);
  --panel: rgba(210, 222, 228, 0.9);
}
body.theme-fog .site-header {
  background: rgba(190, 205, 212, 0.97);
  border-bottom-color: #90abb8;
}
body.theme-fog .main-nav {
  background: rgba(180, 196, 204, 0.97);
}
body.theme-fog .nav-link {
  color: #3a5060;
}
body.theme-fog .nav-link.active,
body.theme-fog .nav-link:hover {
  color: #005580;
  border-bottom-color: #005580;
}
body.theme-fog .article-card {
  background: rgba(210, 224, 230, 0.9);
  border-color: rgba(100, 140, 160, 0.3);
}
body.theme-fog .article-card h2 {
  color: #112030;
}
body.theme-fog .site-alert-item.yellow {
  background: rgba(180, 130, 0, 0.92);
}

/* Dark theme */
body.theme-dark {
  --text: #d0d0d0;
  --muted: #666;
  --card: #0a0a0a;
  --border: rgba(60, 60, 60, 0.5);
  --primary: #aaa;
}
body.theme-dark #bg-canvas {
  display: none;
}
body.theme-dark .site-header {
  background: #050505;
  border-bottom-color: #222;
}
body.theme-dark .main-nav {
  background: #080808;
  border-bottom-color: #1a1a1a;
}
body.theme-dark .nav-link.active,
body.theme-dark .nav-link:hover {
  color: #ccc;
  border-bottom-color: #888;
}
body.theme-dark .article-card {
  background: #0d0d0d;
  border-color: #1c1c1c;
}

/* Storm theme text/border adjustments */
body.theme-storm {
  --text: #d8eaf5;
  --card: rgba(10, 20, 40, 0.95);
  --border: rgba(50, 90, 140, 0.35);
}

/* ===== STORM CANVAS lightning ===== */
#storm-canvas {
  background: transparent;
}
#fog-canvas {
  background: transparent;
}

/* ===== ARTICLE REACTIONS ===== */
.article-reactions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 24px;
  background: rgba(6, 20, 34, 0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 8px;
  backdrop-filter: blur(10px);
}

/* Πλοήγηση προηγούμενο/επόμενο άρθρο ("stories"-style) */
.article-story-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.story-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  max-width: 48%;
  overflow: hidden;
}
.story-nav-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.story-nav-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(47, 155, 199, 0.08);
}
.story-nav-btn:disabled {
  visibility: hidden;
}
.story-nav-next {
  margin-left: auto;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border);
  color: var(--muted);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
}
.reaction-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(47, 155, 199, 0.08);
  transform: translateY(-1px);
}
.reaction-btn.active-like {
  background: rgba(56, 213, 122, 0.12);
  border-color: var(--success);
  color: var(--success);
}
.reaction-btn.active-dislike {
  background: rgba(255, 93, 112, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}
.reaction-btn i {
  font-size: 0.95rem;
}
.share-btn {
  margin-left: auto;
}

/* Fog theme reactions */
body.theme-fog .article-reactions {
  background: rgba(200, 215, 222, 0.85);
}
body.theme-fog .reaction-btn {
  border-color: rgba(80, 120, 140, 0.4);
  color: #3a5060;
}
body.theme-fog .reaction-btn:hover {
  color: #005580;
  border-color: #005580;
}

/* ===== ADMIN: Extra tabs — comments section removed notice ===== */
.comments-removed-notice {
  padding: 22px;
  background: rgba(247, 189, 68, 0.07);
  border: 1px solid rgba(247, 189, 68, 0.25);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}
.comments-removed-notice i {
  color: var(--warning);
  margin-right: 6px;
}

/* ===== ADMIN: Additional fields for article form ===== */
.admin-tags-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 12px;
}
.form-hint {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* ===== SHARE TOAST ===== */
.share-toast {
  position: fixed;
  bottom: 90px;
  right: 22px;
  background: rgba(56, 213, 122, 0.92);
  color: #001a0a;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  z-index: 6000;
  animation: toastIn 0.25s ease;
  pointer-events: none;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== STORM STUDIO BG visual (behind canvas) ===== */
body.theme-storm .header-strip {
  background: rgba(1, 4, 16, 0.85);
}
body.theme-storm .site-header {
  background: rgba(1, 4, 18, 0.95);
  border-bottom-color: rgba(40, 80, 160, 0.5);
}
body.theme-storm .article-card {
  background: linear-gradient(
    160deg,
    rgba(8, 18, 40, 0.97),
    rgba(4, 10, 24, 0.97)
  );
}

/* ===== SLIM HEADER — title + slogan only ===== */
.logo-text-safe strong {
  font-family: var(--font-century), "Playfair Display", serif;
  font-size: clamp(1.4rem, 3.2vw, 3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1;
}
.logo-text-safe strong span {
  color: var(--primary);
}
.logo-text-safe em {
  font-family: var(--font-century-italic), serif;
  font-size: clamp(0.62rem, 1.1vw, 0.95rem);
  color: rgba(200, 230, 240, 0.7);
  font-style: italic;
  letter-spacing: 0.3px;
}
/* Decorative line behind header text */
.header-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(47, 155, 199, 0.04) 50%,
    transparent 100%
  );
  pointer-events: none;
}
.header-main::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.4;
}

/* ===== HAMBURGER MENU (mobile) ===== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(6, 22, 38, 0.85);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  position: fixed;
  top: clamp(64px, 8vw, 100px);
  right: 10px;
  z-index: 2500;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
@media (max-width: 700px) {
  .hamburger-btn {
    display: flex;
  }
  .main-nav {
    position: fixed !important;
    top: clamp(64px, 8vw, 100px) !important;
    left: 0;
    right: 0;
    background: rgba(4, 14, 26, 0.98) !important;
    border-bottom: 1px solid var(--border) !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2400;
    backdrop-filter: blur(16px);
  }
  .main-nav.open {
    max-height: 400px;
  }
  .nav-inner {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    padding: 10px 10px 14px !important;
  }
  .nav-link {
    justify-content: flex-start !important;
    padding: 11px 14px !important;
    font-size: 0.78rem !important;
    min-height: 44px !important;
    border-radius: 10px;
    border: 1px solid rgba(85, 182, 214, 0.1) !important;
  }
  /* Push main content down when nav is open */
  main {
    padding-top: 10px;
  }
}

/* ===== SMALLER WEATHER CITY CARDS ===== */
.weather-city-card {
  padding: 8px 12px;
}
.weather-city-name {
  font-size: 0.78rem;
}
.weather-day {
  margin-top: 6px;
  gap: 8px;
}
.weather-day-label {
  font-size: 0.6rem;
}
.weather-day-desc {
  font-size: 0.64rem;
}
.weather-day-desc.long {
  font-size: 0.56rem;
}
.weather-day-temp {
  font-size: 0.82rem;
}
.weather-icon {
  width: 30px;
  height: 30px;
}
.weather-sidebar-header {
  padding: 9px 12px;
  font-size: 0.68rem;
}
.weather-sidebar-footer {
  padding: 7px 12px;
  font-size: 0.6rem;
}

/* ===== Regional weather accordions & legacy-screen layout ===== */
.site-logo-banner {
  display: none !important;
}
.header-main {
  height: clamp(64px, 8vw, 100px);
  min-height: 64px;
  justify-content: center;
  gap: 0;
}
.logo-text-safe {
  align-items: center;
  text-align: center;
  padding-right: 0;
}
.header-overlay {
  z-index: 1;
}
.weather-models {
  margin: -8px 0 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}
.weather-models i {
  color: var(--primary);
}
.weather-full-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.weather-region {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(5, 21, 36, 0.88);
}
.weather-region > summary,
.weather-city-accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}
.weather-region > summary::-webkit-details-marker,
.weather-city-accordion > summary::-webkit-details-marker {
  display: none;
}
.weather-region > summary {
  padding: 14px 15px;
  font-weight: 900;
  color: #e9faff;
}
.weather-region > summary i:first-child {
  color: var(--primary);
  margin-right: 7px;
}
.weather-region[open] > summary {
  border-bottom: 1px solid var(--border);
  background: rgba(47, 155, 199, 0.07);
}
.weather-region summary > .fa-chevron-down,
.weather-city-accordion summary > .fa-chevron-down {
  color: var(--primary);
  font-size: 0.76rem;
  transition: transform 0.2s;
}
.weather-region[open] > summary > .fa-chevron-down,
.weather-city-accordion[open] > summary > .fa-chevron-down {
  transform: rotate(180deg);
}
.weather-region-cities {
  padding: 8px;
  display: grid;
  gap: 7px;
}
.weather-city-accordion {
  border-radius: 10px;
  border: 1px solid rgba(85, 182, 214, 0.15);
  background: rgba(2, 13, 25, 0.5);
}
.weather-city-accordion > summary {
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 800;
}
.weather-city-accordion[open] > summary {
  color: var(--primary);
  border-bottom: 1px solid rgba(85, 182, 214, 0.15);
}
.weather-city-detail {
  padding: 10px;
}
.weather-four-day {
  display: grid;
  gap: 9px;
}
.weather-day-card {
  border-radius: 10px;
  padding: 10px;
  background: linear-gradient(
    140deg,
    rgba(14, 47, 72, 0.85),
    rgba(4, 23, 39, 0.9)
  );
  border: 1px solid rgba(47, 155, 199, 0.14);
}
.weather-day-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
}
.weather-day-title strong {
  text-transform: capitalize;
}
.weather-day-title span {
  color: var(--primary);
  font-weight: 900;
  white-space: nowrap;
}
.weather-phases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  margin: 6px 0 2px;
}
.weather-phases > div {
  display: grid;
  justify-items: center;
  gap: 1px;
}
.weather-phases small {
  color: var(--muted);
  font-size: 0.62rem;
}
.weather-phases .weather-icon {
  width: 38px;
  height: 38px;
  color: var(--primary);
  filter: drop-shadow(0 0 6px rgba(47, 155, 199, 0.32));
}
.weather-condition {
  margin: 4px 0 8px;
  text-align: center;
  text-transform: capitalize;
  font-size: 0.73rem;
  color: #bcd2dc;
}
.weather-condition.long {
  font-size: 0.62rem;
}
.weather-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  font-size: 0.67rem;
  color: #a9c2cc;
}
.weather-metrics i {
  width: 15px;
  color: var(--primary);
}
.weather-metrics b {
  float: right;
  color: #fff;
}
.weather-unavailable {
  padding: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}
.weather-partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 34px;
}
.weather-partner-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(5, 22, 38, 0.82);
  color: var(--muted);
  font-size: 0.82rem;
  transition: border-color 0.2s, transform 0.2s;
}
.weather-partner-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.weather-partner-card img {
  width: 45%;
  max-width: 150px;
  max-height: 100px;
  object-fit: contain;
}
.weather-partner-card strong {
  display: block;
  color: var(--primary);
  margin-top: 4px;
}
.theme-switcher {
  left: 18px;
  right: auto;
  bottom: 18px;
  align-items: flex-start;
}

@media (max-width: 1280px) {
  .nav-inner {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .weather-full-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .header-main {
    height: 70px;
    gap: 8px;
  }
  .site-logo-banner {
    width: 52px;
    height: 52px;
    margin-left: 8px;
  }
  .logo-text-safe strong {
    font-size: clamp(0.88rem, 4.5vw, 1.25rem);
  }
  .logo-text-safe em {
    display: none;
  }
  .weather-full-grid,
  .weather-partners {
    grid-template-columns: 1fr;
  }
  .weather-partner-card img {
    width: 36%;
    max-width: 115px;
  }
  .theme-switcher {
    left: 10px;
    bottom: 10px;
  }
  .hamburger-btn {
    top: 12px;
    right: 10px;
  }
  .main-nav {
    top: 64px !important;
  }
}

/* Final mobile navigation and newsroom tools */
body,
button,
input,
textarea,
select {
  font-family: var(--font-body);
}
.weather-full-grid {
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
}
.weather-region {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.weather-region[open] {
  border-color: rgba(47, 155, 199, 0.48);
}
.weather-region-cities {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding: 12px;
  background: rgba(1, 10, 20, 0.32);
}
.weather-city-accordion[open] {
  grid-column: 1 / -1;
  border-color: rgba(47, 155, 199, 0.55);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.22);
}
.weather-city-detail {
  background: linear-gradient(
    135deg,
    rgba(4, 31, 54, 0.94),
    rgba(9, 59, 82, 0.72)
  );
}
.weather-four-day {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.weather-day-card {
  background: linear-gradient(145deg, #123e5c, #06243c 58%, #071521);
}
.weather-phases > div:first-child {
  background: linear-gradient(180deg, rgba(255, 190, 50, 0.13), transparent);
  border-radius: 8px;
}
.weather-phases > div:last-child {
  background: linear-gradient(180deg, rgba(83, 130, 220, 0.17), transparent);
  border-radius: 8px;
}
.weather-svg .sun {
  filter: drop-shadow(0 0 2px #ffc940);
  animation: weatherGlow 2.5s ease-in-out infinite;
}
.weather-svg .moon {
  filter: drop-shadow(0 0 2px #9edcff);
  animation: weatherGlow 3.5s ease-in-out infinite;
}
.weather-svg .cloud {
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.35));
}
@keyframes weatherGlow {
  50% {
    opacity: 0.74;
  }
}
.admin-media-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: -2px 0 10px;
}
.image-file-picker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #041624;
  background: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}
.image-file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.admin-media-tools .btn-secondary {
  padding: 8px 10px;
  font-size: 0.74rem;
}
.admin-image-info,
.editor-stats {
  font-size: 0.7rem;
  color: var(--muted);
}
.admin-image-preview {
  height: 150px;
  width: min(280px, 100%);
  margin: 0 0 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #061523;
}
.admin-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.editor-stats {
  padding: 6px 9px;
  text-align: right;
  border-top: 1px solid rgba(85, 182, 214, 0.15);
}
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex !important;
    top: 12px !important;
    right: 10px !important;
    z-index: 9999 !important;
  }
  .main-nav {
    position: fixed !important;
    top: 64px !important;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    z-index: 9998;
  }
  .main-nav.open {
    max-height: min(75vh, 560px) !important;
    overflow-y: auto;
  }
  .main-nav .nav-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .weather-region-cities {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }
  .weather-city-accordion[open] {
    grid-column: auto;
  }
  .weather-four-day {
    grid-template-columns: 1fr;
  }
  .weather-day-card {
    padding: 12px;
  }
  .weather-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .weather-metrics span {
    padding: 7px 5px;
    background: rgba(0, 0, 0, 0.13);
    border-radius: 8px;
  }
  .weather-metrics b {
    float: none;
    display: block;
    margin-top: 2px;
  }
}

/* Two-font editorial system: Century Gothic for headings/editorial controls,
   body font elsewhere. Both share the same underlying stacks defined once
   in :root (--font-body / --font-century) so behaviour is identical on
   every device instead of each block guessing its own fallback order. */
body,
input,
textarea,
select,
button,
footer,
.article-content,
.article-subtitle,
.single-subtitle,
.section-subtitle {
  font-family: var(--font-body);
}
.admin-panel,
.admin-panel input,
.admin-panel textarea,
.admin-panel select,
.admin-panel button,
.section-heading h1,
.article-card h2,
.single-article-card h1,
.featured-title,
.nav-link,
.weather-region > summary,
.weather-city-accordion > summary,
.weather-day-title,
.weather-sidebar-header,
#home-refresh,
.auth-card h1,
.auth-card .btn-primary,
.theme-panel-label,
.theme-opt,
.footer-logo-wrap {
  font-family: var(--font-century);
}
.admin-media-tools {
  display: grid;
  grid-template-columns: minmax(190px, auto) auto minmax(150px, 1fr);
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(47, 155, 199, 0.22);
  border-radius: 13px;
  background: linear-gradient(
    100deg,
    rgba(47, 155, 199, 0.1),
    rgba(4, 19, 33, 0.4)
  );
}
.image-file-picker {
  min-height: 42px;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(47, 155, 199, 0.18);
}
.admin-image-preview {
  width: 100%;
  max-width: 360px;
  height: 180px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.weather-svg .sun {
  fill: #ffbf23 !important;
  stroke: #ff8a18;
  stroke-width: 1;
  filter: drop-shadow(0 0 5px #ffbd35);
  animation: sunPulse 2.2s ease-in-out infinite;
}
.weather-svg .sun-rays path {
  stroke: #ffb20d !important;
  stroke-width: 2.2;
  animation: sunRays 8s linear infinite;
  transform-origin: 17px 17px;
}
.weather-svg .moon {
  fill: #d8efff !important;
  stroke: #8cccff;
  filter: drop-shadow(0 0 4px #b0deff);
}
.weather-svg .cloud {
  fill: #d9eef7 !important;
  stroke: #8ec2d9;
  stroke-width: 0.6;
}
.weather-svg .rain path {
  stroke: #3baaf1 !important;
  stroke-width: 2.7;
  animation: rainFall 0.9s linear infinite;
}
.weather-svg .snow path {
  stroke: #fff !important;
  animation: snowSpin 2.5s linear infinite;
  transform-origin: center;
}
.weather-svg .fog path {
  stroke: #d7e7ed !important;
}
@keyframes sunPulse {
  50% {
    fill: #ffe372;
    filter: drop-shadow(0 0 10px #ffbd35);
  }
}
@keyframes sunRays {
  to {
    transform: rotate(360deg);
  }
}
@keyframes rainFall {
  50% {
    transform: translateY(2px);
    opacity: 0.45;
  }
}
@keyframes snowSpin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 700px) {
  .admin-media-tools {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .admin-image-info {
    text-align: center;
  }
}

/* Final typography and contact page */
.image-file-picker {
  background: #083b69 !important;
  color: #fff !important;
  border: 1px solid #168bd1;
}
.image-file-picker:hover {
  background: #0b528d !important;
}
.admin-image-info {
  color: #d7e7f4;
}
.footer-links button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}
.contact-page {
  max-width: 900px;
  margin: 0 auto;
}
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1.35fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(8, 34, 54, 0.96),
    rgba(3, 17, 30, 0.96)
  );
  box-shadow: var(--shadow);
}
.contact-card > div {
  padding: clamp(24px, 4vw, 46px);
}
.contact-card h1 {
  margin: 6px 0 13px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}
.contact-card p {
  color: #c2d6df;
  margin: 0 0 24px;
}
.contact-cover {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}
.contact-creators {
  margin-top: 28px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
}
.contact-creators strong {
  color: var(--primary);
}
@media (max-width: 700px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
  .contact-cover {
    min-height: 180px;
    max-height: 240px;
  }
}

/* ── AI THUMBNAIL BUTTON ─────────────────────────────── */
.btn-ai-thumb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.12s, box-shadow 0.18s;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
  white-space: nowrap;
}
.btn-ai-thumb:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
}
.btn-ai-thumb i {
  font-size: 0.95em;
}

/* ── AI THUMBNAIL MODAL ──────────────────────────────── */
.ai-thumb-modal-box {
  max-width: 680px;
  width: 95vw;
  max-height: 92vh;
  overflow-y: auto;
}
.ai-thumb-icon {
  background: linear-gradient(135deg, #7c3aed22, #4f46e522);
  border: 1px solid rgba(124, 58, 237, 0.3);
}
.ai-thumb-icon i {
  color: #a78bfa;
}
.ai-thumb-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 18px;
  line-height: 1.5;
}
.ai-thumb-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.ai-thumb-input-row input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
}
.ai-thumb-input-row input:focus {
  outline: none;
  border-color: #7c3aed;
}
.ai-thumb-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-bottom: 14px;
}
.ai-thumb-option {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ai-thumb-option label {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
}
.ai-thumb-option select {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.85rem;
}
.ai-thumb-option select:focus {
  outline: none;
  border-color: #7c3aed;
}
.ai-thumb-option-checkbox {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
}
.ai-thumb-option-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
}
.ai-thumb-option-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #7c3aed;
  cursor: pointer;
}
@media (max-width: 600px) {
  .ai-thumb-options-grid {
    grid-template-columns: 1fr;
  }
}
.ai-thumb-message {
  font-size: 0.87rem;
  min-height: 1.4em;
  margin-bottom: 10px;
  font-weight: 600;
}
.ai-thumb-result {
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.ai-thumb-img-wrap img {
  width: 100%;
  max-height: 46vh;
  object-fit: contain;
  display: block;
  background: #000;
  border-radius: 10px 10px 0 0;
}
.ai-thumb-prompt-note {
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
  line-height: 1.45;
}
.ai-thumb-prompt-note i {
  color: #a78bfa;
  margin-right: 6px;
}
.ai-thumb-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .ai-thumb-input-row {
    flex-direction: column;
  }
  .ai-thumb-actions {
    flex-direction: column;
  }
}

/* AI Thumb loading bar */
.ai-thumb-loading-bar {
  padding: 14px 16px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(47, 155, 199, 0.06);
}

/* ===== Typography: Century Gothic (headings/body) + Arial Narrow (tabs/labels) ===== */
.nav-link,
.eyebrow,
.admin-tabs button,
.featured-badge,
.weather-day-label,
.admin-image-info,
.weather-sidebar-footer,
.theme-panel-label,
.category-check-grid label,
.weather-city-name {
  font-family: "Arial Narrow", "Century Gothic", Arial, sans-serif;
}

/* ===== Athens featured forecast (weather tab, pinned above the regions) ===== */
.weather-quick-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(5, 21, 36, 0.88);
  padding: 14px;
  margin: 0 0 22px;
}
.weather-quick-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: "Arial Narrow", "Century Gothic", Arial, sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.4px;
}
.weather-quick-close-btn {
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.weather-quick-close-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.weather-quick-header i {
  color: var(--primary);
}
.weather-quick-regions,
.weather-quick-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.weather-quick-regions {
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1c4f8f, #123a6e);
  border: 1px solid rgba(58, 141, 219, 0.35);
}
.weather-quick-cities {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border-top: none;
  background: linear-gradient(135deg, #0f6e63, #1a4f7a);
  border: 1px solid rgba(45, 179, 158, 0.35);
}
.weather-quick-region-btn,
.weather-quick-city-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.weather-quick-region-btn:hover,
.weather-quick-city-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}
.weather-quick-region-btn.active,
.weather-quick-city-btn.active {
  background: #fff;
  border-color: #fff;
  color: #123a6e;
}
.weather-quick-result {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.weather-quick-result-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}
.weather-quick-result-title i {
  color: var(--primary);
}
.weather-featured-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 760px) {
  .weather-featured-row {
    grid-template-columns: 1fr;
  }
}
.weather-athens-featured {
  margin: 0 0 22px;
}
.weather-athens-featured-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: "Arial Narrow", "Century Gothic", Arial, sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.4px;
}
.weather-athens-featured-header i {
  color: var(--primary);
}
.weather-athens-featured-body {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(5, 21, 36, 0.88);
  padding: 12px;
}

/* ===== Overall polish pass: transitions, scrollbar, buttons, focus states ===== */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 155, 199, 0.45) rgba(4, 14, 24, 0.4);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(4, 14, 24, 0.4);
}
::-webkit-scrollbar-thumb {
  background: rgba(47, 155, 199, 0.4);
  border-radius: 999px;
  border: 2px solid rgba(4, 14, 24, 0.4);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(47, 155, 199, 0.65);
}
::selection {
  background: rgba(47, 155, 199, 0.35);
  color: #fff;
}
a,
button,
.nav-link,
.article-card,
.weather-city-card,
.weather-day-card,
.weather-full-card,
.icon-header-btn,
.ghost-btn,
.theme-opt,
.reaction-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  box-shadow: 0 8px 22px rgba(47, 155, 199, 0.22);
}
.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(47, 155, 199, 0.32);
  filter: brightness(1.06);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--text);
}
.weather-city-card,
.weather-day-card,
.weather-full-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.weather-city-card:hover,
.weather-day-card:hover,
.weather-full-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 155, 199, 0.4);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.weather-partner-card,
.weather-region,
.admin-image-preview,
.ai-thumb-result {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Pet Corner banner μέσα στο πάνελ γρήγορης επιλογής περιοχής (καιρός).
   Ίδιο ύψος/σχήμα (pill) με τα κουμπιά περιοχών, αλλά μακρόστενο: γεμίζει
   το κενό που απομένει στη σειρά (flex-grow μεγαλύτερο από των κουμπιών,
   τα οποία δεν μεγαλώνουν) — αν δεν χωράει, πάει σε δική του γραμμή.
   Η εικόνα φαίνεται ΟΛΟΚΛΗΡΗ (object-fit: contain, όχι crop) και το όποιο
   κενό περίγραμμα καλύπτεται με το ίδιο πράσινο φόντο του banner
   (#7bb93a), ώστε να μη φαίνεται ξένο ορθογώνιο κολλημένο πάνω στο πλαίσιο. */
.weather-quick-petcorner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-left: 2px;
  flex: 999 1 200px;
  min-width: 150px;
  max-width: 100%;
  position: relative;
  background: #7bb93a;
  transition: transform 0.15s, border-color 0.15s;
}
.weather-quick-petcorner:hover {
  transform: scale(1.015);
  border-color: #fff;
}
.weather-quick-petcorner img {
  height: 100%;
  width: 100%;
  display: block;
  object-fit: contain;
}

/* Λαβές αλλαγής μεγέθους εικόνας μέσα στο κείμενο — 4 γωνίες, όπως στο
   Word. ΠΑΝΤΑ ορατές (όχι μόνο σε hover/επιλογή), γιατί το :hover δεν
   πυροδοτείται αξιόπιστα σε κινητά/tablet — μόνο στη λειτουργία
   επεξεργασίας (admin). */
.in-article-image-resize {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid var(--primary, #2f9bc7);
  border-radius: 50%;
  opacity: 0.9;
  transition: opacity 0.15s, transform 0.1s;
  z-index: 3;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.in-article-image-resize-nw {
  top: -7px;
  left: -7px;
  cursor: nwse-resize;
}
.in-article-image-resize-ne {
  top: -7px;
  right: -7px;
  cursor: nesw-resize;
}
.in-article-image-resize-sw {
  bottom: -7px;
  left: -7px;
  cursor: nesw-resize;
}
.in-article-image-resize-se {
  bottom: -7px;
  right: -7px;
  cursor: nwse-resize;
}
.in-article-image:hover .in-article-image-resize,
.in-article-image.selected .in-article-image-resize,
.in-article-image.resizing .in-article-image-resize {
  opacity: 1;
}.in-article-image-resize:hover {
  transform: scale(1.25);
}
.in-article-image.selected {
  outline: 2px solid var(--primary, #2f9bc7);
  outline-offset: 3px;
  border-radius: 10px;
}
.in-article-image.resizing {
  outline-color: rgba(47, 155, 199, 0.9);
  user-select: none;
}
.article-content .in-article-image-resize,
.article-content .in-article-image.selected {
  display: none;
  outline: none;
}

/* ── Home: Πίνακας Μέγιστων/Ελάχιστων Θερμοκρασιών (καθαρό "πινακάκι") ── */
.home-minmax-section {
  margin: 26px 0 10px;
}
.home-minmax-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.home-minmax-day {
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(
    150deg,
    rgba(14, 47, 72, 0.9),
    rgba(4, 23, 39, 0.95)
  );
  border: 1px solid rgba(47, 155, 199, 0.18);
}
.home-minmax-day-label {
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  text-transform: capitalize;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(47, 155, 199, 0.18);
}
.home-minmax-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.home-minmax-col-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.home-minmax-max .home-minmax-col-title i {
  color: #ff8a5c;
}
.home-minmax-min .home-minmax-col-title i {
  color: #55b6d6;
}
.home-minmax-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}
.home-minmax-row:last-child {
  border-bottom: none;
}
.home-minmax-row .weather-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--primary);
}
.home-minmax-region {
  flex: 1;
  color: #e7f1f6;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-minmax-row b {
  font-weight: 900;
  color: #fff;
  font-size: 0.9rem;
}
.home-minmax-max .home-minmax-row b {
  color: #ff8a5c;
}
.home-minmax-min .home-minmax-row b {
  color: #55b6d6;
}
.home-minmax-cta {
  text-align: center;
  margin-top: 14px;
}
.home-minmax-cta a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  font-size: 0.9rem;
}
@media (max-width: 560px) {
  .home-minmax-cols {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ── Δευτερεύουσα ενότητα Home χωρίς πάνελ διαφήμισης (πλήρες πλάτος) ── */
.home-secondary-section {
  margin: 30px 0;
}
.home-secondary-news-full {
  width: 100%;
}
.home-secondary-news-full .section-heading {
  margin-top: 22px;
}
.home-secondary-news-full .section-heading:first-child {
  margin-top: 0;
}

/* ── Windy χάρτης — όμορφο, στυλιζαρισμένο πλαίσιο ────────────────────── */
.weather-windy-section {
  margin: 24px 0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(
    150deg,
    rgba(14, 47, 72, 0.92),
    rgba(4, 23, 39, 0.96)
  );
  border: 1px solid rgba(47, 155, 199, 0.2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.weather-windy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(47, 155, 199, 0.18);
}
.weather-windy-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
}
.weather-windy-title i {
  color: var(--primary);
}
.weather-windy-toggle {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: 999px;
}
.weather-windy-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.weather-windy-btn:hover {
  color: #fff;
}
.weather-windy-btn.active {
  background: var(--primary);
  color: #04141f;
}
.weather-windy-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  background: #04141f;
}
.weather-windy-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 640px) {
  .weather-windy-embed {
    aspect-ratio: 4 / 5;
    max-height: 460px;
  }
}

/* ── Μεγαλύτερη, πιο ευανάγνωστη κάρτα καιρού Home (sidebar) — μόνο σε
   αρκετά πλατιές οθόνες, ώστε να ΜΗΝ ακυρώνει το στοίβαγμα σε
   κινητά/tablet/παλιές τετράγωνες οθόνες (πιο πάνω, @media max-width:1100px,
   το .home-layout γίνεται 1 στήλη — αυτό εδώ πρέπει να ισχύει ΜΟΝΟ πάνω από
   αυτό το όριο). ── */
@media (min-width: 1101px) {
  .home-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}
#weather-cities .weather-icon {
  width: 48px;
  height: 48px;
}
#weather-cities .weather-city-name {
  font-size: 0.95rem;
}
#weather-cities .weather-day-desc {
  font-size: 0.78rem;
}
#weather-cities .weather-day-label {
  font-size: 0.7rem;
}
#weather-cities .weather-day-temp {
  font-size: 1.05rem;
}
#weather-cities .weather-city-card {
  padding: 14px 16px;
}
@media (max-width: 480px) {
  /* Πολύ μικρές οθόνες κινητών — κρατάμε τα εικονίδια ευανάγνωστα αλλά
     χωρίς να ξεχειλίζουν την κάρτα. */
  #weather-cities .weather-icon {
    width: 38px;
    height: 38px;
  }
  #weather-cities .weather-city-card {
    padding: 12px 14px;
  }
}

/* Κάθετη διαχωριστική γραμμή ανάμεσα σε Υψηλότερες / Χαμηλότερες — σε όλο
   το ύψος της κάρτας, ώστε να ακολουθεί ακριβώς το σημείο διαχωρισμού. */
.home-minmax-cols {
  position: relative;
}
.home-minmax-cols::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.home-minmax-row .weather-icon {
  width: 24px;
  height: 24px;
}
@media (max-width: 480px) {
  .home-minmax-row .weather-icon {
    width: 20px;
    height: 20px;
  }
  .home-minmax-region {
    font-size: 0.78rem;
  }
}
@media (max-width: 560px) {
  .home-minmax-cols::after {
    display: none;
  }
}

/* ── "Layout Options" εργαλειοθήκη — ΠΑΝΤΑ ορατή (όχι μόνο σε hover/
   επιλογή), γιατί το :hover δεν πυροδοτείται αξιόπιστα σε κινητά/tablet.
   Είναι static (μέσα στη ροή, όχι απόλυτη τοποθέτηση) ώστε να μην κόβεται
   ποτέ έξω από τα όρια του editor. ── */
.in-article-image-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  background: rgba(5, 18, 31, 0.95);
  border: 1px solid rgba(47, 155, 199, 0.35);
  border-radius: 9px 9px 0 0;
  padding: 5px;
  margin-bottom: -1px;
}
.in-article-image-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border: none;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.in-article-image-toolbar-sep {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.14);
  margin: 4px 2px;
}
.in-article-image-toolbar button[data-move] {
  padding: 0 11px;
}
.in-article-image-toolbar button:hover {
  background: rgba(47, 155, 199, 0.25);
  color: #fff;
}
.in-article-image.img-align-left .in-article-image-toolbar button[data-align="left"],
.in-article-image.img-align-right .in-article-image-toolbar button[data-align="right"],
.in-article-image:not(.img-align-left):not(.img-align-right)
  .in-article-image-toolbar
  button[data-align="none"],
.in-article-image-toolbar button.active {
  background: var(--primary);
  color: #04141f;
}
.article-content .in-article-image-toolbar {
  display: none;
}

/* ── Αναδίπλωση κειμένου γύρω από την εικόνα, όπως στο Word ── */
.in-article-image.img-align-left {
  float: left;
  margin: 6px 20px 14px 0;
  max-width: 60%;
}
.in-article-image.img-align-right {
  float: right;
  margin: 6px 0 14px 20px;
  max-width: 60%;
}
@media (max-width: 640px) {
  .in-article-image.img-align-left,
  .in-article-image.img-align-right {
    float: none;
    max-width: 100%;
    width: 100% !important;
    margin: 14px 0;
  }
}

.in-article-image-body {
  position: relative;
}
/* ============================================================
   MOURMOURA NEWS v3 — weather / responsive / themes / MeteoNews
   Final overrides: κρατούν το "Δίκτυο" ως βασικό θέμα και βελτιώνουν
   τις εναλλακτικές παλέτες χωρίς να αλλάζει η δομή του site.
   ============================================================ */

/* ---------- Navigation: typography + compact icons ---------- */
.main-nav .nav-inner {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  width: min(100%, 1500px);
  gap: 3px;
  padding: 4px 8px;
}
.nav-link {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 5px;
  font-family: var(--font-century), "Century Gothic", "Nunito", sans-serif;
  font-size: clamp(0.58rem, 0.72vw, 0.76rem);
  letter-spacing: 0.15px;
  border-radius: 9px;
}
.nav-link i {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #bcecff;
  background: linear-gradient(145deg, rgba(47,155,199,.24), rgba(47,155,199,.07));
  border: 1px solid rgba(82,190,229,.2);
  box-shadow: inset 0 0 12px rgba(47,155,199,.08);
}
.nav-link:hover i,
.nav-link.active i {
  color: #04131d;
  background: linear-gradient(145deg, var(--primary), #8be4ff);
  border-color: transparent;
}

/* Tablet + older square displays: keep every category visible, smaller. */
@media (min-width: 601px) and (max-width: 1280px) {
  .hamburger-btn { display: none !important; }
  .main-nav {
    position: sticky !important;
    top: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .main-nav .nav-inner {
    display: grid !important;
    grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
    gap: 2px !important;
    padding: 4px !important;
  }
  .nav-link {
    min-height: 40px !important;
    padding: 6px 2px !important;
    font-size: clamp(.50rem, .78vw, .66rem) !important;
    gap: 4px !important;
  }
  .nav-link i {
    width: 21px !important;
    height: 21px !important;
    flex-basis: 21px !important;
    font-size: .72rem !important;
  }
}

/* Phones: hamburger only where the full row is no longer comfortably usable. */
@media (max-width: 600px) {
  .hamburger-btn { display: flex !important; }
  .main-nav {
    position: fixed !important;
    top: 64px !important;
    left: 0;
    right: 0;
    max-height: 0 !important;
    overflow: hidden !important;
  }
  .main-nav.open {
    max-height: min(78vh, 620px) !important;
    overflow-y: auto !important;
  }
  .main-nav .nav-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 10px !important;
  }
  .nav-link {
    justify-content: flex-start !important;
    min-height: 45px !important;
    font-size: .72rem !important;
    padding: 8px 10px !important;
  }
}

/* ---------- PetCorner advertising block ---------- */
.weather-ad-section {
  width: 100%;
  margin: 6px 0 20px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(10,29,49,.92), rgba(5,19,33,.96));
  box-shadow: 0 14px 38px rgba(0,0,0,.28);
}
.weather-ad-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--font-century), "Century Gothic", sans-serif;
  font-size: .68rem;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.weather-ad-label span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.16);
}
.weather-quick-petcorner {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: #6fbd32;
}
.weather-quick-petcorner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ---------- Home weather sidebar = same visual language as min/max ---------- */
.weather-sidebar {
  background: linear-gradient(145deg, rgba(14,47,72,.92), rgba(4,23,39,.96));
  border: 1px solid rgba(47,155,199,.22);
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(0,0,0,.28);
}
.weather-sidebar-header {
  padding: 13px 15px;
  font-family: var(--font-century), "Century Gothic", sans-serif;
  font-size: .78rem;
  color: #fff;
  letter-spacing: .45px;
  background: rgba(47,155,199,.08);
}
.weather-sidebar-header i { color: var(--primary); }
#weather-cities .weather-city-card {
  padding: 10px 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: transparent;
}
#weather-cities .weather-city-card:last-child { border-bottom: 0; }
#weather-cities .weather-city-name {
  margin-bottom: 5px;
  color: #e7f1f6;
  font-size: .86rem;
  font-weight: 900;
  font-family: var(--font-century), "Century Gothic", sans-serif;
}
#weather-cities .weather-day {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  min-height: 39px;
  margin: 0;
  padding: 5px 0;
  border-top: 1px dashed rgba(255,255,255,.07);
}
#weather-cities .weather-day-label {
  font-size: .62rem;
  color: var(--muted);
  font-weight: 800;
}
#weather-cities .weather-day-desc {
  font-size: .68rem;
  color: #dceaf0;
  line-height: 1.2;
}
#weather-cities .weather-day-right {
  display: grid;
  grid-template-columns: 27px 38px;
  align-items: center;
  justify-items: end;
  gap: 5px;
}
#weather-cities .weather-icon {
  width: 27px !important;
  height: 27px !important;
}
#weather-cities .weather-day-temp {
  min-width: 36px;
  text-align: right;
  font-size: .92rem;
  font-weight: 900;
  color: #fff;
}
.weather-sidebar-footer {
  padding: 9px 13px;
  font-size: .58rem;
  line-height: 1.35;
}

/* ---------- National min / max: clean aligned table ---------- */
.home-minmax-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.home-minmax-day {
  margin: 0 !important;
  padding: 14px;
}
.home-minmax-day-label {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px !important;
  text-align: left !important;
  font-family: var(--font-century), "Century Gothic", sans-serif;
}
.home-minmax-day-label small {
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: .64rem;
  font-weight: 700;
  white-space: nowrap;
}
.home-minmax-cols {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}
.home-minmax-col {
  padding: 0 !important;
  border: 0 !important;
  min-width: 0;
}
.home-minmax-cols::after { display: none !important; }
.home-minmax-row {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 28px 42px;
  gap: 7px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 6px 0 !important;
}
.home-minmax-row .custom-icon-wrapper {
  display: grid !important;
  place-items: center !important;
  width: 28px;
}
.home-minmax-row b {
  padding: 0 !important;
  text-align: right !important;
}
@media (max-width: 900px) {
  .home-minmax-panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .home-minmax-cols { grid-template-columns: 1fr !important; }
  .home-minmax-day-label { align-items: flex-start; flex-direction: column; }
}

/* ---------- Four-day forecast: square, aligned, no long prose ---------- */
.weather-featured-row {
  align-items: start;
}
.weather-athens-featured-body {
  padding: 10px;
  background: linear-gradient(145deg, rgba(14,47,72,.86), rgba(4,23,39,.94));
}
.weather-four-day {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
.weather-day-card {
  aspect-ratio: 1 / 1;
  min-width: 0;
  padding: 9px !important;
  display: grid;
  grid-template-rows: auto auto auto minmax(0,1fr);
  align-content: start;
  gap: 6px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(17,57,84,.94), rgba(6,29,48,.98));
  border: 1px solid rgba(82,190,229,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 7px 18px rgba(0,0,0,.18);
}
.weather-day-title {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 5px;
  align-items: center;
  margin: 0;
}
.weather-day-title strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .68rem;
  font-family: var(--font-century), "Century Gothic", sans-serif;
}
.weather-day-title span {
  color: var(--primary);
  font-size: .61rem;
  font-weight: 900;
  white-space: nowrap;
}
.weather-phases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.weather-phases > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 1px;
  padding: 3px 2px;
  background: rgba(255,255,255,.035);
  border-radius: 8px;
}
.weather-phases small {
  color: var(--muted);
  font-size: .52rem;
  line-height: 1;
}
.weather-phases .weather-icon {
  width: 28px;
  height: 28px;
}
.weather-phases b {
  font-size: .78rem;
  line-height: 1;
}
.weather-condition {
  margin: 0 !important;
  min-height: 0 !important;
  padding: 3px 5px;
  border-radius: 7px;
  text-align: center;
  background: rgba(47,155,199,.1);
  color: #eaf8fc;
  font-size: .61rem !important;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.weather-day-summary { display: none !important; }
.weather-metrics {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2px !important;
  min-height: 0;
  align-content: start;
}
.weather-metrics span {
  min-width: 0;
  display: grid !important;
  grid-template-columns: 13px minmax(0,1fr) auto;
  align-items: center;
  gap: 3px;
  padding: 1px 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  color: var(--muted);
  font-size: .49rem !important;
  line-height: 1.15;
}
.weather-metrics i { color: var(--primary); }
.weather-metrics em {
  overflow: hidden;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.weather-metrics b {
  display: block !important;
  margin: 0 !important;
  color: #fff;
  font-size: .49rem;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .weather-featured-row { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .weather-four-day { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .weather-day-card { padding: 10px !important; }
  .weather-day-title strong { font-size: .72rem; }
  .weather-metrics span, .weather-metrics b { font-size: .54rem !important; }
}
@media (max-width: 340px) {
  .weather-four-day { grid-template-columns: 1fr !important; }
}

/* ---------- Weather subcategories + MeteoNews ---------- */
.weather-news-section {
  margin: 28px 0 38px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.weather-subsection-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.weather-subsection-heading h2 { margin: 0; }
.weather-subcat-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(47,155,199,.12);
  border: 1px solid rgba(47,155,199,.22);
  color: var(--primary);
  font-size: .65rem;
  font-weight: 900;
}
.meteonews-kicker,
.cat-pill-meteonews,
.meteonews-admin-category span {
  color: #ffd36b !important;
  border-color: rgba(255,191,71,.28) !important;
  background: rgba(255,174,44,.1) !important;
}
.cat-pill-meteonews { font-weight: 900; }
.card-badge-meteonews {
  color: #ffd36b !important;
  border-color: rgba(255,191,71,.35) !important;
  background: rgba(34,22,5,.88) !important;
}

/* Admin category selector */
.category-check-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 7px !important;
}
.category-check-grid label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  font-size: .75rem !important;
}
.category-check-grid label span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.category-check-grid label i { color: var(--primary); }
.category-helper {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .69rem;
}

/* ---------- Contact links ---------- */
.contact-links-admin { align-items: end; }
.contact-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}
.contact-link-btn {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.045);
  text-decoration: none;
  font-weight: 800;
  font-size: .78rem;
}
.contact-link-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-link-btn.youtube i { color: #ff5b62; }
.contact-link-btn.facebook i { color: #6fa8ff; }
.contact-link-btn.email i { color: var(--primary); }
.contact-link-btn:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ---------- Theme palettes: network remains untouched ---------- */
body.theme-storm {
  --primary: #8ab4ff;
  --primary-2: #5f7bd8;
  --primary-soft: rgba(138,180,255,.13);
  --bg: #080d1d;
  --bg-2: #111832;
  --panel: rgba(13,19,42,.9);
  --card: #111a39;
  --card-2: #17254a;
  --border: rgba(138,180,255,.2);
  --text: #eef4ff;
  --muted: #a0acc9;
  background: radial-gradient(circle at 20% 10%, rgba(91,93,190,.22), transparent 30%),
              radial-gradient(circle at 80% 25%, rgba(52,96,151,.18), transparent 38%),
              linear-gradient(160deg, #070b18, #11182f 52%, #050815) !important;
}
body.theme-fog {
  --primary: #9bc7d4;
  --primary-2: #6f9aa8;
  --primary-soft: rgba(155,199,212,.13);
  --bg: #10191e;
  --bg-2: #18252b;
  --panel: rgba(24,36,42,.9);
  --card: #1a2b32;
  --card-2: #213740;
  --border: rgba(183,218,226,.18);
  --text: #f0f7f8;
  --muted: #afc2c8;
  background: radial-gradient(circle at 35% 14%, rgba(190,218,223,.12), transparent 32%),
              radial-gradient(circle at 72% 42%, rgba(130,164,173,.13), transparent 35%),
              linear-gradient(160deg, #10181d, #1b292f 50%, #0d1519) !important;
}
body.theme-dark {
  --primary: #f2c66d;
  --primary-2: #a77c38;
  --primary-soft: rgba(242,198,109,.1);
  --bg: #070707;
  --bg-2: #11100e;
  --panel: rgba(18,17,15,.94);
  --card: #171613;
  --card-2: #201e19;
  --border: rgba(242,198,109,.17);
  --text: #f8f4eb;
  --muted: #b7ad9d;
  background: radial-gradient(circle at 50% 0%, rgba(151,113,52,.10), transparent 30%),
              linear-gradient(160deg, #050505, #11100e 55%, #050505) !important;
}
body.theme-storm .site-header,
body.theme-storm .main-nav,
body.theme-fog .site-header,
body.theme-fog .main-nav,
body.theme-dark .site-header,
body.theme-dark .main-nav {
  background: color-mix(in srgb, var(--bg) 92%, transparent) !important;
  border-color: var(--border) !important;
}
body.theme-storm .article-card,
body.theme-storm .weather-sidebar,
body.theme-storm .home-minmax-day,
body.theme-storm .weather-athens-featured-body,
body.theme-fog .article-card,
body.theme-fog .weather-sidebar,
body.theme-fog .home-minmax-day,
body.theme-fog .weather-athens-featured-body,
body.theme-dark .article-card,
body.theme-dark .weather-sidebar,
body.theme-dark .home-minmax-day,
body.theme-dark .weather-athens-featured-body {
  background: linear-gradient(150deg, color-mix(in srgb, var(--card-2) 94%, transparent), color-mix(in srgb, var(--panel) 96%, transparent)) !important;
  border-color: var(--border) !important;
}
body.theme-storm .btn-primary,
body.theme-fog .btn-primary,
body.theme-dark .btn-primary {
  background: var(--primary) !important;
  color: var(--bg) !important;
}
body.theme-storm .weather-day-card,
body.theme-fog .weather-day-card,
body.theme-dark .weather-day-card {
  background: linear-gradient(155deg, var(--card-2), var(--card)) !important;
  border-color: var(--border) !important;
}

/* Avoid layout overflow on any screen. */
.weather-featured-row,
.weather-four-day,
.home-minmax-panel,
.home-minmax-cols,
.category-check-grid,
.contact-social-links { min-width: 0; }
.weather-day-card *,
.weather-city-card *,
.home-minmax-row * { min-width: 0; }


/* ================================================================
   2026-08-24 — Weather/UI precision fixes
   ================================================================ */

/* 1. Home min/max: icon truly centered in its own column and slightly larger. */
.home-minmax-row {
  grid-template-columns: minmax(0, 1fr) 40px 42px !important;
}
.home-minmax-row .custom-icon-wrapper {
  width: 40px !important;
  min-width: 40px !important;
  display: grid !important;
  place-items: center !important;
  justify-self: center !important;
}
.home-minmax-row .weather-icon {
  width: 30px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 auto !important;
}

/* 2. Home sidebar: weather icons a touch larger without disturbing alignment. */
#weather-cities .weather-day-right {
  grid-template-columns: 34px 40px !important;
  gap: 7px !important;
}
#weather-cities .weather-icon {
  width: 33px !important;
  height: 33px !important;
}
@media (max-width: 480px) {
  #weather-cities .weather-day-right {
    grid-template-columns: 32px 38px !important;
  }
  #weather-cities .weather-icon {
    width: 31px !important;
    height: 31px !important;
  }
}

/* 4. Forecast cards: content-fit. No clipping and no artificial empty square area. */
.weather-athens-featured,
.weather-athens-featured-body,
.weather-quick-result {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
.weather-four-day {
  align-items: start !important;
  grid-auto-rows: auto !important;
}
.weather-day-card {
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 0 !important;
  align-self: start !important;
  grid-template-rows: auto auto auto auto !important;
  overflow: visible !important;
}
.weather-metrics {
  min-height: 0 !important;
  height: auto !important;
}
.weather-quick-result .weather-four-day,
.weather-athens-featured-body .weather-four-day {
  margin-bottom: 0 !important;
}

/* 5. PetCorner banner: complete original proportions + clickable area. */
.weather-quick-petcorner {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
  text-decoration: none !important;
  cursor: pointer;
}
.weather-quick-petcorner img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}
.weather-quick-petcorner:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* ============================================================
   FINAL HOME WEATHER ALIGNMENT — 3 columns: city | icon | temp
   ============================================================ */
.home-minmax-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 48px 48px !important;
  align-items: center !important;
  column-gap: 8px !important;
}
.home-minmax-region {
  width: 100% !important;
  justify-self: stretch !important;
  text-align: center !important;
}
.home-minmax-row .custom-icon-wrapper {
  width: 48px !important;
  min-width: 48px !important;
  height: 40px !important;
  display: grid !important;
  place-items: center !important;
  justify-self: center !important;
  align-self: center !important;
}
.home-minmax-row .weather-icon {
  width: 35px !important;
  height: 35px !important;
  margin: 0 auto !important;
}
.home-minmax-row > b {
  width: 48px !important;
  justify-self: center !important;
  text-align: center !important;
}

/* Home weather sidebar: one click larger, still perfectly aligned. */
#weather-cities .weather-day-right {
  grid-template-columns: 38px 42px !important;
  justify-items: center !important;
  gap: 7px !important;
}
#weather-cities .weather-icon {
  width: 36px !important;
  height: 36px !important;
  justify-self: center !important;
}
#weather-cities .weather-day-temp {
  min-width: 42px !important;
  text-align: center !important;
  justify-self: center !important;
}

@media (max-width: 480px) {
  .home-minmax-row {
    grid-template-columns: minmax(0, 1fr) 42px 44px !important;
    column-gap: 5px !important;
  }
  .home-minmax-row .custom-icon-wrapper {
    width: 42px !important;
    min-width: 42px !important;
  }
  .home-minmax-row .weather-icon {
    width: 32px !important;
    height: 32px !important;
  }
  .home-minmax-row > b {
    width: 44px !important;
  }
  #weather-cities .weather-day-right {
    grid-template-columns: 35px 40px !important;
  }
  #weather-cities .weather-icon {
    width: 33px !important;
    height: 33px !important;
  }
}

/* ============================================================
   ABSOLUTE FINAL — HOME WEATHER ICONS EXACTLY AT CARD CENTER
   Equal side columns guarantee the icon sits on the true 50% axis.
   ============================================================ */

/* Home: Υψηλότερες / Χαμηλότερες — περιοχή | ΕΙΚΟΝΙΔΙΟ | θερμοκρασία */
.home-minmax-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr) !important;
  align-items: center !important;
  width: 100% !important;
  column-gap: 6px !important;
}
.home-minmax-region {
  grid-column: 1 !important;
  justify-self: stretch !important;
  text-align: left !important;
  padding-right: 4px !important;
}
.home-minmax-row .custom-icon-wrapper {
  grid-column: 2 !important;
  width: 52px !important;
  min-width: 52px !important;
  height: 44px !important;
  display: grid !important;
  place-items: center !important;
  justify-self: center !important;
  align-self: center !important;
  margin: 0 !important;
}
.home-minmax-row .weather-icon {
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  justify-self: center !important;
  margin: 0 !important;
}
.home-minmax-row > b {
  grid-column: 3 !important;
  width: auto !important;
  justify-self: end !important;
  text-align: right !important;
  padding-left: 4px !important;
}

/* Home sidebar weather: πληροφορία | ΕΙΚΟΝΙΔΙΟ | θερμοκρασία.
   display:contents removes the nested right wrapper from layout so the icon
   becomes the true middle column of the whole row. */
#weather-cities .weather-day {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr) !important;
  align-items: center !important;
  width: 100% !important;
  column-gap: 6px !important;
}
#weather-cities .weather-day > div:first-child {
  grid-column: 1 !important;
  min-width: 0 !important;
  justify-self: stretch !important;
  text-align: left !important;
}
#weather-cities .weather-day-right {
  display: contents !important;
}
#weather-cities .weather-day-right > .weather-icon {
  grid-column: 2 !important;
  width: 38px !important;
  height: 38px !important;
  justify-self: center !important;
  align-self: center !important;
  margin: 0 !important;
}
#weather-cities .weather-day-right > .weather-day-temp {
  grid-column: 3 !important;
  width: auto !important;
  min-width: 0 !important;
  justify-self: end !important;
  text-align: right !important;
}

@media (max-width: 480px) {
  .home-minmax-row,
  #weather-cities .weather-day {
    grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr) !important;
    column-gap: 4px !important;
  }
  .home-minmax-row .custom-icon-wrapper {
    width: 46px !important;
    min-width: 46px !important;
    height: 40px !important;
  }
  .home-minmax-row .weather-icon,
  #weather-cities .weather-day-right > .weather-icon {
    width: 35px !important;
    height: 35px !important;
  }
}


/* ================================================================
   ARTICLE LINKS — clickable χωρίς υπογραμμίσεις
   Οι κάρτες είναι ολόκληρες <a>, αλλά κρατούν την εμφάνιση κάρτας.
   ================================================================ */
.article-card,
.article-card:link,
.article-card:visited,
.article-card:hover,
.article-card:active,
.article-card:focus,
.article-card *,
.featured-hero-inner,
.featured-hero-inner:link,
.featured-hero-inner:visited,
.featured-hero-inner:hover,
.featured-hero-inner:active,
.featured-hero-inner * {
  text-decoration: none !important;
}
.article-card,
.article-card:link,
.article-card:visited,
.article-card:hover,
.article-card:active {
  color: inherit;
}


/* ================================================================
   FINAL NAV FIX — ΟΛΑ ΤΑ ΟΝΟΜΑΤΑ ΚΑΤΗΓΟΡΙΩΝ ΣΕ ΜΙΑ ΓΡΑΜΜΗ
   Υπερισχύει όλων των παλιότερων media rules του stylesheet.
   ================================================================ */
.main-nav .nav-inner {
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
}
.main-nav .nav-link,
.main-nav .nav-link:link,
.main-nav .nav-link:visited {
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  line-height: 1.05 !important;
  min-width: 0 !important;
}
.main-nav .nav-link i {
  flex-shrink: 0 !important;
}

/* Παλιά/τετράγωνα monitor και tablet: μία μόνο οριζόντια σειρά. */
@media (min-width: 601px) and (max-width: 1280px) {
  .main-nav .nav-inner {
    display: grid !important;
    grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
    gap: 1px !important;
    padding: 3px 4px !important;
  }
  .main-nav .nav-link {
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    padding: 6px 1px !important;
    gap: 2px !important;
    font-size: clamp(.46rem, .66vw, .66rem) !important;
    letter-spacing: 0 !important;
  }
  .main-nav .nav-link i {
    width: 17px !important;
    height: 17px !important;
    flex: 0 0 17px !important;
    font-size: .60rem !important;
    border-radius: 5px !important;
  }
}

/* Πολύ στενές τετράγωνες/παλιές οθόνες: κρατάμε όλο το κείμενο σε μία σειρά
   και μικραίνουμε πρώτα το εικονίδιο/γραμματοσειρά, όχι το όνομα. */
@media (min-width: 601px) and (max-width: 900px) {
  .main-nav .nav-link {
    font-size: .43rem !important;
    gap: 1px !important;
    padding-inline: 0 !important;
  }
  .main-nav .nav-link i {
    width: 13px !important;
    height: 13px !important;
    flex-basis: 13px !important;
    font-size: .48rem !important;
  }
}

/* Στο hamburger των κινητών επίσης δεν σπάει κανένα όνομα σε 2 γραμμές. */
@media (max-width: 600px) {
  .main-nav .nav-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .main-nav .nav-link {
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    font-size: clamp(.60rem, 2.6vw, .74rem) !important;
  }
}


/* ============================================================
   2026-08-25 — Restore bold divider in Home min/max weather card
   ============================================================ */
@media (min-width: 561px) {
  .home-minmax-cols {
    position: relative !important;
  }
  .home-minmax-cols::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 2px !important;
    bottom: 2px !important;
    left: 50% !important;
    width: 3px !important;
    transform: translateX(-50%) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(47,155,199,.22), rgba(47,155,199,.78), rgba(47,155,199,.22)) !important;
    box-shadow: 0 0 9px rgba(47,155,199,.22) !important;
    pointer-events: none !important;
    z-index: 2 !important;
  }
}
@media (max-width: 560px) {
  .home-minmax-cols::after {
    display: none !important;
  }
}


/* ================================================================
   TASK 2026-08-25 — SEO semantic article / Weather Encyclopedia / self promo
   Scoped additions only; existing theme/layout rules remain intact.
   ================================================================ */
.single-article-header { display: block; }
.single-article-header h1 { margin-top: 10px; }
.single-article-figure { margin: 0 0 22px; }
.single-article-figure .single-cover { display: block; width: 100%; height: auto; }
.single-meta time { color: inherit; font: inherit; }

.weather-admin-subcategory {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(47, 155, 199, 0.06);
}
.weather-admin-subcategory label { display: block; margin-bottom: 7px; font-weight: 800; color: var(--primary); }
.weather-admin-subcategory select { width: 100%; min-height: 42px; }

.encyclopedia-kicker { color: #8ed6b6; }
.card-badge-encyclopedia { text-decoration: none; }
.card-badge-encyclopedia { color: #b8f2d7; border-color: rgba(96, 211, 157, .45); }
.weather-encyclopedia { border-top: 1px solid rgba(96, 211, 157, .20); padding-top: 8px; }

.weather-self-promo {
  position: relative;
  width: min(100%, 760px);
  margin: 22px auto 26px;
  border: 1px solid rgba(95, 186, 229, .28);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(5, 23, 42, .96), rgba(10, 38, 66, .94));
  box-shadow: 0 16px 45px rgba(0,0,0,.25);
}
.weather-self-promo-ad {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: 1.2px;
}
.weather-self-promo-link {
  display: grid;
  grid-template-columns: 116px minmax(0,1fr) 28px;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 14px 18px;
  text-decoration: none !important;
  transition: transform .18s ease, background .18s ease;
}
.weather-self-promo-link:hover,
.weather-self-promo-link:focus-visible { background: rgba(47,155,199,.09); outline: none; }
.weather-self-promo-link:focus-visible { box-shadow: inset 0 0 0 2px var(--primary); }
.weather-self-promo-link img {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.weather-self-promo-link span { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.weather-self-promo-link strong { font-size: clamp(1rem, 2vw, 1.35rem); color: #fff; }
.weather-self-promo-link em { font-style: normal; color: #b7d7e7; line-height: 1.4; }
.weather-self-promo-link > i { color: var(--primary); justify-self: end; }
@media (max-width: 620px) {
  .weather-self-promo-link { grid-template-columns: 84px minmax(0,1fr); gap: 12px; padding: 13px; }
  .weather-self-promo-link img { width: 84px; height: 84px; border-radius: 13px; }
  .weather-self-promo-link > i { display: none; }
  .weather-self-promo-ad { top: 6px; left: 6px; }
}

/* ================================================================
   TASK #2 — Google AdSense readiness (single loader / responsive slots)
   Existing internal promotional banners are intentionally untouched.
   ================================================================ */
[data-ad-slot] {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  clear: both;
  text-align: center;
}
[data-ad-slot].is-disabled {
  display: none !important;
}
[data-ad-slot].has-ad {
  display: block;
  margin: 18px auto;
  padding: 6px 0;
}
[data-ad-slot] ins.adsbygoogle {
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 700px) {
  [data-ad-slot].has-ad {
    margin: 12px auto;
    padding-inline: 0;
  }
}

/* ================================================================
   TASK #3 — Article video URL + weather/home final safeguards
   ================================================================ */
.admin-video-url-field {
  display: block;
  margin-top: 12px;
}
.admin-video-url-field .optional-label {
  color: var(--muted);
  font-weight: 600;
  font-size: .82em;
}
.admin-video-url-field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
}

/* Metadata-only marker stored in article.content. It never renders as video. */
.article-video-source {
  display: none !important;
}

.article-video-card {
  width: min(100%, 920px);
  margin: 22px auto 26px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(47,155,199,.28);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(8,27,45,.96), rgba(9,38,62,.92));
  box-shadow: 0 14px 38px rgba(0,0,0,.22);
  overflow: hidden;
}
.article-video-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.article-video-kicker {
  color: var(--primary);
  font-weight: 900;
  font-size: .72rem;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.article-video-card-copy strong {
  color: #fff;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}
.article-video-card-copy > span:last-child {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}
.article-video-load-btn {
  min-height: 46px;
  border: 1px solid rgba(47,155,199,.55);
  border-radius: 12px;
  padding: 10px 15px;
  background: rgba(47,155,199,.14);
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.article-video-load-btn:hover,
.article-video-load-btn:focus-visible {
  background: rgba(47,155,199,.25);
  border-color: var(--primary);
  transform: translateY(-1px);
  outline: none;
}
.article-video-card.is-loaded {
  display: block;
  padding: 12px;
}
.article-video-frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}
.article-video-card.is-vertical .article-video-frame-wrap {
  width: min(100%, 500px);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}
.article-video-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.article-video-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .76rem;
}
.article-video-actions a,
.article-video-fallback a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
}
.article-video-actions a:hover,
.article-video-fallback a:hover {
  text-decoration: underline;
}
.article-video-fallback {
  display: grid;
  gap: 8px;
  text-align: center;
  justify-items: center;
  padding: 18px;
}
.article-video-fallback > i {
  color: var(--primary);
  font-size: 1.4rem;
}

@media (max-width: 620px) {
  .article-video-card {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 12px;
  }
  .article-video-load-btn {
    width: 100%;
  }
  .article-video-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Task #3: η bold μπάρα της κάτω Home κάρτας παραμένει ενεργή σε
   desktop/tablet και κρύβεται μόνο όταν οι στήλες γίνονται stacked. */
@media (min-width: 561px) {
  .home-minmax-cols {
    position: relative !important;
  }
  .home-minmax-cols::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 2px !important;
    bottom: 2px !important;
    left: 50% !important;
    width: 3px !important;
    transform: translateX(-50%) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(47,155,199,.22), rgba(47,155,199,.82), rgba(47,155,199,.22)) !important;
    box-shadow: 0 0 10px rgba(47,155,199,.25) !important;
    pointer-events: none !important;
    z-index: 4 !important;
  }
}
@media (max-width: 560px) {
  .home-minmax-cols::after { display: none !important; }
}

/* ================================================================
   TASK #4 — inline movable video / weather grid / mobile alerts
   Final scoped overrides only.
   ================================================================ */

/* 2. Home heading: smaller blue–turquoise label. */
#home-heading.is-latest-news {
  color: #55d6d2 !important;
  font-size: clamp(.92rem, 1.35vw, 1.22rem) !important;
  letter-spacing: .95px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  line-height: 1.1 !important;
  margin-top: 5px !important;
}

/* 1. Video blocks behave like editor media and load automatically in article. */
.in-article-video {
  box-sizing: border-box;
  max-width: 100%;
  margin: 16px auto 20px;
  clear: both;
}
.in-article-video-body {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: visible;
  background: rgba(2, 12, 22, .7);
  border: 1px solid rgba(82, 190, 229, .22);
}
.in-article-video-preview,
.article-content .article-video-frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}
.in-article-video-preview.is-vertical,
.article-content .article-video-frame-wrap.is-vertical {
  width: min(100%, 500px);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}
.in-article-video-preview iframe,
.article-content .article-video-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.in-article-video-preview-fallback {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 7px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  border-radius: 12px;
}
.in-article-video-handle,
.in-article-video-remove {
  position: absolute;
  z-index: 8;
  top: 9px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  background: rgba(2, 11, 20, .88);
  box-shadow: 0 5px 16px rgba(0,0,0,.28);
}
.in-article-video-handle { left: 9px; cursor: grab; }
.in-article-video-remove { right: 9px; cursor: pointer; }
.in-article-video-toolbar {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 6px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(3, 16, 28, .96);
  border: 1px solid rgba(82,190,229,.2);
}
.in-article-video-toolbar button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.in-article-video-toolbar button:hover,
.in-article-video-toolbar button.active {
  background: rgba(47,155,199,.22);
  color: #fff;
}
.in-article-video-toolbar-sep {
  width: 1px;
  align-self: stretch;
  margin: 4px 2px;
  background: rgba(255,255,255,.14);
}
.in-article-video.video-align-left {
  float: left;
  margin: 8px 20px 16px 0;
  max-width: 58%;
}
.in-article-video.video-align-right {
  float: right;
  margin: 8px 0 16px 20px;
  max-width: 58%;
}
.article-content .in-article-video-toolbar,
.article-content .in-article-video-handle,
.article-content .in-article-video-remove {
  display: none !important;
}
.article-content .in-article-video {
  border-radius: 14px;
}
.article-content .article-video-actions {
  margin-top: 7px;
  padding: 0 2px;
}
@media (max-width: 640px) {
  .in-article-video.video-align-left,
  .in-article-video.video-align-right {
    float: none;
    width: 100% !important;
    max-width: 100%;
    margin: 14px 0;
  }
  .in-article-video-toolbar button {
    flex: 1 1 auto;
    padding-inline: 7px;
    font-size: .66rem;
  }
}

/* 4. Uniform square-like four-day grid in both permanent and selected cards. */
.weather-athens-featured-body .weather-four-day,
.weather-quick-result .weather-four-day {
  width: min(100%, 840px) !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: 1fr !important;
  align-items: stretch !important;
  gap: 9px !important;
}
.weather-athens-featured-body .weather-day-card,
.weather-quick-result .weather-day-card {
  box-sizing: border-box !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  align-self: stretch !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) !important;
  align-content: start !important;
  padding: 9px !important;
  gap: 5px !important;
}
.weather-athens-featured-body .weather-phases,
.weather-quick-result .weather-phases {
  min-height: 0 !important;
}
.weather-athens-featured-body .weather-metrics,
.weather-quick-result .weather-metrics {
  min-height: 0 !important;
  overflow: hidden !important;
  align-content: start !important;
}
@media (max-width: 700px) {
  .weather-athens-featured-body .weather-four-day,
  .weather-quick-result .weather-four-day {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .weather-athens-featured-body .weather-day-card,
  .weather-quick-result .weather-day-card {
    padding: 8px !important;
  }
}
@media (max-width: 360px) {
  .weather-athens-featured-body .weather-four-day,
  .weather-quick-result .weather-four-day {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .weather-athens-featured-body .weather-day-card,
  .weather-quick-result .weather-day-card {
    padding: 7px !important;
  }
  .weather-athens-featured-body .weather-metrics span,
  .weather-quick-result .weather-metrics span,
  .weather-athens-featured-body .weather-metrics b,
  .weather-quick-result .weather-metrics b {
    font-size: .47rem !important;
  }
}

/* 5. Full alert editor controls. */
.alert-active-editor {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(47,155,199,.06);
  font-weight: 800;
}
.alert-active-editor input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* 6. Mobile only: alert permanently under the site title, carousel with arrows,
   then hamburger/menu below it. Nothing overlaps the title or the alert. */
@media (max-width: 600px) {
  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 2800 !important;
    overflow: visible !important;
  }
  .site-header > .site-alert-bar {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    width: 100% !important;
    z-index: 2820 !important;
    flex: 0 0 auto;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .site-alert-mobile-carousel {
    min-height: 46px;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 42px;
    align-items: center;
    width: 100%;
    box-shadow: 0 6px 18px rgba(0,0,0,.28);
  }
  .site-alert-mobile-carousel.yellow { background: rgba(184, 126, 5, .98); }
  .site-alert-mobile-carousel.orange { background: rgba(218, 79, 7, .98); }
  .site-alert-mobile-carousel.red { background: rgba(198, 30, 48, .99); }
  .site-alert-mobile-carousel.single {
    grid-template-columns: minmax(0,1fr);
  }
  .site-alert-mobile-message {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 5px;
    color: #fff;
    text-align: center;
    font-size: clamp(.72rem, 3vw, .86rem);
    font-weight: 900;
    line-height: 1.2;
  }
  .site-alert-mobile-message span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .site-alert-mobile-message small {
    font-size: .62rem;
    opacity: .78;
    white-space: nowrap;
  }
  .site-alert-nav {
    width: 36px !important;
    height: 36px !important;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,.28) !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    background: rgba(0,0,0,.16) !important;
    color: #fff !important;
    touch-action: manipulation;
  }
  .site-alert-nav:active { transform: scale(.94); }

  .hamburger-btn {
    top: calc(var(--mobile-header-stack-height, 170px) + 7px) !important;
    z-index: 2910 !important;
  }
  .main-nav {
    top: calc(var(--mobile-header-stack-height, 170px) + 56px) !important;
    z-index: 2890 !important;
  }
  .main-nav.open {
    max-height: calc(100vh - var(--mobile-header-stack-height, 170px) - 64px) !important;
  }
}


/* ================================================================
   TASK #5 — requested UI refinements
   ================================================================ */

/* Category/subcategory titles: unified blue-turquoise accent and a little larger. */
.view-section > .section-heading h1,
.view-section > .section-heading h2,
.subsection-heading h2,
.weather-subsection-heading h2,
.home-secondary-news .section-heading h2 {
  color: #55d8d1 !important;
  font-size: clamp(1.55rem, 2.45vw, 2.35rem) !important;
  letter-spacing: -.35px;
  text-shadow: 0 0 18px rgba(85,216,209,.10);
}
.weather-subsection-heading h2 { font-size: clamp(1.35rem, 2vw, 1.85rem) !important; }
#home-heading.is-latest-news {
  color: #55d8d1 !important;
  font-size: clamp(.92rem, 1.35vw, 1.22rem) !important;
}

/* One category badge outside, consistent category color outside and inside articles. */
.article-card .card-cats { display: none !important; }
.card-badge,
.card-badge-meteonews,
.card-badge-encyclopedia,
.cat-pill,
.cat-pill-meteonews,
.single-meta,
.single-meta span,
.single-meta a,
.weather-subcat-kicker,
.meteonews-kicker,
.encyclopedia-kicker {
  color: #69ddd8 !important;
  border-color: rgba(105,221,216,.38) !important;
}
.card-badge,
.card-badge-meteonews,
.card-badge-encyclopedia {
  background: rgba(3,24,37,.91) !important;
  box-shadow: 0 5px 16px rgba(0,0,0,.22);
}
.weather-subcat-kicker,
.meteonews-kicker,
.encyclopedia-kicker,
.cat-pill,
.cat-pill-meteonews { background: rgba(82,207,203,.09) !important; }
.single-meta { font-weight: 800; }

/* Contact admin: editable display title + URL per external social link. */
.contact-links-admin {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch !important;
}
.contact-link-editor {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.contact-link-editor label { margin: 0 !important; }
@media (max-width: 860px) { .contact-links-admin { grid-template-columns: 1fr !important; } }

/* Geographic selector plus PoliSector AD in the previously unused right side. */
.weather-quick-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 285px);
  gap: 14px;
  align-items: stretch;
}
.weather-quick-selector { min-width: 0; }
.weather-polissector-ad {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(85,216,209,.28);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(8,29,47,.96), rgba(10,16,35,.98));
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
}
.weather-polissector-ad > a {
  height: 100%;
  min-height: 190px;
  display: grid;
  grid-template-rows: minmax(105px, 1fr) auto auto;
  align-content: stretch;
  gap: 5px;
  padding: 10px;
  color: #eefcff;
  text-decoration: none !important;
  text-align: center;
  transition: transform .18s ease, background .18s ease;
}
.weather-polissector-ad > a:hover,
.weather-polissector-ad > a:focus-visible {
  background: rgba(85,216,209,.06);
  transform: translateY(-1px);
  outline: none;
}
.weather-polissector-ad img {
  width: 100%;
  height: 100%;
  min-height: 105px;
  max-height: 175px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}
.weather-polissector-ad strong {
  color: #69ddd8;
  font-family: var(--font-century), "Century Gothic", sans-serif;
  font-size: 1rem;
}
.weather-polissector-ad > a > span:not(.weather-polissector-ad-label) {
  color: #d9eaf1;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.25;
}
.weather-polissector-ad > a > i {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: rgba(255,255,255,.58);
  font-size: .72rem;
}
.weather-polissector-ad-label {
  position: absolute;
  z-index: 3;
  top: 9px;
  left: 9px;
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .7px;
}
@media (max-width: 820px) {
  .weather-quick-top-grid { grid-template-columns: 1fr; }
  .weather-polissector-ad > a {
    min-height: 0;
    grid-template-columns: 112px minmax(0,1fr);
    grid-template-rows: auto auto;
    text-align: left;
    align-items: center;
  }
  .weather-polissector-ad img {
    grid-row: 1 / 3;
    height: 92px;
    min-height: 92px;
    max-height: 92px;
  }
}

/* Forecast geometry:
   Permanent Athens/Thessaloniki = 4 large cards in 2x2.
   Selected region = 4 cards in one row; on phones the row scrolls inside the component. */
.weather-athens-featured-body .weather-four-day {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  align-items: stretch !important;
  gap: 12px !important;
  overflow: visible !important;
}
.weather-athens-featured-body .weather-day-card {
  width: 100% !important;
  min-height: 220px !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
  align-self: stretch !important;
  padding: 13px !important;
  gap: 8px !important;
  grid-template-rows: auto auto auto 1fr !important;
}
.weather-quick-result { overflow: hidden !important; }
.weather-quick-result .weather-four-day {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(175px, 1fr)) !important;
  grid-auto-flow: row !important;
  align-items: stretch !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  padding: 2px 2px 8px !important;
}
.weather-quick-result .weather-day-card {
  width: 100% !important;
  min-width: 175px !important;
  min-height: 218px !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
  align-self: stretch !important;
  padding: 12px !important;
  gap: 7px !important;
  grid-template-rows: auto auto auto 1fr !important;
}
.weather-athens-featured-body .weather-metrics span,
.weather-quick-result .weather-metrics span {
  display: grid;
  grid-template-columns: 17px minmax(0,1fr) auto;
  align-items: center;
  gap: 5px;
  min-height: 21px;
}
.weather-athens-featured-body .weather-metrics b,
.weather-quick-result .weather-metrics b {
  float: none !important;
  text-align: right;
  white-space: nowrap;
}
.weather-athens-featured-body .weather-phases .weather-icon,
.weather-quick-result .weather-phases .weather-icon {
  width: 43px !important;
  height: 43px !important;
}
@media (max-width: 700px) {
  .weather-athens-featured-body .weather-four-day {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .weather-athens-featured-body .weather-day-card {
    min-height: 205px !important;
    padding: 9px !important;
  }
  .weather-quick-result .weather-four-day {
    grid-template-columns: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(180px, 72vw) !important;
  }
  .weather-quick-result .weather-day-card {
    min-width: 0 !important;
    min-height: 215px !important;
  }
}
@media (max-width: 380px) {
  .weather-athens-featured-body .weather-day-card {
    min-height: 198px !important;
    padding: 7px !important;
  }
  .weather-athens-featured-body .weather-metrics,
  .weather-quick-result .weather-metrics { font-size: .59rem !important; }
  .weather-athens-featured-body .weather-metrics span,
  .weather-quick-result .weather-metrics span { gap: 3px; }
}

/* Network palette/background refresh. */
body.theme-network {
  --primary: #55d8d1;
  --primary-2: #2fa4c9;
  --primary-soft: rgba(85,216,209,.13);
  --bg: #020b14;
  --bg-2: #062338;
  --panel: rgba(5,24,38,.91);
  --card: #082438;
  --card-2: #0b3148;
  --border: rgba(85,216,209,.20);
  --text: #eefcff;
  --muted: #96b6c2;
  background: radial-gradient(circle at 12% 8%, rgba(39,184,195,.18), transparent 27%), radial-gradient(circle at 86% 18%, rgba(43,113,171,.18), transparent 34%), linear-gradient(155deg, #010912, #052338 50%, #02101b) !important;
}
body.theme-network .site-header,
body.theme-network .main-nav {
  background: rgba(2,15,26,.94) !important;
  border-color: rgba(85,216,209,.20) !important;
}
body.theme-network .article-card,
body.theme-network .weather-sidebar,
body.theme-network .weather-athens-featured,
body.theme-network .weather-quick-panel,
body.theme-network .home-minmax-day {
  border-color: rgba(85,216,209,.18) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.24), 0 0 24px rgba(85,216,209,.025);
}

/* Storm palette/background refresh. */
body.theme-storm {
  --primary: #75d7ff;
  --primary-2: #718cff;
  --primary-soft: rgba(117,215,255,.13);
  --bg: #050815;
  --bg-2: #111e37;
  --panel: rgba(10,18,39,.92);
  --card: #101d38;
  --card-2: #172949;
  --border: rgba(117,215,255,.22);
  --text: #f0f8ff;
  --muted: #a8bad1;
  background: radial-gradient(circle at 18% 6%, rgba(94,111,194,.24), transparent 27%), radial-gradient(circle at 80% 22%, rgba(47,104,159,.21), transparent 36%), linear-gradient(160deg, #040611, #101b34 52%, #030610) !important;
}
body.theme-storm .site-header,
body.theme-storm .main-nav {
  background: rgba(5,9,22,.92) !important;
  border-color: rgba(117,215,255,.22) !important;
}
body.theme-storm .article-card,
body.theme-storm .weather-sidebar,
body.theme-storm .weather-athens-featured,
body.theme-storm .weather-quick-panel,
body.theme-storm .home-minmax-day {
  box-shadow: 0 16px 40px rgba(0,0,0,.32), 0 0 28px rgba(91,143,230,.035);
}

/* ================================================================
   TASK #6 — category typography, lower badges, weather rail + map lock
   ================================================================ */

/* All PUBLIC category/subcategory titles use the exact typography and
   size of the Home "ΤΕΛΕΥΤΑΙΑ ΝΕΑ" heading. Admin/dialog titles are untouched. */
#home-heading,
#view-weather-cat > .section-heading h1,
#view-live > .section-heading h1,
.weather-subsection-heading h2,
.home-secondary-news .section-heading h2 {
  font-family: var(--font-century), "Century Gothic", Georgia, serif !important;
  font-size: clamp(.92rem, 1.35vw, 1.22rem) !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: .12px !important;
  color: #55d8d1 !important;
  text-shadow: 0 0 16px rgba(85,216,209,.09) !important;
}

/* Article-list category badge: second/lower position, never on the image. */
.article-card .card-image .card-badge { display: none !important; }
.article-card .card-badge-row {
  margin-top: auto;
  padding-top: 7px;
  display: flex;
  align-items: center;
  min-width: 0;
}
.article-card .card-badge-row .card-badge,
.article-card .card-badge-row .card-badge-meteonews,
.article-card .card-badge-row .card-badge-encyclopedia {
  position: static !important;
  inset: auto !important;
  display: inline-flex !important;
  align-items: center;
  max-width: 100%;
  width: fit-content;
  min-height: 25px;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  font-size: .64rem !important;
  font-weight: 900 !important;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #69ddd8 !important;
  background: rgba(3,24,37,.91) !important;
  border: 1px solid rgba(105,221,216,.38) !important;
  box-shadow: none !important;
}

/* Geographic selector: right rail follows the exact height of the expanding
   region/city selector. It contains the adaptive PoliSector creative + info tile. */
.weather-quick-top-grid {
  grid-template-columns: minmax(0, 1fr) minmax(225px, 300px) !important;
  align-items: stretch !important;
}
.weather-quick-side-rail {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1.45fr) minmax(92px, .75fr);
  gap: 12px;
  align-self: stretch;
}
.weather-polissector-ad {
  min-height: 0 !important;
  height: 100%;
}
.weather-polissector-ad > a {
  position: relative;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  padding: 8px !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  align-items: stretch !important;
  overflow: hidden;
}
.weather-polissector-ad img {
  grid-row: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 10px;
  background: #050b18;
}
.weather-polissector-copy {
  display: grid;
  gap: 2px;
  align-content: center;
  min-width: 0;
  padding: 2px 20px 2px 2px;
}
.weather-polissector-copy strong {
  color: #69ddd8;
  font-family: var(--font-century), "Century Gothic", sans-serif;
  font-size: .94rem;
}
.weather-polissector-copy span {
  color: #d9eaf1;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.25;
}
.weather-quick-info-card {
  min-width: 0;
  height: 100%;
  padding: clamp(12px, 1.5vw, 18px);
  border: 1px solid rgba(85,216,209,.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 85% 15%, rgba(85,216,209,.13), transparent 35%),
    linear-gradient(150deg, rgba(6,28,45,.97), rgba(8,20,35,.98));
  box-shadow: 0 12px 28px rgba(0,0,0,.20);
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  justify-content: center;
  gap: 11px;
  overflow: hidden;
}
.weather-quick-info-card > i {
  color: #69ddd8;
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  filter: drop-shadow(0 0 12px rgba(105,221,216,.13));
}
.weather-quick-info-card > strong {
  min-width: 0;
  color: #edfaff;
  font-family: var(--font-century), "Century Gothic", sans-serif;
  font-size: clamp(.78rem, 1.15vw, .98rem);
  line-height: 1.32;
}

/* Windy: freeze the actual map interaction (no pan/zoom/clicks) while leaving
   a clear interactive strip at the bottom for its time bar. */
.weather-windy-embed {
  position: relative !important;
  isolation: isolate;
}
.weather-windy-embed iframe {
  position: relative;
  z-index: 1;
}
.weather-windy-interaction-lock {
  position: absolute;
  z-index: 4;
  inset: 0 0 64px 0;
  background: transparent;
  pointer-events: auto;
  cursor: default;
  touch-action: pan-y;
  user-select: none;
}
.weather-windy-embed::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(105,221,216,.4), transparent);
  pointer-events: none;
}

@media (max-width: 820px) {
  .weather-quick-top-grid { grid-template-columns: 1fr !important; }
  .weather-quick-side-rail {
    height: auto;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
    grid-template-rows: minmax(150px, auto);
  }
  .weather-polissector-ad > a {
    min-height: 150px !important;
    grid-template-columns: minmax(105px, .72fr) minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
  }
  .weather-polissector-ad img {
    height: 100% !important;
    min-height: 125px !important;
  }
  .weather-polissector-copy { padding: 8px 15px 8px 2px; }
}
@media (max-width: 540px) {
  .weather-quick-side-rail {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .weather-polissector-ad > a {
    min-height: 0 !important;
    grid-template-columns: 118px minmax(0,1fr) !important;
    grid-template-rows: 118px !important;
  }
  .weather-polissector-ad img { min-height: 0 !important; height: 110px !important; }
  .weather-quick-info-card { min-height: 92px; }
  .weather-windy-interaction-lock { bottom: 58px; }
  .weather-windy-embed::before { bottom: 58px; }
}


/* ========================================================================
   TASK 6 — GEOGRAPHIC SELECTOR LAYOUT FIX
   The informational weather tile belongs INSIDE the geographic choices box,
   filling the unused row space. The PoliSector AD remains the only right rail
   element and stretches with the selector/city list as it opens/closes.
   ======================================================================== */
.weather-quick-top-grid {
  grid-template-columns: minmax(0, 1fr) minmax(225px, 300px) !important;
  gap: 12px !important;
  align-items: stretch !important;
}

.weather-quick-selector {
  min-width: 0;
  align-self: start;
}

.weather-quick-regions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  align-content: flex-start !important;
  gap: 8px !important;
}

/* Same blue region surface, but this tile expands into the leftover width
   of the last row instead of sitting below the PoliSector advertisement. */
.weather-quick-inline-info {
  flex: 1 1 320px;
  min-width: min(320px, 100%);
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid rgba(105, 221, 216, .42);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(12, 111, 157, .82), rgba(14, 129, 179, .72));
  color: #eefcff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.weather-quick-inline-info > i {
  flex: 0 0 auto;
  color: #6ce7df;
  font-size: 1rem;
}
.weather-quick-inline-info > strong {
  min-width: 0;
  font-family: var(--font-century), "Century Gothic", sans-serif;
  font-size: .75rem;
  font-weight: 900;
  white-space: normal;
}

/* The right side now contains ONLY the PoliSector ad. Its height follows the
   full selector column, including the cities when a geographic area opens. */
.weather-quick-side-rail {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  display: block !important;
  align-self: stretch !important;
}
.weather-polissector-ad {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}
.weather-polissector-ad > a {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 7px !important;
  align-items: stretch !important;
  padding: 8px !important;
}
.weather-polissector-ad img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #050b18;
  border-radius: 10px;
}
.weather-polissector-copy {
  padding: 3px 20px 3px 2px !important;
}

/* The old right-rail tile no longer exists. Keep this defensive rule in case
   a stale cached HTML copy is briefly served during deployment. */
.weather-quick-side-rail > .weather-quick-info-card {
  display: none !important;
}

@media (max-width: 820px) {
  .weather-quick-top-grid {
    grid-template-columns: 1fr !important;
  }
  .weather-quick-side-rail {
    height: auto !important;
  }
  .weather-polissector-ad > a {
    min-height: 180px !important;
    grid-template-columns: minmax(120px, .72fr) minmax(0, 1fr) !important;
    grid-template-rows: 180px !important;
    align-items: center !important;
  }
  .weather-polissector-ad img {
    height: 164px !important;
  }
  .weather-quick-inline-info {
    flex-basis: 260px;
    min-width: min(260px, 100%);
  }
}

@media (max-width: 560px) {
  .weather-quick-inline-info {
    flex: 1 1 100%;
    width: 100%;
    min-width: 100%;
    border-radius: 12px;
    min-height: 48px;
    padding: 9px 12px;
  }
  .weather-polissector-ad > a {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    grid-template-rows: 118px !important;
    min-height: 0 !important;
  }
  .weather-polissector-ad img {
    width: 106px !important;
    height: 106px !important;
  }
}

/* ========================================================================
   TASK 6 — FINAL SELECTOR HEIGHT FIX
   The geographic selector defines the row height. The PoliSector ad is taken
   out of normal flow and fills exactly that height, so no blank area can remain
   below the geographic choices when the selector is closed. When cities open,
   the selector gets taller and the ad automatically grows with it.
   ======================================================================== */
@media (min-width: 821px) {
  .weather-quick-top-grid {
    align-items: stretch !important;
  }

  .weather-quick-selector {
    align-self: start !important;
    min-height: 0 !important;
  }

  .weather-quick-side-rail {
    position: relative !important;
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  /* Absolute positioning prevents the ad's natural image/text height from
     making the whole grid row taller than the region selector. */
  .weather-polissector-ad {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .weather-polissector-ad > a {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    display: block !important;
    overflow: hidden !important;
    border-radius: inherit !important;
    background: #050b18 !important;
  }

  /* The visual fills the card and scales automatically as the region/city
     selector opens or closes. */
  .weather-polissector-ad img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: inherit !important;
    background: #050b18 !important;
  }

  .weather-polissector-ad > a::after {
    content: "";
    position: absolute;
    inset: 42% 0 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(2,8,18,.90) 78%);
    pointer-events: none;
  }

  .weather-polissector-copy {
    position: absolute !important;
    z-index: 2 !important;
    left: 10px !important;
    right: 30px !important;
    bottom: 8px !important;
    padding: 0 !important;
    gap: 0 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.95);
  }

  .weather-polissector-copy strong {
    font-size: clamp(.72rem, .9vw, .9rem) !important;
    line-height: 1.1 !important;
  }

  .weather-polissector-copy span {
    font-size: clamp(.60rem, .72vw, .72rem) !important;
    line-height: 1.12 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .weather-polissector-ad > a > .fa-arrow-up-right-from-square {
    position: absolute !important;
    z-index: 3 !important;
    right: 9px !important;
    bottom: 9px !important;
  }
}


/* TASK 6 layout fix 3 — clickable weather guide tile */
.weather-quick-inline-info {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, filter .16s ease, box-shadow .16s ease;
}
.weather-quick-inline-info:hover {
  transform: translateY(-1px);
  border-color: rgba(108, 231, 223, .78);
  filter: brightness(1.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 7px 20px rgba(0,0,0,.16);
}
.weather-quick-inline-info:focus-visible {
  outline: 2px solid #6ce7df;
  outline-offset: 2px;
}


/* ======================================================================
   TASK #7 — Weather phases, ads, editor resilience & admin polish
   ====================================================================== */

/* Category links remain links without browser underlines. */
.main-nav .nav-link,
.main-nav .nav-link:hover,
.main-nav .nav-link:focus,
.weather-subcategory-nav a,
.weather-subcategory-nav a:hover,
.cat-pill,
.card-badge,
.category-link { text-decoration: none !important; }

/* Three weather periods: Morning / Midday / Night. */
.weather-phases.weather-phases-three {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 5px !important;
  align-items: stretch !important;
}
.weather-phases-three .weather-phase {
  min-width: 0;
  display: grid !important;
  grid-template-rows: auto 50px auto;
  justify-items: center;
  align-items: center;
  gap: 2px;
  padding: 5px 3px 6px;
  border-radius: 9px;
  background: rgba(25, 75, 111, .38);
  border: 1px solid rgba(86, 190, 203, .08);
}
.weather-phases-three .weather-phase-midday {
  background: linear-gradient(180deg, rgba(37, 102, 134, .46), rgba(28, 78, 111, .42));
  border-color: rgba(105, 221, 216, .16);
}
.weather-phases-three small { color: #a9c9d8 !important; font-size: .60rem !important; }
.weather-phases-three b { color:#fff; font-size:.77rem; line-height:1; }
.weather-phase-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 50px;
}
.weather-phase-visual > .weather-icon { width: 46px !important; height: 46px !important; }
.weather-event-probability {
  position: absolute;
  z-index: 5;
  right: -4px;
  top: -3px;
  min-width: 24px;
  padding: 2px 3px;
  border-radius: 6px;
  background: rgba(2,12,22,.88);
  border: 1px solid rgba(126,231,231,.28);
  color: #eaffff;
  font-size: .48rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}
.weather-event-symbol {
  position: absolute;
  z-index: 4;
  left: -3px;
  bottom: 1px;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px 3px;
  border-radius: 999px;
  background: rgba(1,12,24,.82);
  font-size: .50rem;
}
.weather-event-symbol.rain { color:#56c9ff; }
.weather-event-symbol.snow { color:#eefaff; }
.weather-event-symbol.thunder { color:#ffd24c; font-size:.62rem; }
.weather-condition.weather-condition-bar {
  min-height: 18px !important;
  height: 18px !important;
  border-radius: 7px !important;
  background: linear-gradient(90deg, rgba(43,145,154,.26), rgba(39,116,132,.32), rgba(43,145,154,.26)) !important;
  border: 1px solid rgba(104,219,211,.09) !important;
  color: transparent !important;
  overflow: hidden !important;
}
.weather-athens-featured-body .weather-day-card { min-height: 252px !important; }
.weather-quick-result .weather-day-card { min-height: 248px !important; min-width: 188px !important; }
@media (max-width: 700px) {
  .weather-athens-featured-body .weather-day-card { min-height: 238px !important; }
  .weather-quick-result .weather-day-card { min-height: 244px !important; }
  .weather-phases-three .weather-phase { padding-inline: 2px; }
  .weather-phase-visual { width: 46px; }
  .weather-phase-visual > .weather-icon { width: 42px !important; height: 42px !important; }
}

/* Max/min panel inside Weather category, directly under permanent forecasts. */
.weather-cat-minmax-section { margin: 24px 0 28px; }
.weather-cat-minmax-section .weather-subsection-heading { margin-bottom: 12px; }
.weather-cat-minmax-panel { width:100%; }

/* Internal-ad ↗ indicators. PoliSector and Thavma already contain one explicitly. */
.weather-quick-petcorner,
.weather-partner-card { position: relative; }
.weather-quick-petcorner::after,
.weather-partner-card::after {
  content: "↗";
  position: absolute;
  z-index: 5;
  right: 9px;
  top: 8px;
  width: 25px;
  height: 25px;
  display:grid;
  place-items:center;
  border-radius: 8px;
  background: rgba(2,10,20,.78);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  font-weight:900;
  line-height:1;
}

/* ThavmaForecast left, same width family as Xalazi; right column reserved for Google. */
.weather-promo-google-row {
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  align-items: stretch;
  margin: 16px 0 22px;
}
.weather-promo-left { min-width:0; }
.weather-promo-left .weather-self-promo { height:100%; margin:0 !important; }
.weather-promo-left .weather-self-promo-link { min-height: 132px; height:100%; }
.weather-google-ad-reserve {
  min-width:0;
  min-height:132px;
  position:relative;
  border:0;
  border-radius:14px;
  background:transparent;
  overflow:hidden;
}
/* Κενός χώρος δίπλα στο ThavmaForecast: κανένα placeholder/AD πλαίσιο.
   Αν αργότερα ενεργοποιηθεί πραγματικό Google ad unit, το slot παραμένει διαθέσιμο. */
.weather-google-ad-reserve > [data-ad-slot] { min-height:132px; width:100%; }
@media (max-width: 700px) {
  .weather-promo-google-row { grid-template-columns:1fr; }
  .weather-google-ad-reserve { display:none; }
}

/* Dynamic video aspect ratios + a clear video/play indicator. */
.in-article-video-preview,
.article-content .article-video-frame-wrap,
.article-video-frame-wrap {
  position:relative;
  width:100%;
  aspect-ratio: var(--video-aspect, 16/9) !important;
  height:auto !important;
  max-height:none !important;
}
.article-video-frame-wrap[style*="9/16"],
.in-article-video-preview[style*="9/16"] { width:min(100%, 520px); margin-inline:auto; }
.article-video-frame-wrap[style*="1/1"],
.in-article-video-preview[style*="1/1"] { width:min(100%, 680px); margin-inline:auto; }
.article-video-play-marker {
  position:absolute;
  z-index:4;
  left:10px;
  top:10px;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#fff;
  background:rgba(2,10,18,.70);
  border:1px solid rgba(255,255,255,.32);
  box-shadow:0 6px 18px rgba(0,0,0,.32);
  pointer-events:none;
  font-size:1.42rem;
}
.video-ratio-control {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:0 6px;
  color:var(--muted);
  font-size:.65rem;
  font-weight:800;
}
.video-ratio-control select {
  min-height:27px;
  padding:2px 5px;
  border-radius:6px;
  border:1px solid rgba(82,190,229,.22);
  background:#071a2b;
  color:#fff;
  font-size:.65rem;
}

/* Cleaner, organized Add News panel without altering data flow. */
#article-form {
  display:grid;
  gap:14px;
}
.admin-form-section-title {
  margin-top:5px;
  display:flex;
  align-items:center;
  gap:9px;
  min-height:40px;
  padding:9px 13px;
  border-radius:12px;
  color:#72e1dc;
  background:linear-gradient(90deg, rgba(34,126,151,.18), rgba(7,28,45,.42));
  border:1px solid rgba(105,221,216,.16);
  font-family:var(--font-century), "Century Gothic", sans-serif;
  font-size:.84rem;
  font-weight:900;
  letter-spacing:.35px;
}
#article-form > .form-row,
#article-form > .admin-media-tools,
#article-form > .admin-image-preview,
#article-form > .category-fieldset,
#article-form > .featured-row,
#article-form > label {
  border-radius:14px;
}
#article-form > .form-row,
#article-form > .admin-media-tools,
#article-form > .category-fieldset,
#article-form > .featured-row {
  padding:14px;
  background:linear-gradient(160deg, rgba(9,34,54,.72), rgba(5,23,38,.78));
  border:1px solid rgba(82,190,229,.14);
  box-shadow:0 8px 28px rgba(0,0,0,.10);
}
#article-form .rich-editor-area { min-height:360px; border-radius:0 0 12px 12px; }
#article-form .editor-toolbar:first-child { border-radius:12px 12px 0 0; }
#article-form .editor-toolbar-media { background:rgba(8,31,50,.94); }
#article-form .admin-submit-row {
  position:sticky;
  bottom:8px;
  z-index:12;
  padding:10px;
  border:1px solid rgba(82,190,229,.18);
  border-radius:14px;
  background:rgba(3,16,27,.92);
  backdrop-filter:blur(10px);
}
@media (max-width:700px) {
  #article-form > .form-row { padding:10px; }
  #article-form .rich-editor-area { min-height:300px; }
  .admin-form-section-title { font-size:.76rem; }
}


/* ================================================================
   VIDEO EDITOR FIT — manual width + drag resize + fit-to-text
   ================================================================ */
.in-article-video-body { overflow: visible !important; }
.in-article-video { position: relative; }
.in-article-video-resize {
  position:absolute;
  z-index:12;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#73e5df;
  border:2px solid #05243a;
  box-shadow:0 0 0 1px rgba(255,255,255,.4),0 3px 10px rgba(0,0,0,.35);
  opacity:.9;
}
.in-article-video-resize-nw{left:-7px;top:-7px;cursor:nwse-resize}
.in-article-video-resize-ne{right:-7px;top:-7px;cursor:nesw-resize}
.in-article-video-resize-sw{left:-7px;bottom:-7px;cursor:nesw-resize}
.in-article-video-resize-se{right:-7px;bottom:-7px;cursor:nwse-resize}
.article-content .in-article-video-resize{display:none!important}

.video-width-control {
  display:inline-grid;
  grid-template-columns:auto minmax(92px,150px) 42px;
  align-items:center;
  gap:7px;
  min-height:32px;
  padding:0 8px;
  color:var(--muted);
  font-size:.68rem;
  font-weight:850;
  white-space:nowrap;
}
.video-width-control input[type="range"]{
  width:100%;
  accent-color:#58ddd4;
  cursor:ew-resize;
}
.video-width-control output{
  min-width:40px;
  text-align:right;
  color:#dffcff;
  font-weight:900;
}
.video-fit-text-btn{
  background:rgba(88,221,212,.10)!important;
  color:#baf8f3!important;
  border:1px solid rgba(88,221,212,.22)!important;
}
.video-fit-text-btn:hover,
.video-fit-text-btn:focus-visible{
  background:rgba(88,221,212,.20)!important;
  color:#fff!important;
}
.in-article-video.video-align-left,
.in-article-video.video-align-right{
  min-width:18%;
}
@media (max-width:760px){
  .video-width-control{grid-template-columns:auto minmax(75px,1fr) 38px;flex:1 1 100%;}
  .video-fit-text-btn{flex:1 1 auto!important;}
  .in-article-video-resize{display:none;}
}


/* ================================================================
   AI IMAGE / THUMBNAIL GENERATOR — upgraded UI overrides
   ================================================================ */
.ai-thumb-modal-box {
  max-width: 760px;
}
.ai-thumb-desc {
  font-size: 0.95rem;
}
.ai-thumb-option-wide {
  grid-column: 1 / -1;
}
.ai-thumb-option input[type="text"],
.ai-thumb-option select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.88rem;
}
.ai-thumb-option input[type="text"]::placeholder {
  color: #8fb2c1;
}
.ai-thumb-option input[type="text"]:focus,
.ai-thumb-option select:focus {
  outline: none;
  border-color: #33d8e6;
  box-shadow: 0 0 0 3px rgba(51, 216, 230, 0.16);
}
.ai-thumb-option select option {
  background: #0b2032;
  color: #edf8ff;
}
.ai-thumb-option small {
  font-size: 0.74rem;
  color: #86a9b8;
  line-height: 1.45;
}
.ai-thumb-option.is-disabled,
#ai-thumb-exact-title-wrap.is-disabled {
  opacity: 0.55;
}
.ai-thumb-upload-card {
  margin: 14px 0 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(51, 216, 230, 0.18);
  background: linear-gradient(180deg, rgba(8, 30, 46, 0.92), rgba(6, 22, 36, 0.88));
}
.ai-thumb-upload-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.ai-thumb-upload-head strong {
  color: #e9fcff;
  font-size: 0.9rem;
}
.ai-thumb-upload-head span {
  color: #8fb2c1;
  font-size: 0.8rem;
  line-height: 1.45;
}
.ai-thumb-upload-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.ai-thumb-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(51, 216, 230, 0.22);
  background: linear-gradient(135deg, rgba(27, 176, 220, 0.22), rgba(76, 29, 149, 0.18));
  color: #f2fbff;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}
.ai-thumb-upload-btn:hover {
  filter: brightness(1.08);
}
.ai-thumb-mode-badge {
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cfeaf5;
}
.ai-thumb-mode-badge.is-edit {
  color: #0b1622;
  background: linear-gradient(135deg, #67e8f9, #22c55e);
  border-color: transparent;
}
.ai-thumb-source-preview {
  margin-top: 12px;
}
.ai-thumb-source-preview-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ai-thumb-source-preview-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.ai-thumb-source-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ai-thumb-source-meta strong {
  color: #f5fcff;
  font-size: 0.9rem;
}
.ai-thumb-source-meta span {
  color: #8fb2c1;
  font-size: 0.78rem;
}
.ai-thumb-help-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.ai-thumb-help-list > div {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cce8f3;
  font-size: 0.78rem;
  font-weight: 600;
}
.ai-thumb-help-list i {
  color: #37d3df;
  margin-right: 6px;
}
.ai-thumb-prompt-note {
  color: #c8e6f1;
  background: rgba(3, 10, 18, 0.72);
}
.ai-thumb-prompt-note strong {
  color: #ffffff;
}
@media (max-width: 700px) {
  .ai-thumb-help-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .ai-thumb-mode-badge {
    margin-left: 0;
  }
  .ai-thumb-source-preview-card {
    grid-template-columns: 1fr;
  }
  .ai-thumb-source-preview-card img {
    width: 100%;
    height: auto;
    max-height: 180px;
  }
}


/* ================================================================
   2026-08-28 — ARTICLE PAGE: left related / centered article / right ads
   ================================================================ */
#view-single-article {
  width: 100%;
}

#view-single-article .article-page-grid {
  width: min(1540px, calc(100% - 24px));
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: minmax(210px, 245px) minmax(0, 820px) minmax(250px, 310px) !important;
  grid-template-areas:
    "related article ads"
    ". nav ."
    ". reactions ." !important;
  justify-content: center;
  align-items: start;
  gap: 22px !important;
}

#view-single-article .single-article-card {
  grid-area: article;
  min-width: 0;
  width: 100%;
  margin: 0 auto;
}

#view-single-article .single-article-header {
  text-align: center;
}

#view-single-article .single-article-header h1 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

#view-single-article .single-subtitle,
#view-single-article .single-meta {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

/* Requested public article body size. */
#view-single-article .article-content {
  font-size: 15px !important;
  line-height: 1.78;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  overflow-wrap: anywhere;
}

#view-single-article .article-content p {
  font-size: 15px !important;
  line-height: 1.78;
  margin-bottom: 1.05rem;
}

/* Always contain floated media so following sections never overlap. */
#view-single-article .article-content::after {
  content: "";
  display: block;
  clear: both;
}

.article-related-sidebar {
  grid-area: related;
  position: sticky;
  top: 118px;
  min-width: 0;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding: 13px;
  border: 1px solid rgba(88,221,212,.22);
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(8,30,48,.96), rgba(4,19,32,.96));
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  scrollbar-width: thin;
}

.article-side-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 3px 11px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #70e5df;
  font-family: var(--font-century), "Century Gothic", sans-serif;
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .65px;
}

.article-related-list {
  display: grid;
  gap: 3px;
  padding-top: 7px;
}

.article-related-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px 4px;
  border-bottom: 1px solid rgba(255,255,255,.065);
  color: inherit;
  text-decoration: none;
  transition: background .16s ease, transform .16s ease;
}

.article-related-card:hover {
  background: rgba(88,221,212,.07);
  transform: translateX(2px);
}

.article-related-card img,
.article-related-no-image {
  display: block;
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}

.article-related-no-image {
  display: grid;
  place-items: center;
  color: #72dcd8;
  font-size: 1.15rem;
}

.article-related-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.article-related-copy strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #eaf7fb;
  font-size: .78rem;
  line-height: 1.35;
}

.article-related-copy small {
  color: #7999a7;
  font-size: .67rem;
}

.article-right-rail {
  grid-area: ads;
  min-width: 0;
}

.article-right-ad-sticky {
  position: sticky;
  top: 118px;
  min-height: 300px;
}

.article-right-ad-slot {
  min-height: 280px;
}

.article-ad-caption {
  margin-bottom: 5px;
  color: #6d8b99;
  font-size: .62rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.article-inline-google-ad {
  clear: both;
  width: 100%;
  min-height: 120px;
  margin: 24px auto 27px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

#view-single-article .article-story-nav {
  grid-area: nav;
}

#view-single-article .article-reactions {
  grid-area: reactions;
}

/* Public video sizing + true text wrapping. */
#view-single-article .article-content .in-article-video {
  box-sizing: border-box;
  max-width: 100% !important;
  clear: none !important;
}

#view-single-article .article-content .in-article-video.video-align-left {
  float: left !important;
  margin: 7px 20px 14px 0 !important;
}

#view-single-article .article-content .in-article-video.video-align-right {
  float: right !important;
  margin: 7px 0 14px 20px !important;
}

#view-single-article .article-content .in-article-video:not(.video-align-left):not(.video-align-right) {
  float: none !important;
  margin: 17px auto 21px !important;
}

#view-single-article .article-content .article-video-frame-wrap {
  max-width: 100%;
  margin-inline: auto;
}

@media (max-width: 1220px) {
  #view-single-article .article-page-grid {
    grid-template-columns: minmax(205px, 235px) minmax(0, 820px) !important;
    grid-template-areas:
      "related article"
      "ads article"
      ". nav"
      ". reactions" !important;
  }

  .article-right-rail {
    margin-top: 8px;
  }

  .article-right-ad-sticky {
    position: static;
    min-height: 180px;
  }
}

@media (max-width: 860px) {
  #view-single-article .article-page-grid {
    width: min(100%, calc(100% - 16px));
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "article"
      "reactions"
      "nav"
      "related"
      "ads" !important;
    gap: 15px !important;
  }

  .article-related-sidebar {
    position: static;
    max-height: none;
  }

  .article-right-ad-sticky {
    position: static;
  }
}

@media (max-width: 640px) {
  #view-single-article .single-article-card {
    padding: 16px;
  }

  #view-single-article .article-content .in-article-video.video-align-left,
  #view-single-article .article-content .in-article-video.video-align-right {
    float: none !important;
    width: 100% !important;
    margin: 16px 0 !important;
  }

  .article-related-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .article-related-card img,
  .article-related-no-image {
    width: 88px;
    height: 62px;
  }
}


/* ================================================================
   HOME — right AdSense under weather + requested category order
   ================================================================ */
.home-right-rail {
  min-width: 0;
  display: grid;
  gap: 15px;
  align-content: start;
}

.home-weather-google-ad {
  min-width: 0;
  min-height: 170px;
}

.home-weather-google-ad-slot {
  width: 100%;
  min-height: 160px;
}

.home-category-heading {
  margin-top: 28px !important;
  margin-bottom: 14px !important;
  border-bottom: 1px solid rgba(88,221,212,.18);
  padding-bottom: 8px;
}

.home-category-heading h2 {
  margin: 0;
  color: #66ded8;
  font-family: var(--font-century), "Century Gothic", sans-serif;
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  font-weight: 900;
  letter-spacing: .6px;
}

.home-secondary-news-full > .news-grid + .home-category-heading {
  margin-top: 34px !important;
}


/* ================================================================
   VIDEO EDITOR — stronger controls / wrapping / resizing
   ================================================================ */
#admin-content-editor .in-article-video {
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
}

#admin-content-editor .in-article-video.video-align-left,
#admin-content-editor .in-article-video.video-align-right {
  clear: none !important;
}

#admin-content-editor .in-article-video.video-align-left {
  float: left;
  margin: 8px 20px 16px 0;
}

#admin-content-editor .in-article-video.video-align-right {
  float: right;
  margin: 8px 0 16px 20px;
}

#admin-content-editor::after {
  content: "";
  display: block;
  clear: both;
}

.video-width-presets {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 3px;
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.in-article-video-toolbar .video-width-presets button {
  min-width: 43px;
  padding: 0 6px;
  border: 1px solid rgba(88,221,212,.13);
  background: rgba(88,221,212,.06);
  color: #bfeeea;
}

.in-article-video-toolbar .video-width-presets button:hover {
  border-color: rgba(88,221,212,.35);
  background: rgba(88,221,212,.17);
  color: #fff;
}

.in-article-video-toolbar [data-move-block] {
  color: #d4edf4;
  border: 1px solid rgba(255,255,255,.08);
}

#admin-content-editor .in-article-video-resize {
  opacity: 1;
  width: 16px;
  height: 16px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.7),
    0 0 13px rgba(88,221,212,.55),
    0 4px 11px rgba(0,0,0,.35);
}

@media (max-width: 760px) {
  .video-width-presets {
    width: 100%;
    justify-content: space-between;
  }

  .in-article-video-toolbar .video-width-presets button {
    flex: 1;
  }
}


/* SUPABASE EGRESS RESCUE admin panel */
.egress-admin-card p {
  color: var(--muted);
  line-height: 1.55;
}
.egress-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.egress-stats-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(88, 221, 212, .15);
  border-radius: 12px;
  background: rgba(88, 221, 212, .045);
}
.egress-stats-grid strong {
  color: #eafcff;
  font-size: .78rem;
}
.egress-stats-grid span {
  color: #66ded8;
  font-size: .92rem;
  font-weight: 800;
}
.egress-progress {
  margin-top: 14px;
}
.egress-progress-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}
.egress-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #5eead4);
  transition: width .2s ease;
}
.egress-progress-text {
  margin-top: 6px;
  color: #9db8c4;
  font-size: .76rem;
}
@media (max-width: 850px) {
  .egress-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .egress-stats-grid {
    grid-template-columns: 1fr;
  }
}


/* 2026-09-01 — Article image URL diagnostics */
.admin-image-preview-frame {
  position: relative;
  min-height: 86px;
  display: grid;
  place-items: center;
}
.admin-image-preview-frame > img {
  display: block;
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 10px;
}
.admin-image-preview-error {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 92, 112, .35);
  border-radius: 10px;
  background: rgba(255, 92, 112, .08);
  color: #ff9aa8;
  font-size: .86rem;
  line-height: 1.45;
}
