/* =========================================================
   Inboxpeddia — Webmail / Email-client UI theme
   Shared stylesheet for all pages
   ========================================================= */

:root {
  --indigo: #4F46E5;
  --indigo-dark: #4338CA;
  --indigo-soft: #EEF0FE;
  --panel: #F1F3F9;
  --panel-2: #F8F9FC;
  --white: #FFFFFF;
  --slate: #1F2937;
  --slate-soft: #4B5563;
  --slate-muted: #6B7280;
  --line: #E5E7EB;
  --line-soft: #EDEFF5;
  --green: #16A34A;
  --amber: #D97706;
  --pink: #DB2777;
  --star: #F59E0B;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 8px 24px rgba(16, 24, 40, 0.10);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate);
  background: var(--panel);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Toolbar ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.app-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--slate);
}
.brand:hover { text-decoration: none; }

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--indigo), #7C73F0);
  color: #fff;
  font-size: 18px;
  box-shadow: var(--shadow);
}
.brand__name { color: var(--slate); }
.brand__name b { color: var(--indigo); }

.toolbar-spacer { flex: 1; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--slate-soft);
  font-weight: 600;
  font-size: 14px;
}
.main-nav a:hover { background: var(--panel); color: var(--slate); text-decoration: none; }
.main-nav a.is-active { background: var(--indigo-soft); color: var(--indigo); }

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--slate);
}
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger span::before { position: absolute; top: -6px; }
.hamburger span::after { position: absolute; top: 6px; }
.hamburger.is-open span { background: transparent; }
.hamburger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- App layout: left rail + content ---------- */
.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  padding: 26px 0 48px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 86px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
}
.rail__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-muted);
  font-weight: 700;
  margin: 0 0 10px 6px;
}
.rail__chips { display: flex; flex-direction: column; gap: 4px; }
.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--slate-soft);
  font-weight: 600;
  font-size: 14px;
}
.chip:hover { background: var(--panel); color: var(--slate); text-decoration: none; }
.chip.is-active { background: var(--indigo-soft); color: var(--indigo); }
.chip .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--indigo);
}
.chip .dot.green { background: var(--green); }
.chip .dot.amber { background: var(--amber); }
.chip .dot.pink { background: var(--pink); }
.chip .count {
  margin-left: auto;
  font-size: 12px;
  color: var(--slate-muted);
  background: var(--panel);
  border-radius: 999px;
  padding: 1px 8px;
  font-weight: 700;
}

.rail__note {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--panel-2);
  border: 1px dashed var(--line);
  font-size: 12px;
  color: var(--slate-muted);
  line-height: 1.5;
}

.content { min-width: 0; }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel + .panel { margin-top: 22px; }

.panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel-2);
}
.panel__head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.panel__head .sub {
  margin: 0;
  font-size: 13px;
  color: var(--slate-muted);
  font-weight: 500;
}
.panel__head-meta {
  margin-left: auto;
  font-size: 12px;
  color: var(--slate-muted);
  font-weight: 600;
}
.panel__body { padding: 18px 20px; }

/* ---------- Hero (styled as a featured message) ---------- */
.hero {
  background:
    radial-gradient(1200px 320px at 88% -40%, rgba(79,70,229,0.14), transparent 60%),
    var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--indigo-soft);
  border-radius: 999px;
  padding: 6px 12px;
}
.hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  max-width: 760px;
}
.hero p {
  margin: 0 0 22px;
  font-size: 17px;
  color: var(--slate-soft);
  max-width: 680px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  background: var(--indigo);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--indigo);
  cursor: pointer;
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--indigo-dark); text-decoration: none; box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: var(--white);
  color: var(--indigo);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--panel); }

/* ---------- Message rows (partners + bonuses) ---------- */
.msg-list { display: flex; flex-direction: column; }

.msg {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
  transition: background .12s ease;
}
.msg:last-child { border-bottom: 0; }
.msg:hover { background: var(--panel-2); text-decoration: none; }

