/* Bitcoin Casino Ireland 2026 — vertical stack + rank nav */

:root {
  --bg-deep: #0f1419;
  --bg-mid: #1a2332;
  --bg-card: rgba(26, 35, 48, 0.85);
  --bg-card-solid: #1a2332;
  --coral: #e85d4c;
  --coral-dark: #d14a3a;
  --teal: #3dd6c3;
  --teal-dark: #2bb8a8;
  --text: #e8ecf2;
  --text-muted: #94a3b8;
  --border: rgba(61, 214, 195, 0.2);
  --border-coral: rgba(232, 93, 76, 0.35);
  --radius: 12px;
  --radius-lg: 16px;
  --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: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at 80% 0%, rgba(232, 93, 76, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 100%, rgba(61, 214, 195, 0.07) 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(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--coral);
}

a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Update bar */
.update-bar {
  background: linear-gradient(90deg, var(--coral-dark), var(--teal-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(15, 20, 25, 0.94);
  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: 0.9375rem;
  color: var(--text);
}

.logo span {
  color: var(--teal);
}

.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(15, 20, 25, 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(61, 214, 195, 0.1);
}

/* 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(15, 20, 25, 0.9) 0%, rgba(232, 93, 76, 0.35) 55%, rgba(61, 214, 195, 0.2) 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;
  color: #fff;
}

.hero-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.55;
}

/* Trust bar */
.trust-bar {
  background: var(--bg-card-solid);
  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 — vertical stack + rank nav */
.showcase {
  padding: 40px 0 48px;
}

.section-title {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text);
}

.section-title span {
  color: var(--coral);
}

.rank-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.rank-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rank-nav-link:hover,
.rank-nav-link.is-active {
  color: var(--text);
  border-color: var(--teal);
  background: rgba(61, 214, 195, 0.12);
}

.casino-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.carousel-card {
  width: 100%;
  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);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.carousel-card:hover {
  border-color: var(--border-coral);
}

.carousel-card--featured {
  border: 2px solid var(--coral);
  background: linear-gradient(160deg, var(--bg-card-solid) 0%, rgba(232, 93, 76, 0.08) 100%);
}

.card-badge {
  align-self: flex-start;
  background: linear-gradient(90deg, var(--coral), var(--teal));
  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(--teal);
  color: #0f1419;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
}

.carousel-card--featured .rank-badge {
  background: linear-gradient(135deg, var(--coral), var(--teal));
  color: #fff;
}

.logo-link {
  flex-shrink: 0;
}

.casino-logo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 2px solid var(--teal);
  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(--teal);
  font-weight: 700;
  font-size: 0.75rem;
}

.card-bonus {
  background: rgba(61, 214, 195, 0.08);
  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(--coral);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--coral), var(--coral-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(232, 93, 76, 0.35);
}

.btn-cta:hover {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #0f1419;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(61, 214, 195, 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-solid);
  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(--coral);
  color: var(--coral);
  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-solid);
  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(--teal);
}

.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(15, 20, 25, 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-solid);
  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-solid);
}

.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(--teal);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-accordion-item.is-open .faq-accordion-btn::after {
  content: "−";
}

.faq-accordion-btn:hover {
  background: rgba(61, 214, 195, 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-solid);
  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(--teal);
}

.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;
  }

  .casino-stack {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .carousel-card--featured {
    grid-column: 1 / -1;
  }

  .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-card--featured .card-top {
    align-items: center;
  }
}
