/* Greek Simracers — home page (greeksimracers.gr) */

:root {
  --bg: #06080c;
  --card: rgba(16, 20, 28, 0.86);
  --card-solid: #10141c;
  --border: #242b38;
  --border-hover: #37425a;
  --text: #f4f6fa;
  --text-2: #b4bdcb;
  --muted: #6f7a8c;
  --blue: #1f6fe0;          /* Greek blue, from the logo */
  --blue-hover: #3d86f5;
  --blue-glow: rgba(31, 111, 224, 0.45);
  --silver: #c9d0da;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Orbitron', var(--sans);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--blue-hover); }
.visually-hidden, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ─── Background photo (fixed, darkened) ─── */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(31, 111, 224, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(6, 8, 12, 0.8) 0%, rgba(6, 8, 12, 0.9) 55%, var(--bg) 100%),
    url('../img/bg.webp') center / cover no-repeat;
}

@media (max-width: 700px) {
  .bg { background:
    radial-gradient(ellipse 90% 45% at 50% 30%, rgba(31, 111, 224, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(6, 8, 12, 0.75) 0%, rgba(6, 8, 12, 0.9) 55%, var(--bg) 100%),
    url('../img/bg-mobile.webp') center / cover no-repeat; }
}

/* ─── Header ─── */
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem max(1.25rem, calc((100vw - 1100px) / 2));
  background: rgba(6, 8, 12, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.brand img { height: 34px; width: auto; }
.brand em { font-style: normal; color: var(--blue-hover); }

.nav { display: flex; gap: 0.3rem; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav a:first-child { color: #fff; background: var(--blue); }
.nav a:first-child:hover { background: var(--blue-hover); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 0 25px var(--blue-glow); }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ─── Hero ─── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6.5rem 1.25rem 4rem;
  position: relative;
}

.hero-logo {
  --rx: 0deg; --ry: 0deg;
  width: min(460px, 82vw);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease-out;
  will-change: transform;
  animation: float 6s ease-in-out infinite;
  margin-bottom: 1.5rem;
}
.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 30px rgba(31, 111, 224, 0.35));
}
@keyframes float { 50% { translate: 0 -10px; } }

.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-title span { color: var(--blue-hover); text-shadow: 0 0 30px var(--blue-glow); }

.hero-sub { color: var(--text-2); max-width: 560px; font-size: 1.05rem; margin-bottom: 2rem; }

.socials { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
.social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  min-width: 200px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  text-align: left;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.social svg { width: 26px; height: 26px; fill: currentColor; flex-shrink: 0; }
.social strong { display: block; font-size: 0.95rem; }
.social small { color: var(--muted); font-size: 0.75rem; }
.social:hover { transform: translateY(-3px); }
.social.fb svg { color: #1877f2; }
.social.yt svg { color: #ff0033; }
.social.dc svg { color: #5865f2; }
.social.fb:hover { border-color: #1877f2; box-shadow: 0 10px 30px rgba(24, 119, 242, 0.25); }
.social.yt:hover { border-color: #ff0033; box-shadow: 0 10px 30px rgba(255, 0, 51, 0.2); }
.social.dc:hover { border-color: #5865f2; box-shadow: 0 10px 30px rgba(88, 101, 242, 0.25); }

.scroll-cue { position: absolute; bottom: 1.6rem; width: 26px; height: 42px; border: 2px solid var(--border-hover); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--blue-hover); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ─── Sections ─── */
.section { max-width: 1000px; margin: 0 auto; padding: 2.5rem 1.25rem; scroll-margin-top: 70px; }

.podcast-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.2rem;
  border-radius: 22px;
  border: 1px solid rgba(61, 134, 245, 0.45);
  background: linear-gradient(135deg, rgba(31, 111, 224, 0.2), var(--card) 60%);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 50px rgba(31, 111, 224, 0.15);
  transition: transform 0.25s, box-shadow 0.25s;
}
.podcast-card:hover { transform: translateY(-4px); box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 70px rgba(31, 111, 224, 0.3); }
.podcast-card:hover .btn-primary { background: var(--blue-hover); }
.podcast-cover { width: 150px; height: 150px; border-radius: 20px; background: #000; object-fit: contain; border: 1px solid var(--border); }
.kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-hover); }
.podcast-body h2 { font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.3; margin: 0.4rem 0 0.6rem; }
.podcast-latest { color: var(--text-2); margin-bottom: 1.2rem; }
.podcast-latest strong { color: var(--text); }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 60px; }
.eq i { width: 6px; height: 60px; border-radius: 3px; background: var(--blue-hover); transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.4s; }
.eq i:nth-child(3) { animation-delay: -0.8s; }
.eq i:nth-child(4) { animation-delay: -0.2s; }
.eq i:nth-child(5) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.2); } 50% { transform: scaleY(1); } }

.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.mini-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}
.mini-card:hover { transform: translateY(-3px); border-color: var(--blue); }
.mini-icon { font-size: 1.8rem; }
.mini-card strong { display: block; }
.mini-card small { color: var(--muted); font-size: 0.8rem; }
.mini-card > span:nth-child(2) { flex: 1; }
.mini-go { color: var(--blue-hover); font-size: 1.2rem; transition: transform 0.2s; }
.mini-card:hover .mini-go { transform: translateX(4px); }

.panel {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem 2.2rem;
}
.panel h2 { font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.4rem; }
.panel p { color: var(--text-2); }

.newsletter { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center; }
.nl-row { display: flex; gap: 0.6rem; }

input[type="email"], input[type="text"], textarea {
  width: 100%;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(6, 8, 12, 0.7);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 111, 224, 0.25); }
