/* Book of Dead Casino Ireland 2026 — styles.css */

@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg-deep: #0c1222;
  --bg-card: #151d30;
  --bg-card-hover: #1a2540;
  --violet: #8b5cf6;
  --violet-dark: #7c3aed;
  --sky: #38bdf8;
  --sky-dark: #0ea5e9;
  --amber: #fbbf24;
  --amber-dark: #f59e0b;
  --text: #e8ecf4;
  --text-muted: #94a3b8;
  --border: rgba(139, 92, 246, 0.28);
  --border-sky: rgba(56, 189, 248, 0.3);
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --max-width: 1140px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at 85% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 100%, rgba(56, 189, 248, 0.08) 0%, transparent 45%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body.has-sticky-cta {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sky);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--amber);
}

a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

h1, h2, h3, .section-title, .logo {
  font-family: "Lexend", system-ui, sans-serif;
}

/* Update bar */
.update-bar {
  background: linear-gradient(90deg, var(--violet-dark), var(--sky-dark));
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 16px;
  letter-spacing: 0.02em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 18, 34, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.logo span {
  color: var(--violet);
}

.logo-icon {
  flex-shrink: 0;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(12, 18, 34, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.main-nav.is-open {
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
}

.main-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--text);
  background: rgba(139, 92, 246, 0.12);
}

/* Hero */
.hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("images/hero.webp") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 18, 34, 0.88) 0%, rgba(139, 92, 246, 0.45) 50%, rgba(56, 189, 248, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, var(--sky) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.55;
}

/* Trust bar */
.trust-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.trust-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.trust-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* Showcase — layout #2 horizontal scroll carousel */
.showcase {
  padding: 40px 0 48px;
}

.section-title {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text);
}

.section-title span {
  color: var(--violet);
}

.carousel-wrapper {
  position: relative;
}

.carousel-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 0.2s, border-color 0.2s;
}

.carousel-nav:hover {
  background: var(--bg-card-hover);
  border-color: var(--violet);
  color: var(--violet);
}

.carousel-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.is-active {
  background: var(--violet);
  transform: scale(1.3);
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 16px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex: 0 0 88vw;
  max-width: 340px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}

.carousel-card:hover {
  border-color: var(--border-sky);
}

.carousel-card--featured {
  border: 2px solid var(--violet);
  background: linear-gradient(160deg, var(--bg-card) 0%, rgba(139, 92, 246, 0.08) 100%);
}

.card-badge {
  align-self: flex-start;
  background: linear-gradient(90deg, var(--violet), var(--sky));
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.rank-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
}

.carousel-card--featured .rank-badge {
  background: linear-gradient(135deg, var(--amber), var(--violet));
}

.logo-link {
  flex-shrink: 0;
}

.casino-logo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 2px solid var(--violet);
  border-radius: 12px;
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.perks li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sky);
  font-weight: 700;
  font-size: 0.75rem;
}

.card-bonus {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: center;
}

.bonus-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.bonus-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--violet), var(--violet-dark));
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

.btn-cta:hover {
  background: linear-gradient(135deg, var(--sky), var(--sky-dark));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
}

/* SEO content */
.seo-content {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.seo-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.seo-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.seo-content p:last-child {
  margin-bottom: 0;
}

/* FAQ teaser */
.faq-teaser {
  padding: 40px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.faq-teaser h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.faq-item {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.faq-question {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Responsible gambling */
.responsible {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.responsible .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  color: var(--amber);
  font-weight: 800;
  font-size: 1rem;
}

.responsible p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  margin-bottom: 20px;
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--sky);
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 12px;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.7;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(12, 18, 34, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.is-visible {
  display: block;
  transform: translateY(0);
}

/* Subpages */
.page-hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.page-content {
  padding: 40px 0;
}

.page-content h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.page-content ul {
  margin: 0 0 16px 20px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.page-content li {
  margin-bottom: 6px;
  line-height: 1.6;
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.faq-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-accordion-btn::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--violet);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-accordion-item.is-open .faq-accordion-btn::after {
  content: "−";
}

.faq-accordion-btn:hover {
  background: rgba(139, 92, 246, 0.08);
}

.faq-accordion-body {
  display: none;
  padding: 0 16px 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-accordion-item.is-open .faq-accordion-body {
  display: block;
}

/* Contact form */
.contact-form {
  max-width: 520px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--violet);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    position: static;
    background: none;
    border: none;
    padding: 0;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 4px;
    padding: 0;
  }

  .main-nav a {
    padding: 8px 14px;
    font-size: 0.875rem;
  }

  .hero {
    min-height: 340px;
  }

  .trust-items {
    flex-direction: row;
    justify-content: center;
    gap: 32px;
  }

  .carousel-card {
    flex: 0 0 320px;
  }

  .sticky-cta {
    display: none !important;
  }

  body.has-sticky-cta {
    padding-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 400px;
  }

  .hero-content {
    padding: 56px 16px;
  }

  .carousel-controls {
    display: flex;
  }

  .carousel-card {
    flex: 0 0 340px;
  }

  .carousel-card--featured {
    flex: 0 0 360px;
  }

  .carousel-track {
    padding: 8px 0 16px;
  }
}
