/* sky-album / style.css  v5 */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Lato:wght@300;400;700&display=swap');

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

:root {
  --bg:      #05090f;
  --surface: #0b1220;
  --surf2:   #0f1929;
  --border:  #172035;
  --gold:    #fbbf24;
  --blue:    #60a5fa;
  --text:    #dde4ed;
  --muted:   #4a6080;
  --muted2:  #2d4060;
  --radius:  12px;
  --shadow:  0 16px 48px rgba(0,0,0,.55);
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Lato', sans-serif; font-weight: 300; min-height: 100vh; overflow-x: hidden; }

body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 7%  12%, rgba(255,255,255,.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 21% 38%, rgba(255,255,255,.28) 0%, transparent 100%),
    radial-gradient(1px 1px at 47%  9%, rgba(255,255,255,.45) 0%, transparent 100%),
    radial-gradient(1px 1px at 66% 29%, rgba(255,255,255,.22) 0%, transparent 100%),
    radial-gradient(1px 1px at 82% 51%, rgba(255,255,255,.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 32% 67%, rgba(255,255,255,.32) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 13% 83%, rgba(255,255,255,.38) 0%, transparent 100%),
    radial-gradient(1px 1px at 74% 64%, rgba(255,255,255,.3) 0%, transparent 100%);
}

/* ── TOPBAR ── */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap; padding: 14px 16px;
}
.btn-home {
  background: rgba(20,83,45,.85); color: #fff; text-decoration: none;
  padding: 8px 16px; border-radius: var(--radius); font-size: .82rem;
  border: 1px solid rgba(22,101,52,.8); backdrop-filter: blur(8px);
  transition: all .22s; display: inline-flex; align-items: center; gap: 5px;
}
.btn-home:hover { background: rgba(22,101,52,.95); }
.btn-lang {
  background: rgba(13,31,53,.8); color: var(--text); border: 1px solid rgba(23,32,53,.8);
  padding: 8px 14px; border-radius: var(--radius); cursor: pointer;
  font-size: .82rem; font-family: 'Lato', sans-serif;
  backdrop-filter: blur(8px); transition: all .22s;
}
.btn-lang:hover  { border-color: var(--blue); color: var(--blue); }
.btn-lang.active { border-color: var(--blue); color: var(--gold); font-weight: 700; }

/* ══ PARALLAX HERO ══ */
.hero-parallax {
  position: relative; width: 100%; height: 100vh; min-height: 520px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.hero-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  filter: brightness(.8);
  z-index: 0;
}
.hero-bg-fallback {
  background: linear-gradient(160deg, #1a0500 0%, #050912 100%);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom,
    rgba(5,9,15,.2) 0%,
    rgba(5,9,15,.15) 50%,
    rgba(5,9,15,.85) 100%);
}
.hero-content {
  position: relative; z-index: 5; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 80px 20px 40px;
}
.hero-title h1 {
  font-family: 'Cinzel', serif; font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 400; letter-spacing: .25em;
  background: linear-gradient(135deg, var(--gold) 0%, #fff 45%, var(--blue) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-shadow: none; line-height: 1;
}
.hero-sub {
  font-size: clamp(.75rem, 2vw, 1rem); letter-spacing: .2em;
  color: rgba(255,255,255,.55); text-transform: uppercase; margin-top: 8px;
}

/* Countdown */
.countdown-box {
  background: rgba(5,9,15,.6); backdrop-filter: blur(16px);
  border: 1px solid rgba(251,191,36,.25); border-radius: 16px;
  padding: 16px 28px; text-align: center;
  width: 240px;           /* ← σταθερό πλάτος */
}
.cd-label {
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 6px;
}
.cd-time {
  font-family: 'Cinzel', serif; font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 400; letter-spacing: .12em; color: var(--gold); line-height: 1;
  font-variant-numeric: tabular-nums;  /* ← ίσο πλάτος ψηφίων */
}
.cd-sunrise-time {
  font-size: .72rem; color: rgba(255,255,255,.35); margin-top: 5px; letter-spacing: .1em;
}
.cd-sunrise-time::before { content: '🌅 '; }

.hero-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: .78rem; color: rgba(255,255,255,.45);
}
.hero-meta strong { color: rgba(255,255,255,.75); }
.hero-view-btn {
  background: rgba(251,191,36,.15); border: 1px solid rgba(251,191,36,.3);
  color: var(--gold); padding: 6px 16px; border-radius: 20px;
  cursor: pointer; font-size: .75rem; font-family: 'Lato', sans-serif;
  transition: all .2s; letter-spacing: .05em;
}
.hero-view-btn:hover { background: rgba(251,191,36,.28); }

