:root {
  /* ΑΚΡΙΒΗ Χρωματική Παλέτα από παλιά σελίδα */
  --bg: #f2e8dc;
  --card: #e1d3bc;
  --header: #c69c6d;
  --text: #3b2f2a;
  --border: #bfa77a;
  --button-bg: #a7764f;
  --button-text: #fff;
  --header-gradient: linear-gradient(90deg, #c69c6d, #d1b68a);
}

[data-theme="dark"] {
  /* ΑΚΡΙΒΗ Dark Mode χρώματα από παλιά σελίδα */
  --bg: #1a1612;
  --card: #262019;
  --header: #1f1a14;
  --text: #f1e9dd;
  --border: #4a3d2f;
  --button-bg: #6f4e37;
  --button-text: #e6e2dd;
  --header-gradient: linear-gradient(90deg, #1f1a14, #2a231b);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img { max-width: 100%; height: auto; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ===== HEADER ===== */
.header {
  position: sticky; 
  top: 0;
  background: var(--header-gradient);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  z-index: 999;
  transition: all 0.35s ease-in-out;
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 8px 10px;
  transition: all 0.35s ease-in-out;
}

.header-cell {
  display: flex;
  align-items: center;
}

.header-cell a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.header-cell a:hover {
  opacity: 0.9;
}

.header-cell:first-child { justify-content: flex-start; }

.header-cell.header-center {
  justify-content: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-cell:last-child { justify-content: flex-end; }

.header img {
  height: 80px; 
  width: auto;
  display: block;
  transition: all 0.35s ease-in-out;
}

/* CAMERA */
.camera-thumb {
  height: 95px; 
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
  transition: all 0.35s ease-in-out;
}

/* 1. Το "κουτάκι" που περιέχει την τελεία και το κείμενο */
.live-indicator {
    position: absolute;
    top: 8px;           /* Απόσταση από την κορυφή της εικόνας */
    right: 8px;         /* Απόσταση από τα δεξιά της εικόνας */
    display: flex;
    align-items: center;
    gap: 6px;           /* Κενό ανάμεσα σε τελεία και LIVE */
    background: rgba(0, 0, 0, 0.5); /* Ημιδιαφανές μαύρο για να ξεχωρίζει */
    padding: 3px 10px;
    border-radius: 6px;
    pointer-events: none; /* Σημαντικό: για να μπορείς να κάνεις κλικ στην εικόνα από κάτω */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Λεπτό περίγραμμα για "επαγγελματικό" look */
}

/* 2. Η κόκκινη τελεία που αναβοσβήνει */
.live-dot {
    width: 10px;
    height: 10px;
    background: #ff3b3b;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(255, 59, 59, 0.7);
    animation: pulse 1.5s infinite;
}

/* 3. Το κείμενο LIVE */
.live-text {
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;    /* Πολύ έντονα γράμματα */
  letter-spacing: 1px; /* Αραίωση στα γράμματα για στυλ "broadcast" */
  font-family: 'Segoe UI', Roboto, sans-serif;
  line-height: 1;
}

/* Το animation παραμένει ως έχει */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 59, 59, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

@keyframes pulse {
  0% { box-shadow:0 0 0 0 rgba(255,59,59,.7); }
  70% { box-shadow:0 0 0 10px rgba(255,59,59,0); }
  100% { box-shadow:0 0 0 0 rgba(255,59,59,0); }
}

/* ===== HEADER SHRINK ON SCROLL ===== */
.header.shrink {
  padding: 4px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.header.shrink .header-grid { padding: 4px 10px; }

/* ===== NOW WEATHER BADGE ===== */
.now-badge {
  text-align: center;
  font-size: 14px; 
  margin-top: 8px;
  background: rgba(0,0,0,.15);
  padding: 5px 14px; 
  border-radius: 999px;
  backdrop-filter: blur(4px);
  display: inline-block;
  width: auto;
  transition: all 0.35s ease-in-out;
}

[data-theme="dark"] .now-badge {
  background: rgba(255,255,255,.12);
}

.header-text {
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
  padding: 6px 10px 6px;
  max-width: 1200px;
  margin: 0 auto;
  transition: all 0.35s ease-in-out;
}

/* ===== CONTAINER ===== */
.container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1200px;
  margin: 12px auto;
  padding: 0 10px;
}

@media (min-width: 900px) {
  .container {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
  margin-bottom: 16px;
}

.card:last-child { margin-bottom: 0; }

.center { text-align: center; }

/* ===== BROADCAST CARD ===== */
.broadcast-card {
  position: relative;
  padding-bottom: 20px; 
}

.broadcast-img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 25px; 
  /* loading: lazy; ΑΦΑΙΡΕΘΗΚΕ (HTML property) */
}

/* ===== ΠΙΝΑΚΕΣ ΔΕΔΟΜΕΝΩΝ ===== */
.card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px; 
}

.card th, .card td {
  padding: 8px; 
  border: 1px solid var(--border);
}

.card th {
  background: #d1b68a;
  color: var(--text);
  font-size: 15px; 
}

/* ===== IMAGE GRID ===== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.image-grid img {
  width: 100%;
  border-radius: 12px;
  /* loading: lazy; ΑΦΑΙΡΕΘΗΚΕ (HTML property) */
}

/* ===== BUTTONS ===== */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--button-bg);
  color: var(--button-text);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
  transition: all .35s ease;
  border: none;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  background-color: #926f4b;
}

[data-theme="dark"] .button:hover {
  background-color: #7b5c3b !important;
}

[data-theme="dark"] .button,
[data-theme="dark"] .button a {
  color: #e6e2dd !important;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 12px;
}

.link-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ===== WEATHER CARDS ===== */
.weather-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px; 
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
}

.weather-card h3.center {
  margin-bottom: 14px; 
  font-size: 1.2rem; 
}

/* ===== RESPONSIVE IFRAME ===== */
.responsive-iframe {
  width: 100%;
  border: 0;
  border-radius: 14px;
  height: 420px;
  display: block;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  position: fixed;
  bottom: 18px; right: 18px;
  width: 48px; height: 48px;
  border: none; border-radius: 50%;
  background: var(--card);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: all 0.35s ease-in-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .container { grid-template-columns: 1fr; }
  .responsive-iframe { height: 300px; }
  .header img { height: 60px; }
  .camera-thumb { height: 70px; }
  
  .header.shrink img { height: 50px !important; }
  .header.shrink .camera-thumb { height: 60px !important; }
  
  .card table { font-size: 14px; }
  .card th, .card td { padding: 6px; }
}

@media (max-width: 480px) {
  .card table { font-size: 13px; }
  .card { padding: 10px; }
  .header-text { font-size: 11px; }
  .responsive-iframe { height: 280px; }
  .header.shrink .header-text { font-size: 10px; padding: 4px 10px; }
  .weather-card { padding: 12px; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}