/* ITBN VIP Gala - design tokenek az itbn.hu paletta alapjan */
:root {
  --itbn-primary: #8274ff;
  --itbn-primary-dark: #6c62cb;
  --itbn-navy: #104b82;
  --itbn-orange: #f15b04;
  --itbn-red: #f12c2c;
  --itbn-green: #21b55b;
  --itbn-ink: #3e3e40;
  --itbn-slate: #6a7995;
  --itbn-slate-light: #8d9eb5;
  --itbn-border: #dbe0e5;
  --itbn-bg: #f6f7fb;
  --itbn-white: #ffffff;
  --itbn-radius: 14px;
  --itbn-shadow: 0 10px 30px rgba(16, 75, 130, 0.08);
  --bs-body-font-family: 'Inter', system-ui, sans-serif;
}

body {
  background: var(--itbn-bg);
  color: var(--itbn-ink);
  font-family: 'Inter', system-ui, sans-serif;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-weight: 700;
}

a {
  color: var(--itbn-primary-dark);
}

.btn-itbn {
  background: linear-gradient(135deg, var(--itbn-primary) 0%, var(--itbn-primary-dark) 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(130, 116, 255, 0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-itbn:hover, .btn-itbn:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(130, 116, 255, 0.45);
}
.btn-itbn:disabled {
  opacity: 0.6;
  transform: none;
}

.btn-outline-itbn {
  border: 2px solid var(--itbn-primary);
  color: var(--itbn-primary-dark);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  background: transparent;
}
.btn-outline-itbn:hover,
.btn-outline-itbn.active {
  background: var(--itbn-primary);
  color: #fff;
}

.card-itbn {
  background: var(--itbn-white);
  border-radius: var(--itbn-radius);
  box-shadow: var(--itbn-shadow);
  border: 1px solid var(--itbn-border);
}

.hero-gala {
  position: relative;
  color: #fff;
  overflow: hidden;
  background-color: var(--itbn-navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 82vh;
  display: flex;
  align-items: center;
}
.hero-gala::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 88% 15%, rgba(233, 95, 19, 0.16), transparent 60%),
    radial-gradient(650px 400px at 5% 90%, rgba(107, 79, 166, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(23, 21, 29, 0.55) 0%, rgba(15, 14, 19, 0.82) 100%);
}
.hero-gala::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(233, 95, 19, 0.9) 0%, rgba(107, 79, 166, 0.9) 100%);
  height: 4px;
  top: auto;
}
.hero-gala .hero-content {
  position: relative;
  z-index: 2;
}
.hero-gala .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f2f0f5;
  margin-bottom: 1.25rem;
}
.hero-gala h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
@media (max-width: 767.98px) {
  .hero-gala {
    min-height: 60vh;
  }
}