.hero-scroll-hint {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 1.4rem; color: rgba(255,255,255,.3);
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(8px);} }

/* ── COVER LAYER — everything below hero needs solid bg to cover the fixed image ── */
.moon-strip, .main-content, .chart-section, footer {
  position: relative;
  z-index: 2;
  background: var(--bg);
}

/* ── MOON STRIP ── */
.moon-strip {
  max-width: 500px; margin: 14px auto 0; padding: 0 16px;
}
.moon-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.moon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mc-img-wrap { position: relative; overflow: hidden; }
.moon-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .4s; }
.moon-card:hover img { transform: scale(1.03); }
.mc-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 14px 10px;
  background: linear-gradient(to top, rgba(5,9,15,.88) 0%, transparent 100%);
  font-family: 'Cinzel', serif; font-size: .8rem; letter-spacing: .07em; color: #93c5fd;
}

/* ══ MAIN LAYOUT ══ */
.main-content {
  position: relative; z-index: 1; max-width: 1100px; margin: 14px auto 0;
  padding: 0 16px;
  display: grid; grid-template-columns: 420px 1fr; gap: 14px; align-items: start;
}
@media (max-width: 860px) { .main-content { grid-template-columns: 1fr; } }

/* ── VIDEO PANEL ── */
.video-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
/* ── VIDEO PANEL ── */
.video-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.video-nav {
  background: var(--surf2); border-bottom: 1px solid var(--border);
}
.year-row {
  display: flex; align-items: center; gap: 4px;
  padding: 7px 8px 4px; border-bottom: 1px solid rgba(255,255,255,.04);
}
.nav-arrow { font-size: 1.3rem;
  background: transparent; border: 1px solid var(--border); color: rgba(251,191,36,.5);
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .18s;
}
.nav-arrow:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.nav-arrow:disabled { opacity: .25; cursor: default; }
.year-tabs {
  display: flex; gap: 4px; flex: 1; justify-content: center;
}
.year-tab {
  font-family: 'Cinzel', serif; font-size: .8rem; letter-spacing: .07em;
  padding: 5px 16px; border-radius: 20px; border: 1px solid transparent;
  background: transparent; color: rgba(255,255,255,.6); cursor: pointer; transition: all .22s;
  white-space: nowrap;
}
.year-tab:hover { color: var(--text); border-color: var(--border); }
.year-tab.active {
  background: linear-gradient(135deg, rgba(249,115,22,.22), rgba(251,191,36,.12));
  border-color: rgba(251,191,36,.3); color: var(--gold);
}
.month-tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 5px 8px 7px; min-height: 34px; align-items: center;
}
.month-tab {
  font-family: 'Lato', sans-serif; font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; padding: 4px 10px; border-radius: 14px;
  border: 1px solid rgba(96,165,250,.25); background: transparent;
  color: rgba(96,165,250,.6); cursor: pointer; transition: all .2s;
}
.month-tab:hover { color: var(--text); border-color: var(--blue); }
.month-tab.active {
  background: rgba(96,165,250,.15); border-color: var(--blue); color: var(--blue);
}
.video-wrap { position: relative; width: 100%; aspect-ratio: 16/10; background: #000; overflow: hidden; }
.video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-wrap::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(to top, rgba(5,9,15,.8) 0%, transparent 100%);
  pointer-events: none; z-index: 2;
}
.video-controls {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
  padding: 6px 8px; display: flex; align-items: center; gap: 6px;
}
.vc-year-label {
  font-family: 'Cinzel', serif; font-size: clamp(.9rem,2.5vw,1.4rem);
  font-weight: 400; letter-spacing: .15em; line-height: 1; flex: 1;
  background: linear-gradient(135deg, var(--gold), #fff 60%, var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.vc-btn {
  background: rgba(15,25,40,.8); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18); color: #fff;
  border-radius: 6px; width: 30px; height: 30px; cursor: pointer; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; transition: background .18s; flex-shrink: 0;
}
.vc-btn:hover { background: rgba(255,255,255,.22); }
.no-video {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(160deg, #0c0500 0%, #050912 100%);
  color: var(--muted); font-size: .8rem;
}
.nv-icon { font-size: 2rem; opacity: .4; }
.video-sub { padding: 7px 12px; font-size: .66rem; color: var(--muted); text-align: center; border-top: 1px solid var(--border); }

/* ── CALENDAR PANEL ── */
.cal-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}

