/* ============================================================
   Ωριαία Πρόβλεψη — ana-ora.css
   kairosirakleio.com · Dark theme
   ============================================================ */

/* ── PAGE LAYOUT ── */
.ao-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
}

/* ── LOADING ── */
.ao-loading {
  text-align: center;
  padding: 80px 20px;
  color: #64748b;
}
.ao-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 3px solid rgba(255,255,255,.07);
  border-top-color: #2dd4bf;
  border-radius: 50%;
  animation: ao-spin 0.8s linear infinite;
}
@keyframes ao-spin { to { transform: rotate(360deg); } }

/* ── CURRENT WEATHER HERO ── */
.ao-hero {
  background: #0e1622;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.04);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  margin-bottom: 4px;
}
.ao-hero-icon svg { width: 72px; height: 72px; }
.ao-hero-temp {
  display: flex;
  flex-direction: column;
}
.ao-hero-degrees {
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  color: #e2e8f0;
  letter-spacing: -2px;
}
.ao-hero-degrees sup {
  font-size: 22px;
  vertical-align: super;
  font-weight: 400;
}
.ao-hero-condition {
  font-size: 15px;
  font-weight: 500;
  color: #2dd4bf;
  margin-top: 4px;
}
.ao-hero-feels {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.ao-hero-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  margin-left: auto;
  font-size: 13px;
}
.ao-hero-label {
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ao-hero-value {
  color: #e2e8f0;
  font-weight: 500;
}

/* ── TAB STRIP ── */
.ao-tabs {
  display: flex;
  gap: 0;
  margin-top: 24px;
  margin-bottom: 2px;
}
.ao-tab {
  padding: 12px 22px;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: transparent;
  transition: all .2s;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-weight: 400;
}
.ao-tab:hover { color: #e2e8f0; background: #131e30; }
.ao-tab.active {
  background: #0e1622;
  color: #2dd4bf;
  font-weight: 500;
  border-color: rgba(255,255,255,.04);
  position: relative;
}
.ao-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #0e1622;
}

/* ── HOURLY TABLE ── */
.ao-table {
  background: #0e1622;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 0 14px 14px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  overflow: hidden;
}

.ao-table-header {
  display: grid;
  grid-template-columns: 62px 1fr 64px 64px 72px 72px 56px;
  align-items: center;
  padding: 12px 20px;
  background: #0a1019;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.ao-table-header span:nth-child(n+3) { text-align: center; }

/* ── DAY GROUPS ── */
.ao-day-group { display: none; }
.ao-day-group.active { display: block; }

/* ── HOURLY ROW ── */
.ao-row-main {
  display: grid;
  grid-template-columns: 62px 1fr 64px 64px 72px 72px 56px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
  cursor: pointer;
}
.ao-row-main:last-child { border-bottom: none; }
.ao-row-main:hover { background: #131e30; }

.ao-row--now .ao-row-main {
  background: linear-gradient(90deg, rgba(45,212,191,.06) 0%, transparent 100%);
  border-left: 3px solid #2dd4bf;
  padding-left: 17px;
}
.ao-row--rain .ao-row-main {
  background: linear-gradient(90deg, rgba(45,212,191,.03) 0%, transparent 100%);
}
.ao-row--night .ao-row-main { opacity: 0.75; }

/* Row cells */
.ao-time {
  font-size: 14px;
  font-weight: 500;
  color: #e2e8f0;
}
.ao-now-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #0a1019;
  background: #2dd4bf;
  padding: 1px 7px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.ao-desc {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ao-desc-icon { width: 32px; height: 32px; flex-shrink: 0; }
.ao-desc-icon svg { width: 32px; height: 32px; }
.ao-desc-text {
  font-size: 13px;
  color: #94a3b8;
}
.ao-row--rain .ao-desc-text { color: #38bdf8; }

.ao-temp {
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: #e2e8f0;
}
.ao-feels {
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.ao-rain {
  text-align: center;
  font-size: 13px;
  color: #64748b;
}
.ao-rain.has-rain {
  color: #38bdf8;
  font-weight: 500;
}
.ao-rain-bar {
  display: block;
  height: 3px;
  background: #38bdf8;
  border-radius: 2px;
  margin: 4px auto 0;
  max-width: 48px;
  opacity: 0.5;
}

.ao-wind {
  text-align: center;
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.ao-wind-arrow {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  display: inline-block;
}

.ao-hum {
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* ── EXPANDABLE DETAIL ── */
.ao-row-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  background: #0a1019;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.ao-row.expanded .ao-row-detail {
  max-height: 200px;
  padding: 12px 20px 16px;
}
.ao-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ao-detail-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 2px;
}
.ao-detail-value {
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
}

/* ── UPDATE BADGE ── */
.ao-update {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: #475569;
}

/* ── SIDEBAR CARDS ── */
.ao-sidebar { display: flex; flex-direction: column; gap: 20px; }

.ao-sidebar-card {
  background: #0e1622;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.ao-sidebar-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: #2dd4bf;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ao-sidebar-card h3 svg { width: 16px; height: 16px; stroke: #2dd4bf; }

.ao-quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
  transition: color .15s;
}
.ao-quick-link:last-child { border-bottom: none; }
.ao-quick-link:hover { color: #2dd4bf; }
.ao-quick-link svg { width: 14px; height: 14px; stroke: #64748b; }

.ao-region-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
  transition: color .15s;
}
.ao-region-link:last-child { border-bottom: none; }
.ao-region-link:hover { color: #2dd4bf; }
.ao-region-temp {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── ANIMATIONS ── */
@keyframes aoFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ao-row { animation: aoFadeIn .3s ease both; }
.ao-row:nth-child(1)  { animation-delay: .02s; }
.ao-row:nth-child(2)  { animation-delay: .04s; }
.ao-row:nth-child(3)  { animation-delay: .06s; }
.ao-row:nth-child(4)  { animation-delay: .08s; }
.ao-row:nth-child(5)  { animation-delay: .10s; }
.ao-row:nth-child(6)  { animation-delay: .12s; }
.ao-row:nth-child(7)  { animation-delay: .14s; }
.ao-row:nth-child(8)  { animation-delay: .16s; }
.ao-row:nth-child(9)  { animation-delay: .18s; }
.ao-row:nth-child(10) { animation-delay: .20s; }
.ao-row:nth-child(11) { animation-delay: .22s; }
.ao-row:nth-child(12) { animation-delay: .24s; }

/* ── RESPONSIVE ── */
@media (max-width: 840px) {
  .ao-wrap {
    grid-template-columns: 1fr;
    padding: 20px 16px 40px;
  }
  .ao-table-header,
  .ao-row-main {
    grid-template-columns: 52px 1fr 50px 50px 56px;
  }
  .ao-th-feels, .ao-feels,
  .ao-th-hum, .ao-hum { display: none; }
  .ao-hero { flex-wrap: wrap; gap: 16px; padding: 18px 20px; }
  .ao-hero-details { margin-left: 0; }
  .ao-hero-degrees { font-size: 38px; }
  .ao-detail-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .ao-hero { flex-direction: column; align-items: flex-start; }
  .ao-hero-details { width: 100%; }
  .ao-tab { padding: 10px 16px; font-size: 12px; }
  .ao-table-header,
  .ao-row-main {
    grid-template-columns: 48px 1fr 44px 52px;
    padding: 12px 14px;
  }
  .ao-th-rain, .ao-rain { display: none; }
}

/* ── NIGHT MODE ── */
body.is-night .ao-hero { background: #0a1019; border-color: rgba(255,255,255,.04); }
body.is-night .ao-hero-degrees { color: #e2e8f0; }
body.is-night .ao-hero-condition { color: #fbbf24; }
body.is-night .ao-table { background: #0a1019; border-color: rgba(255,255,255,.04); }
body.is-night .ao-table-header { background: #060a11; border-color: rgba(255,255,255,.04); }
body.is-night .ao-row-main { border-color: rgba(255,255,255,.04); }
body.is-night .ao-row-main:hover { background: #131e30; }
body.is-night .ao-row-detail { background: #060a11; }
body.is-night .ao-sidebar-card { background: #0a1019; border-color: rgba(255,255,255,.04); }
body.is-night .ao-tab.active { background: rgba(251,191,36,.08); color: #fbbf24; border-color: rgba(255,255,255,.04); }
body.is-night .ao-tab.active::after { background: #0a1019; }

/* Mobile font-size boost */
@media (max-width: 768px) {
  .ao-hero-condition { font-size: 17px; }
  .ao-hero-feels { font-size: 14px; }
  .ao-hero-details { font-size: 15px; }
  .ao-hero-label { font-size: 13px; }
  .ao-tab { font-size: 15px; }
  .ao-table-header { font-size: 13px; }
  .ao-time { font-size: 16px; }
  .ao-now-badge { font-size: 12px; }
  .ao-desc-text { font-size: 15px; }
  .ao-temp { font-size: 17px; }
  .ao-feels { font-size: 15px; }
  .ao-rain { font-size: 15px; }
  .ao-wind { font-size: 14px; }
  .ao-hum { font-size: 15px; }
  .ao-detail-label { font-size: 12px; }
  .ao-detail-value { font-size: 15px; }
  .ao-update { font-size: 14px; }
  .ao-sidebar-card h3 { font-size: 15px; }
  .ao-quick-link { font-size: 15px; }
  .ao-region-link { font-size: 15px; }
  .ao-region-temp { font-size: 14px; }
}
