/* =========================================================
   santa.livemedia.com — Γράμμα στον Άγιο Βασίλη
   Ύφος της αρχικής σελίδας (εργαστήρι σε όλη την οθόνη,
   λευκά «χιονισμένα» κουτιά), σε mobile-first vanilla CSS.
   ========================================================= */

:root {
  --white: #f2f4f8;
  --box: #f4f4f4;
  --box-strip: #e7e7e7;
  --ink: #2b2b2b;
  --ink-soft: #555;
  --blue: #1b74c5;        /* νούμερα countdown (AA πάνω σε #f4f4f4) */
  --blue-ring: rgba(27,116,197,.28);
  --red: #c4161c;
  --red-dark: #8e0e13;
  --error: #b0151b;

  --font-display: "Playpen Sans", "Comic Sans MS", system-ui, sans-serif;
  --font-body: "Roboto Condensed", "Arial Narrow", system-ui, -apple-system, sans-serif;

  --radius: 16px;
  --gutter: 16px;
  --shadow-box: 0 8px 20px rgba(0,0,0,.8);
  --text-glow: 0 0 20px #000, 0 2px 6px rgba(0,0,0,.7);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--white);
  background-color: #000;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: #fff; }

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter); top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
}
.skip-link:focus { top: var(--gutter); }

/* ---------- Φόντο: το εργαστήρι σε όλη την οθόνη (σταθερό, δουλεύει και σε iOS) ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #000 url("../img/hero-1280.jpg") center top / cover no-repeat;
}
@media (min-width: 1280px) {
  .backdrop { background-image: url("../img/bg.jpg"); }
}
/* απαλή βινιέτα: κρατά τα χρώματα στη μέση, σκουραίνει άκρες & κάτω μέρος για αναγνωσιμότητα */
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 70% at 50% 40%, rgba(0,0,0,.05) 0%, rgba(0,0,0,.35) 70%, rgba(0,0,0,.7) 100%),
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.25) 100%);
}

/* ---------- Χιόνι ---------- */
.snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ---------- Κουμπιά πάνω δεξιά ---------- */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  padding: 14px var(--gutter);
  padding-top: max(14px, env(safe-area-inset-top));
}
.controls { display: flex; align-items: center; gap: 8px; }

.pill-btn,
.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 48px;
  border: 2px solid rgba(240,240,240,.6);
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color .2s, border-color .2s, transform .15s;
}
.pill-btn {
  gap: 10px;
  padding: 0 18px 0 6px;
  font: 700 1rem/1 var(--font-body);
  cursor: pointer;
}
.pill-btn:hover, .lang-switch:hover { border-color: #fff; background: rgba(0,0,0,.65); }
.pill-btn:active { transform: scale(.97); }

.pill-btn .icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  flex: none;
}

.snow-btn .icon {
  padding: 7px;
  background: var(--blue);
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform .4s ease, background-color .2s;
}
.snow-btn[aria-pressed="true"] .icon { transform: rotate(30deg); }
.snow-btn[aria-pressed="false"] .icon { background: rgba(255,255,255,.2); stroke: rgba(255,255,255,.65); }
.snow-btn[aria-pressed="false"] .pill-label { text-decoration: line-through; opacity: .75; }