/* View tabs */
.view-tabs {
  display: flex; background: var(--surf2); border-bottom: 1px solid var(--border);
}
.view-tab {
  flex: 1; padding: 10px 8px; font-family: 'Lato', sans-serif; font-size: .75rem;
  background: transparent; border: none; color: var(--muted);
  cursor: pointer; transition: all .2s; letter-spacing: .05em;
  border-right: 1px solid var(--border);
}
.view-tab:last-child { border-right: none; }
.view-tab:hover { color: var(--text); }
.view-tab.active { color: var(--gold); background: rgba(251,191,36,.07); }

.month-nav, .heatmap-header, .wall-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px; border-bottom: 1px solid var(--border);
}
.month-nav h2, .heatmap-header h2, .wall-nav h2 {
  font-family: 'Cinzel', serif; font-size: .88rem; font-weight: 400; letter-spacing: .1em;
}
.nav-btn { font-size: 1.3rem;
  background: var(--surf2); border: 1px solid var(--border); color: var(--text);
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; transition: all .18s;
}
.nav-btn:hover { background: var(--border); }

/* Month calendar cells */
.cal-weekdays {
  display: grid; grid-template-columns: repeat(7,1fr);
  background: var(--surf2); border-bottom: 1px solid var(--border);
}
.cal-weekday { padding: 6px 0; text-align: center; font-size: .57rem; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.cal-days { display: grid; grid-template-columns: repeat(7,1fr); }
.cal-day {
  aspect-ratio: 1; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden; min-height: 36px; cursor: default;
  background: var(--surface); transition: transform .15s;
}
.cal-day:nth-child(7n) { border-right: none; }
.cal-day.has-photo { cursor: pointer; }
.cal-day.has-photo:hover { transform: scale(1.08); z-index: 10; box-shadow: 0 6px 20px rgba(0,0,0,.8); }
.cal-day.type-sunrise { background: #1a0800; }
.cal-day.type-moon    { background: #020814; }
.cal-day.type-both    { background: #0e0410; }
.cell-thumb { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; transition: opacity .2s; }
.cal-day.has-photo:hover .cell-thumb { opacity: .82; }
.cell-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.06) 100%); }
.cell-moon-badge { position: absolute; bottom: 2px; right: 3px; font-size: .55rem; z-index: 4; text-shadow: 0 1px 4px rgba(0,0,0,.9); }
.day-num { position: absolute; top: 3px; left: 4px; font-size: .58rem; font-weight: 700; z-index: 4; text-shadow: 0 1px 4px rgba(0,0,0,.9); }
.cal-day.empty .day-num, .cal-day.type-none .day-num { color: rgba(255,255,255,.35); text-shadow: none; }
.cal-day.has-photo .day-num { color: #fff; }

.month-stats { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--border); }
.stat-card { padding: 9px 8px; text-align: center; border-right: 1px solid var(--border); }
.stat-card:last-child { border-right: none; }
.stat-num { font-family: 'Cinzel', serif; font-size: 1.3rem; font-weight: 400; line-height: 1; margin-bottom: 2px; }
.stat-num.sn-s { color: var(--gold); }
.stat-num.sn-m { color: var(--blue); }
.stat-num.sn-t { color: var(--text); }
.stat-label { font-size: .6rem; color: var(--muted); }

/* ── HEATMAP ── */
.heatmap-wrap { padding: 10px 10px 4px; overflow-x: auto; }
.hm-row { display: flex; align-items: center; gap: 3px; margin-bottom: 3px; }
.hm-label { font-size: .6rem; color: var(--muted); width: 26px; flex-shrink: 0; letter-spacing: .04em; }
.hm-cell {
  width: 14px; height: 14px; border-radius: 2px; flex-shrink: 0;
  transition: transform .12s;
}
.hm-cell:not(.hm-empty) { cursor: pointer; }
.hm-cell:not(.hm-empty):hover { transform: scale(1.4); z-index: 5; }
.hm-empty { opacity: 0; pointer-events: none; }
.hm-s0 { background: var(--surf2); border: 1px solid var(--border); }
.hm-s1 { background: rgba(249,115,22,.35); }
.hm-s2 { background: rgba(249,115,22,.6); }
.hm-s3 { background: rgba(251,191,36,.85); }
.hm-moon { background: rgba(96,165,250,.75) !important; }

.heatmap-legend {
  display: flex; align-items: center; gap: 5px; padding: 6px 10px 10px;
  border-top: 1px solid var(--border);
}
.hm-swatch { width: 12px; height: 12px; border-radius: 2px; }
.hm-swatch.hm-s0 { background: var(--surf2); border: 1px solid var(--border); }
.hm-swatch.hm-s1 { background: rgba(249,115,22,.35); }
.hm-swatch.hm-s2 { background: rgba(249,115,22,.6); }
.hm-swatch.hm-s3 { background: rgba(251,191,36,.85); }

/* ── WALL VIEW ── */
.wall-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr));
  gap: 4px; padding: 8px;
}
.wall-card {
  position: relative; border-radius: 6px; overflow: hidden;
  cursor: pointer; transition: transform .18s;
  background: var(--surf2);
}
.wall-card:hover { transform: scale(1.04); z-index: 5; }
.wall-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.wall-meta {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 5px 4px;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  display: flex; align-items: flex-end; justify-content: space-between;
}
.wall-date { font-size: .58rem; color: rgba(255,255,255,.7); font-weight: 700; }
.wall-time { font-size: .55rem; color: rgba(255,255,255,.45); }
.wall-moon-badge { font-size: .6rem; }
.wall-moon img { border: 1px solid rgba(96,165,250,.4); }
.wall-empty { text-align: center; padding: 30px; font-size: 2rem; opacity: .3; }