.msg__star {
  font-size: 16px;
  color: var(--star);
  line-height: 1;
  width: 18px;
  text-align: center;
}
.msg__pin {
  font-size: 14px;
  width: 18px;
  text-align: center;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.avatar.a1 { background: linear-gradient(135deg,#4F46E5,#7C73F0); }
.avatar.a2 { background: linear-gradient(135deg,#0EA5E9,#2563EB); }
.avatar.a3 { background: linear-gradient(135deg,#DB2777,#9333EA); }
.avatar.a4 { background: linear-gradient(135deg,#16A34A,#0EA5A4); }
.avatar.a5 { background: linear-gradient(135deg,#D97706,#DC2626); }
.avatar.a6 { background: linear-gradient(135deg,#0891B2,#4F46E5); }

.msg__main { min-width: 0; }
.msg__subject {
  font-weight: 700;
  font-size: 15px;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.msg__sender {
  font-size: 12px;
  color: var(--slate-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.msg__snippet {
  font-size: 14px;
  color: var(--slate-soft);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.label-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.label-chip.code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: var(--indigo-soft);
  color: var(--indigo-dark);
  letter-spacing: 0.02em;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.badge.featured { background: #E0E7FF; color: #3730A3; }
.badge.hot { background: #FEE2E2; color: #B91C1C; }
.badge.exclusive { background: #DCFCE7; color: #166534; }

.msg__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo);
  white-space: nowrap;
}
.msg:hover .msg__cta { text-decoration: underline; }

/* ---------- Responsible gaming / prose ---------- */
.prose { color: var(--slate-soft); }
.prose p { margin: 0 0 14px; }
.prose h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.5vw, 34px);
  letter-spacing: -0.02em;
  color: var(--slate);
  font-weight: 800;
}
.prose h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  color: var(--slate);
  font-weight: 800;
}
.prose ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.prose li {
  position: relative;
  padding: 10px 12px 10px 40px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--slate-soft);
}
.prose li:last-child { border-bottom: 0; }
.prose li::before {
  content: "✉";
  position: absolute;
  left: 12px;
  top: 10px;
  color: var(--indigo);
  font-size: 14px;
}
.prose li b, .prose li strong { color: var(--slate); }

.lede {
  font-size: 17px;
  color: var(--slate-soft);
}

/* ---------- Footer ---------- */
.app-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--slate-muted);
  font-size: 14px;
}
.app-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.app-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.app-footer nav a { color: var(--slate-soft); font-weight: 600; }
.app-footer__copy { font-weight: 500; }
.age-pill {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  color: #B91C1C;
  background: #FEE2E2;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  margin-right: 6px;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: none;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--slate);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; font-size: 14px; flex: 1; min-width: 200px; }
.cookie-banner .btn { padding: 9px 18px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .rail { position: static; }
  .rail__chips { flex-direction: row; flex-wrap: wrap; }
  .chip { flex: 1 1 auto; }
  .chip .count { display: none; }
}

@media (max-width: 720px) {
  .hamburger { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.is-open { max-height: 340px; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 14px;
  }
  .main-nav a { padding: 12px 10px; border-radius: var(--radius); }

  .hero { padding: 24px 20px; }
  .msg {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }
  .msg__star, .msg__pin { display: none; }
  .msg__snippet { white-space: normal; }
  .msg__cta { display: none; }
  .label-chip, .badge { font-size: 11px; }
}

/* ============================================================
   PROD-2017 — casino logos (partners + bonus rows) & bonus sub-nav
   ============================================================ */
/* White logo chip — replaces the avatar circle in a .msg row.
   White background keeps every operator logo legible on this theme. */
.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 44px;
  flex: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 10px;
  box-shadow: var(--shadow);
}
.logo-chip img {
  max-height: 28px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Plain (non-code) label chip used for bonus type tags */
.label-chip {
  background: var(--panel);
  color: var(--slate-soft);
  border: 1px solid var(--line);
}

/* Bonus category buttons on /bonuses */
.bonus-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Back link on bonus sub-pages */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--indigo);
  margin-bottom: 4px;
}
.back-link:hover { text-decoration: none; opacity: .8; }

@media (max-width: 720px) {
  /* keep the logo chip visible on mobile where avatar/star are hidden */
  .logo-chip { width: 80px; height: 40px; }
  .bonus-cats .btn { flex: 1 1 auto; justify-content: center; }
}