.lang-switch { gap: 2px; padding: 0 5px; }
.lang-switch button {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,.85);
  font: 700 .85rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .15s;
}
.lang-switch button::after { content: ""; position: absolute; inset: -6px -2px; } /* ζώνη αφής ≥44px */
.lang-switch button:hover { color: #fff; background: rgba(255,255,255,.12); }
.lang-switch button:active { transform: scale(.94); }
.lang-switch button[aria-pressed="true"] { background: var(--red); color: #fff; }

@media (max-width: 379px) {
  .pill-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pill-btn { padding: 0 5px; min-width: 48px; justify-content: center; gap: 6px; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px var(--gutter) 48px;
  text-align: center;
  overflow: hidden;
}

/* ακτίνες φωτός από πάνω */
.top-light {
  position: absolute;
  top: 0; left: 50%;
  width: min(100%, 900px);
  height: 100%;
  transform: translateX(-50%);
  background: url("../img/light.png") center top / contain no-repeat;
  opacity: .55;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* γυάλινη μπάλα που γυρίζει αργά (μόνο σε μεγάλες οθόνες, όπως στην αρχική) */
.glass-ball { display: none; }
@media (min-width: 768px) {
  .glass-ball {
    display: block;
    position: absolute;
    top: 50%; left: 50%;
    width: min(118vh, 96vw);
    aspect-ratio: 1;
    margin: calc(min(118vh, 96vw) / -2) 0 0 calc(min(118vh, 96vw) / -2);
    background: url("../img/glass-ball-1000.png") center / contain no-repeat;
    animation: rotate 40s linear infinite;
    pointer-events: none;
  }
}
@keyframes rotate { to { transform: rotate(360deg); } }

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
}

.snow-text {
  margin: 0 0 clamp(36px, 7vh, 64px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 11vw, 6rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--white);
  text-shadow: var(--text-glow);
  text-wrap: balance;
}
.snow-text-smaller {
  margin: clamp(28px, 5vh, 44px) 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 5vw, 2.4rem);
  line-height: 1.2;
  color: var(--white);
  text-shadow: var(--text-glow);
  text-wrap: balance;
}

/* ---------- Λευκό «χιονισμένο» κουτί (αρχικό snow-box) ---------- */
.snow-box {
  position: relative;
  margin: 0 auto;
  background-color: var(--box);
  border-radius: var(--radius);
  box-shadow: var(--shadow-box);
  color: var(--ink);
}
/* παγάκια/χιόνι στην πάνω άκρη */
.snow-box::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -2%;
  width: 104%;
  height: 32px;
  background-image: url("../img/top-left-snow.png"), url("../img/top-right-snow.png");
  background-position: bottom left, bottom right;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 2;
}
@media (min-width: 741px) {
  .snow-box::before { top: -14px; height: 65px; background-size: auto; }
}

/* ---------- Countdown ---------- */
.countdown-box {
  width: min(100%, 560px);
}
/* LIVEMEDIA λογότυπο «κρεμασμένο» στη γωνία */
.countdown-box::after {
  content: "";
  position: absolute;
  top: -22px;
  right: -12px;
  width: 58px;
  height: 58px;
  background: url("../img/livemedia-logo.png") center / contain no-repeat;
  transform: rotate(8deg);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.45));
  z-index: 3;
}
@media (min-width: 741px) {
  .countdown-box::after { top: -42px; right: -52px; width: 112px; height: 112px; }
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 6px;
}
.cd-box { display: flex; flex-direction: column; }
.cd-num {
  display: block;
  padding: 12px 0 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.9rem, 8.5vw, 3.4rem);
  line-height: 1.1;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid #b4b4b4;
}
.cd-box + .cd-box .cd-num,
.cd-box + .cd-box .cd-label { border-left: 1px solid #dcdcdc; }
.cd-label {
  display: block;
  padding: 10px 2px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background-color: var(--box-strip);
  border-top: 1px solid #fff;
}
.cd-box:first-child .cd-label { border-bottom-left-radius: var(--radius); }
.cd-box:last-child .cd-label { border-bottom-right-radius: var(--radius); }
.countdown-done {
  grid-column: 1 / -1;
  margin: 0;
  padding: 26px 12px 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  color: var(--red);
}
@media (min-width: 600px) {
  .cd-label { font-size: .95rem; padding: 12px 4px; }
}

/* ---------- CTA ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 28px;
  padding: 10px 14px 10px 24px;
  border: 2px solid rgba(240,240,240,.7);
  border-radius: 999px;
  background: rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  font: 700 1.1rem/1.2 var(--font-body);
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  transition: background-color .2s, color .2s, border-color .2s;
}
.cta-arrow {
  width: 30px; height: 30px;
  padding: 5px;
  border-radius: 45%;
  border: 2px solid rgba(240,240,240,.6);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: bob 1.6s ease-in-out infinite alternate;
}
.cta:hover { background: #fff; color: var(--ink); border-color: #fff; text-shadow: none; }
.cta:hover .cta-arrow { border-color: var(--ink); }
@keyframes bob { from { transform: translateY(-2px); } to { transform: translateY(4px); } }

/* ---------- Σκούρο «φωτοστέφανο» πίσω από κείμενο (αρχικό shadow-box) ---------- */
.shadow-box {
  padding: 28px 12px;
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,.62) 0%, rgba(0,0,0,.42) 45%, rgba(0,0,0,.2) 62%, rgba(0,0,0,0) 78%);
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
}

/* ---------- Info ---------- */
.info {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px var(--gutter) 24px;
  text-align: center;
}
.section-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 9vw, 4rem);
  line-height: 1.1;
  color: var(--white);
  text-shadow: var(--text-glow);
}
.info p {
  max-width: 34ch;
  margin: 0 auto;
  font-size: clamp(1.15rem, 3.6vw, 1.45rem);
  line-height: 1.45;
}

.social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.45);
  border: 2px solid rgba(240,240,240,.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: transform .2s ease, background-color .2s, color .2s, border-color .2s;
}
.social svg { width: 24px; height: 24px; fill: currentColor; }
.social a:hover {
  transform: translateY(-3px);
  background: #fff;
  border-color: #fff;
  color: #111;
}