/* ── CHART ── */
.chart-section {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 14px auto 0; padding: 0 16px 50px;
}
.chart-header {
  margin-bottom: 10px;
}
.chart-header h3 {
  font-family: 'Cinzel', serif; font-size: .9rem; font-weight: 400;
  letter-spacing: .12em; color: var(--text);
}
.chart-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; height: 200px;
  box-shadow: var(--shadow);
}
.chart-wrap canvas { width: 100% !important; height: 100% !important; }

/* ══ LIGHTBOX ══ */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.95); z-index: 300;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.lightbox-overlay.open { opacity: 1; pointer-events: all; }
.lb-img-wrap { max-width: 80vw; max-height: 82vh; display: flex; align-items: center; justify-content: center; }
.lb-img-wrap img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 6px; display: block; }

.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.38);
  color: #fff; font-size: 1.8rem; font-weight: 700;
  cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s; user-select: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.6);
}
.lb-nav:hover { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.8); transform: translateY(-50%) scale(1.1); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
@media (max-width: 600px) { .lb-prev { left: 8px; } .lb-next { right: 8px; } .lb-nav { width: 44px; height: 44px; font-size: 1.4rem; } }

.lb-close {
  position: fixed; top: 16px; right: 20px;
  background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.3);
  color: #fff; font-size: 1.2rem; width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s; box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.lb-close:hover { background: rgba(255,255,255,.28); }

.lb-info { position: fixed; bottom: 18px; left: 0; right: 0; text-align: center; z-index: 10; pointer-events: none; }
.lb-caption { font-size: .78rem; color: rgba(255,255,255,.6); letter-spacing: .08em; margin-bottom: 4px; }
.lb-counter { font-family: 'Cinzel', serif; font-size: .72rem; color: rgba(255,255,255,.35); letter-spacing: .12em; }

/* ── FOOTER ── */
footer { position: relative; z-index: 1; text-align: center; padding: 14px; font-size: .66rem; color: var(--muted2); border-top: 1px solid var(--border); }

@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
.animate-in { animation: fadeIn .35s ease both; }