/* ============================================================
   MARA — rendezvényszervező linktree
   Fehér alap · piros accent · glassmorphism · party feeling
   ============================================================ */

:root {
  --red: #ff1e3c;
  --red-deep: #d60029;
  --red-soft: #ff5e74;
  --ink: #15151a;
  --ink-soft: #43434f;
  --muted: #8a8a96;
  --paper: #ffffff;
  --paper-2: #f6f6f9;
  --line: rgba(20, 20, 26, 0.08);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 50px -20px rgba(20, 20, 26, 0.28);
  --shadow-red: 0 18px 45px -16px rgba(255, 30, 60, 0.55);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 620px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background-color: #ffffff; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: #ffffff;
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Atmoszféra: lebegő piros fény-buborékok ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% -10%, #fff 0%, #fff 45%, #fff5f6 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.blob.b1 {
  width: 46vw; height: 46vw;
  background: radial-gradient(circle, var(--red) 0%, transparent 70%);
  top: -8vw; left: -10vw;
  animation: float1 16s ease-in-out infinite;
}
.blob.b2 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, var(--red-soft) 0%, transparent 70%);
  top: 20vh; right: -14vw;
  animation: float2 19s ease-in-out infinite;
}
.blob.b3 {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, #ff8aa0 0%, transparent 70%);
  bottom: -18vw; left: 20vw;
  opacity: 0.4;
  animation: float3 22s ease-in-out infinite;
}
@keyframes float1 { 50% { transform: translate(8vw, 6vh) scale(1.12); } }
@keyframes float2 { 50% { transform: translate(-6vw, 8vh) scale(1.08); } }
@keyframes float3 { 50% { transform: translate(4vw, -6vh) scale(1.15); } }

/* finom szemcse-overlay a textúráért */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) 20px 80px;
}

/* ---------- Hero ---------- */
.hero { text-align: center; margin-bottom: clamp(28px, 6vw, 48px); }

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(76px, 22vw, 168px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--ink);
  position: relative;
  display: inline-block;
}
.logo .dot { color: var(--red); }
.logo::after {
  /* piros aláhúzás-villanás */
  content: "";
  position: absolute;
  left: 8%; right: 8%;
  bottom: -2px; height: 10px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  border-radius: 10px;
  filter: blur(2px);
  opacity: 0.9;
}

/* feltöltött logókép a szöveges felirat helyett */
.logo.has-img { line-height: 1; }
.logo.has-img::after { display: none; }
.logo-img {
  display: block;
  margin: 0 auto;
  max-width: min(440px, 82vw);
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.slogan {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(15px, 4.4vw, 21px);
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-deep);
}
.kicker .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 30, 60, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(255, 30, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 30, 60, 0); }
}

/* ---------- Section heading ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 40px 4px 18px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 6vw, 30px);
  letter-spacing: -0.02em;
}
.section-head .count {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

/* ---------- Event cards ---------- */
.events { display: flex; flex-direction: column; gap: 16px; }

.event {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s;
}
.event::before {
  /* bal oldali piros él */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(var(--red), var(--red-soft));
}
.event:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -22px rgba(255, 30, 60, 0.4);
}

.date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: var(--shadow-red);
  line-height: 1;
}
.date-badge .day { font-family: var(--font-display); font-weight: 800; font-size: 28px; }
.date-badge .mon { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 3px; }
.date-badge.tbd .day { font-size: 20px; }

.event-body { min-width: 0; }
.event-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 4.6vw, 21px);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.event-meta span { display: inline-flex; align-items: center; gap: 5px; }
.event-meta svg { width: 14px; height: 14px; color: var(--red); flex: none; }
.event-desc {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.97); }

.btn-ticket {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-ticket:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -14px rgba(255, 30, 60, 0.7); }

.btn-fb {
  background: var(--glass);
  color: var(--ink);
  border-color: var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-fb:hover { background: #fff; transform: translateY(-2px); }

/* ---------- Feliratkozás ---------- */
.subscribe {
  margin-top: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
}
.subscribe-text h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 5vw, 23px);
  letter-spacing: -0.02em;
}
.subscribe-text p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.subscribe-form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border 0.2s, box-shadow 0.2s;
}
.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 30, 60, 0.15);
}
.subscribe-form .btn-ticket { flex: 0 0 auto; }
.subscribe-msg {
  flex-basis: 100%;
  margin-top: 2px;
  min-height: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.subscribe-msg.ok { color: var(--red-deep); }
.subscribe-msg.err { color: var(--red-deep); }

/* ---------- Socials ---------- */
.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.social {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--glass-strong);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink);
  transition: transform 0.25s, color 0.25s, box-shadow 0.25s;
}
.social svg { width: 22px; height: 22px; }
.social:hover {
  transform: translateY(-4px) rotate(-4deg);
  color: var(--red);
  box-shadow: 0 22px 40px -16px rgba(255,30,60,0.45);
}

/* ---------- About ---------- */
.about {
  margin-top: 22px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--glass-strong);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
}
.about h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 10px;
}
.about p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 46px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.footer a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--muted); }
.footer a:hover { color: var(--red); border-color: var(--red); }

/* ---------- States ---------- */
.empty, .loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-weight: 600;
}
.skeleton {
  height: 110px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #eee 30%, #f7f7f9 50%, #eee 70%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 0.7s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes revealUp { to { opacity: 1; transform: none; } }