/* ---------- Γράμμα / Φόρμα ---------- */
.letter-section {
  padding: 40px var(--gutter) 8px;
}
.letter {
  max-width: 640px;
  padding: 40px 20px 28px;
  background-color: #f7f7f7;
  scroll-margin-top: 24px;
}
.letter:focus { outline: none; }
/* καμπανάκι στη γωνία */
.letter::after {
  content: "";
  position: absolute;
  top: -26px;
  right: -8px;
  width: 64px;
  height: 60px;
  background: url("../img/bell.png") center / contain no-repeat;
  transform: rotate(12deg);
  transform-origin: 50% 0;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.4));
  animation: ring 4s ease-in-out infinite;
  z-index: 3;
}
@keyframes ring {
  0%, 80%, 100% { transform: rotate(12deg); }
  84% { transform: rotate(-4deg); }
  88% { transform: rotate(20deg); }
  92% { transform: rotate(4deg); }
  96% { transform: rotate(16deg); }
}

.letter-title {
  margin: 0 56px 6px 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  line-height: 1.15;
  color: var(--red);
}
.letter-lead {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink);
}
.hint {
  margin: -2px 0 8px;
  font-size: .98rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

input[type="text"],
input[type="email"],
textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: 400 1.0625rem/1.5 var(--font-body);   /* ≥16px: χωρίς zoom στο iOS */
  color: var(--ink);
  background: #fff;
  border: 2px solid #d3d3d3;
  border-radius: 12px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
textarea {
  min-height: 190px;
  resize: vertical;
  line-height: 32px;
  padding-top: 10px;
  /* γραμμές τετραδίου */
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(27,116,197,.14) 31px 32px);
  background-attachment: local;
  background-position: 0 10px;
}
input::placeholder, textarea::placeholder { color: #7a7a7a; opacity: 1; }

input[type="text"]:hover,
input[type="email"]:hover,
textarea:hover { border-color: #b5b5b5; }

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-ring);
}

.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--error); background-color: #fff6f6; }
.field.is-invalid input:focus,
.field.is-invalid textarea:focus { box-shadow: 0 0 0 4px rgba(176,21,27,.2); }

.error {
  display: none;
  position: relative;
  margin: 8px 0 0;
  padding-left: 26px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--error);
}
.error::before {
  content: "!";
  position: absolute;
  left: 0; top: 1px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: .75rem;
  line-height: 18px;
  text-align: center;
}
.field.is-invalid .error { display: block; }

.btn-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  margin-top: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font: 800 1.2rem/1.25 var(--font-display);
  color: #fff;
  background: linear-gradient(180deg, #e0242b, var(--red-dark));
  box-shadow: 0 5px 0 #5e080b, 0 12px 22px -8px rgba(0,0,0,.55);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .2s;
}
.btn-send:hover { filter: brightness(1.08); }
.btn-send:active { transform: translateY(3px); box-shadow: 0 2px 0 #5e080b, 0 6px 12px -6px rgba(0,0,0,.5); }
.btn-send:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.btn-loading { display: none; align-items: center; gap: 10px; }
.btn-send.is-loading { cursor: progress; filter: saturate(.8); }
.btn-send.is-loading .btn-text { display: none; }
.btn-send.is-loading .btn-loading { display: inline-flex; }

.spinner {
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-alert {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff0f0;
  border: 2px solid var(--error);
  color: var(--error);
  font-weight: 700;
}

.success { text-align: center; padding: 8px 0; }
.success-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 12px;
  animation: fly 2.4s ease-in-out infinite;
}
@keyframes fly {
  0%,100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(8px, -10px) rotate(4deg); }
}
.success-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  line-height: 1.25;
  color: var(--red);
}
.success-title:focus { outline: none; }
.success-note { margin: 0 0 24px; color: var(--ink-soft); font-size: 1.05rem; }
.btn-again {
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
  font: 700 1.05rem/1.3 var(--font-body);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn-again:hover { background: var(--blue); color: #fff; }
.btn-again:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .letter { padding: 52px 44px 40px; }
  .letter::after { top: -40px; right: -40px; width: 104px; height: 98px; }
  .letter-title { margin-right: 0; }
}

/* ---------- Privacy & footer ---------- */
.privacy {
  max-width: 700px;
  margin: 24px auto 0;
  padding: 32px 28px;
  text-align: center;
  font-size: 1rem;
}
.privacy-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.privacy p { margin: 0 auto; max-width: 52ch; }

.footer {
  padding: 8px var(--gutter) 36px;
  padding-bottom: max(36px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 1rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.9);
}
.footer p { margin: 0; }

/* ---------- Μειωμένη κίνηση ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .spinner { animation: spin 1.6s linear infinite !important; }
}

/* ---------- Υψηλή αντίθεση (Windows) ---------- */
@media (forced-colors: active) {
  .snow-box { border: 2px solid CanvasText; }
  .btn-send { border: 2px solid ButtonText; }
}

/* Instagram: εικονίδιο με περίγραμμα (όχι γέμισμα) */
.social svg.icon-stroke { fill: none; stroke: currentColor; stroke-width: 2; }
.social svg.icon-stroke .dot { fill: currentColor; stroke: none; }