.badge-status-invited { background: var(--itbn-slate-light); color: #fff; }
.badge-status-registered { background: var(--itbn-green); color: #fff; }
.badge-status-cancelled { background: var(--itbn-red); color: #fff; }
.badge-status-pending { background: var(--itbn-orange); color: #fff; }
.badge-status-active { background: var(--itbn-green); color: #fff; }
.badge-status-disabled { background: var(--itbn-slate); color: #fff; }

.form-control:focus, .form-select:focus {
  border-color: var(--itbn-primary);
  box-shadow: 0 0 0 0.2rem rgba(130, 116, 255, 0.2);
}

.sidebar-itbn {
  background: var(--itbn-white);
  border-right: 1px solid var(--itbn-border);
  min-height: 100vh;
}
.sidebar-itbn .nav-link {
  color: var(--itbn-ink);
  border-radius: 10px;
  font-weight: 500;
  padding: 0.6rem 1rem;
}
.sidebar-itbn .nav-link.active,
.sidebar-itbn .nav-link:hover {
  background: rgba(130, 116, 255, 0.12);
  color: var(--itbn-primary-dark);
}

.kpi-card {
  border-radius: var(--itbn-radius);
  padding: 1.25rem 1.5rem;
  color: #fff;
  box-shadow: var(--itbn-shadow);
}
.kpi-card .kpi-value {
  font-size: 2rem;
  font-weight: 700;
}
.kpi-purple { background: linear-gradient(135deg, #8274ff, #6c62cb); }
.kpi-navy { background: linear-gradient(135deg, #104b82, #2c6fa8); }
.kpi-green { background: linear-gradient(135deg, #21b55b, #1a8e47); }
.kpi-orange { background: linear-gradient(135deg, #f15b04, #d64d00); }
.kpi-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  opacity: 0.85;
}
.kpi-icon svg { width: 100%; height: 100%; }

.chart-wrap {
  position: relative;
  height: 280px;
}
.chart-wrap-sm {
  height: 220px;
}

.code-input {
  letter-spacing: 0.4em;
  font-size: 1.6rem;
  text-align: center;
  font-weight: 700;
}

.lang-col + .lang-col {
  border-left: 1px solid var(--itbn-border);
}
@media (max-width: 991.98px) {
  .lang-col + .lang-col {
    border-left: none;
    border-top: 1px solid var(--itbn-border);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }
}

.event-meta-strip {
  background: var(--itbn-white);
  border-top: 1px solid var(--itbn-border);
  border-bottom: 1px solid var(--itbn-border);
}
.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.event-meta-item .icon-circle {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.map-section {
  background: var(--itbn-navy);
}
.map-frame-wrap {
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 320px;
  border: 0;
  display: block;
}
@media (max-width: 767.98px) {
  .map-frame-wrap {
    aspect-ratio: 4 / 5;
  }
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(130, 116, 255, 0.12);
  color: var(--itbn-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle svg {
  width: 30px;
  height: 30px;
}

.transport-card {
  text-align: center;
}
.transport-card .icon-circle {
  margin: 0 auto 1rem;
}

.contact-callout {
  background: linear-gradient(135deg, rgba(130, 116, 255, 0.1), rgba(16, 75, 130, 0.08));
  border: 1px solid var(--itbn-border);
  border-radius: var(--itbn-radius);
}

/* Publikus mikrosite szinvilaga - a megujult itbn.hu alapjan: vilagos, feher/vilagosszurke
   tartalmi szekciok, es ket elsodleges brand-akcent: narancs (CTA-k, elsodleges kiemeles) es
   lila (masodlagos kiemeles, pl. kategoria-jelolesek), kis mennyisegben kek harmadlagos
   akcenttel. Csak a hero szekcio marad sotet, a tobbi tartalom feher/vilagos kartyakon fut,
   ahogy az itbn.hu "A kozponti kuldetes" es hasonlo szekcioi is. Tipografia: Inter (torzsszoveg),
   Space Grotesk (cimsorok). */
body.public-theme {
  --itbn-primary: #e6570a;
  --itbn-primary-dark: #c2480a;
  --itbn-navy: #17151d;
  --itbn-orange: #e6570a;
  --itbn-purple: #6b4fa6;
  --itbn-purple-dark: #57408a;
  --itbn-blue: #3061d6;
  --itbn-red: #e0353f;
  --itbn-green: #21b55b;
  --itbn-ink: #232228;
  --itbn-slate: #6b6a72;
  --itbn-slate-light: #9694a0;
  --itbn-border: #e8e6ec;
  --itbn-bg: #f7f6f8;
  --itbn-white: #ffffff;
  --itbn-shadow: 0 10px 30px rgba(23, 21, 29, 0.07);
  --bs-body-font-family: 'Inter', system-ui, sans-serif;
}
body.public-theme h1,
body.public-theme h2,
body.public-theme h3,
body.public-theme h4,
body.public-theme .brand-font {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  color: var(--itbn-ink);
}
body.public-theme .hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}
body.public-theme a {
  color: var(--itbn-primary-dark);
}
body.public-theme .text-muted {
  color: var(--itbn-slate) !important;
}
body.public-theme .btn-itbn {
  background: var(--itbn-primary);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  box-shadow: 0 10px 24px rgba(230, 87, 10, 0.28);
}
body.public-theme .btn-itbn:hover,
body.public-theme .btn-itbn:focus {
  background: var(--itbn-primary-dark);
  box-shadow: 0 12px 28px rgba(230, 87, 10, 0.36);
}
body.public-theme .btn-outline-itbn {
  border-color: var(--itbn-navy);
  color: var(--itbn-navy);
}
body.public-theme .btn-outline-itbn:hover,
body.public-theme .btn-outline-itbn.active {
  background: var(--itbn-navy);
  border-color: var(--itbn-navy);
  color: #fff;
}
body.public-theme .btn-link {
  color: var(--itbn-slate);
}
body.public-theme .btn-link:hover {
  color: var(--itbn-primary);
}
body.public-theme .icon-circle {
  background: rgba(230, 87, 10, 0.1);
  color: var(--itbn-primary);
}
body.public-theme .icon-circle-purple {
  background: rgba(107, 79, 166, 0.1);
  color: var(--itbn-purple);
}
body.public-theme .icon-circle-blue {
  background: rgba(48, 97, 214, 0.1);
  color: var(--itbn-blue);
}
body.public-theme .form-control:focus,
body.public-theme .form-select:focus {
  border-color: var(--itbn-primary);
  box-shadow: 0 0 0 0.2rem rgba(230, 87, 10, 0.18);
}
body.public-theme .is-invalid {
  border-color: var(--itbn-red) !important;
}
body.public-theme .code-input {
  font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
  color: var(--itbn-navy);
}
body.public-theme .badge-status-invited { background: var(--itbn-slate-light); color: #fff; }
body.public-theme .badge-status-registered,
body.public-theme .badge-status-active { background: var(--itbn-green); color: #fff; }
body.public-theme .badge-status-cancelled { background: var(--itbn-red); color: #fff; }
body.public-theme .badge-status-pending { background: var(--itbn-orange); color: #fff; }
body.public-theme .contact-callout {
  background: linear-gradient(135deg, rgba(230, 87, 10, 0.08), rgba(107, 79, 166, 0.08));
  border-color: var(--itbn-border);
}
body.public-theme .site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--itbn-border);
}
body.public-theme .site-logo {
  height: 34px;
  width: auto;
}
body.public-theme .site-logo-badge {
  color: var(--itbn-ink);
  font-weight: 700;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}
body.public-theme .site-footer {
  background: transparent;
  border-top: 1px solid var(--itbn-border);
  color: var(--itbn-slate);
}
body.public-theme .site-footer a {
  color: var(--itbn-slate);
}
body.public-theme .site-footer a:hover {
  color: var(--itbn-primary);
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--itbn-navy) 0%, var(--itbn-primary-dark) 100%);
}

/* Email block editor */
.email-editor-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.btn-editor-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--itbn-border);
  background: var(--itbn-white);
  color: var(--itbn-ink);
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-editor-tab.active {
  background: var(--itbn-primary);
  border-color: var(--itbn-primary);
  color: #fff;
}
.btn-editor-tab svg {
  width: 18px;
  height: 18px;
}
.editor-side-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--itbn-slate);
  margin-bottom: 0.5rem;
}
.block-palette {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.block-add-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.4rem;
  border: 1px solid var(--itbn-border);
  border-radius: 10px;
  background: var(--itbn-white);
  color: var(--itbn-ink);
  font-size: 0.75rem;
  font-weight: 600;
}
.block-add-btn:hover {
  border-color: var(--itbn-primary);
  color: var(--itbn-primary-dark);
  background: rgba(130, 116, 255, 0.08);
}
.block-add-btn svg {
  width: 20px;
  height: 20px;
}
.email-preview-frame {
  border: 1px solid var(--itbn-border);
  border-radius: 10px;
  overflow: hidden;
  background: #eef0f5;
}
.email-preview-frame iframe {
  width: 100%;
  height: 68vh;
  border: 0;
  display: block;
  background: #fff;
}
.block-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--itbn-border);
  border-radius: 8px;
  margin-bottom: 0.4rem;
  cursor: pointer;
  font-size: 0.8rem;
}
.block-list-item.active {
  border-color: var(--itbn-primary);
  background: rgba(130, 116, 255, 0.08);
}
.block-list-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.block-list-actions {
  display: flex;
  gap: 0.2rem;
  flex-shrink: 0;
}
.block-list-actions button {
  border: none;
  background: transparent;
  color: var(--itbn-slate);
  width: 20px;
  height: 20px;
  line-height: 1;
  border-radius: 4px;
  font-size: 0.85rem;
}
.block-list-actions button:hover {
  background: var(--itbn-border);
  color: var(--itbn-ink);
}
.block-list-actions button:disabled {
  opacity: 0.3;
}
.placeholder-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--itbn-border);
  border-radius: 8px;
  background: var(--itbn-white);
  margin-bottom: 0.4rem;
  text-align: left;
}
.placeholder-chip:hover {
  border-color: var(--itbn-primary);
  background: rgba(130, 116, 255, 0.08);
}
.placeholder-chip code {
  font-size: 0.72rem;
  color: var(--itbn-primary-dark);
}
.placeholder-chip span {
  font-size: 0.72rem;
  color: var(--itbn-slate);
}