textarea { resize: vertical; min-height: 130px; }

.consent { display: flex; gap: 0.55rem; align-items: flex-start; margin-top: 0.8rem; font-size: 0.8rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 0.2rem; accent-color: var(--blue); width: 15px; height: 15px; flex-shrink: 0; }

.form-msg { font-size: 0.88rem; color: #ff7474; margin-top: 0.6rem; min-height: 1.2em; }
.form-msg:empty { min-height: 0; margin: 0; }
.form-msg.ok { color: #45e08f; }

.contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2rem; }
.contact form { display: flex; flex-direction: column; gap: 0.8rem; }
.contact .btn { align-self: flex-start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.mail-link { display: inline-block; margin-top: 1rem; color: var(--text); font-weight: 600; text-decoration: none; padding: 0.6rem 0.9rem; border-radius: 10px; border: 1px solid var(--border); }
.mail-link:hover { border-color: var(--blue); }
.fine { font-size: 0.78rem; color: var(--muted) !important; }

.footer { text-align: center; padding: 3rem 1.25rem 2.5rem; color: var(--muted); font-size: 0.85rem; }
.footer img { opacity: 0.8; margin-bottom: 0.6rem; }
.footer a { color: var(--text-2); }

.toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  background: var(--card-solid);
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Sections fade in as you scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
.reveal.in { opacity: 1; transform: none; }

/* ═══ Intro animation (CSS only, ~3.5 s) ═══ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #001a36 0%, #000 100%);
  cursor: pointer;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.intro.done { opacity: 0; visibility: hidden; }
.intro-stripes {
  position: absolute;
  inset: 0;
  /* 12 glowing blue stripes drawn with one gradient: no extra elements */
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 6px), #1a8cff calc(100% / 12 - 6px) calc(100% / 12));
  filter: drop-shadow(0 0 8px #00bfff);
  transform: translateY(100%);
  animation: stripesUp 2.6s cubic-bezier(0.5, 0, 0.3, 1) forwards;
}
@keyframes stripesUp {
  0% { transform: translateY(100%); opacity: 0; }
  35% { transform: translateY(0); opacity: 0.8; }
  70% { transform: translateY(0); opacity: 0.55; }
  100% { transform: translateY(-110%); opacity: 0; }
}
.intro-circle {
  position: absolute;
  width: min(420px, 75vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid #00bfff;
  box-shadow: 0 0 30px #00bfff, inset 0 0 30px rgba(0, 191, 255, 0.4);
  transform: scale(0);
  opacity: 0;
  animation: circleIn 1s cubic-bezier(0.3, 1.6, 0.5, 1) 1.7s forwards;
}
@keyframes circleIn { to { transform: scale(1); opacity: 1; } }
.intro-mid, .intro-welcome { position: absolute; text-align: center; padding: 0 1rem; opacity: 0; }
.intro-mid {
  font-size: clamp(1.4rem, 4.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #e0f7ff;
  text-shadow: 0 0 20px rgba(0, 180, 255, 0.7);
  animation: midText 2.2s ease 0.4s forwards;
}
@keyframes midText {
  0% { opacity: 0; transform: translateY(80px); }
  45%, 65% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-40px); }
}
.intro-welcome {
  font-family: var(--display);
  font-size: clamp(1.3rem, 4.5vw, 2.4rem);
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 0 25px rgba(0, 180, 255, 0.9);
  animation: welcome 1.1s ease 2.5s forwards;
}
.intro-welcome strong { color: #5fb8ff; }
@keyframes welcome { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1.03); } }
.intro-skip { position: absolute; bottom: 1.5rem; font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); letter-spacing: 0.05em; }

@media (max-height: 820px) { .scroll-cue { display: none; } }

/* ─── Responsive ─── */
@media (max-width: 800px) {
  .podcast-card { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 1.2rem; padding: 1.8rem 1.4rem; }
  .podcast-cover { width: 110px; height: 110px; }
  .eq { display: none; }
  .mini-cards, .newsletter, .contact, .grid-2 { grid-template-columns: 1fr; }
  .newsletter, .contact { gap: 1.2rem; }
  .panel { padding: 1.5rem 1.3rem; }
}

@media (max-width: 560px) {
  .top { padding: 0.6rem 1rem; }
  .brand span { display: none; }
  .nav a { padding: 0.4rem 0.55rem; font-size: 0.8rem; }
  .nav a:nth-child(3) { display: none; }
  .social { min-width: 0; flex: 1 1 100%; }
  .nl-row { flex-direction: column; }
  .contact .btn { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
