/* Best Crypto Casino Ireland 2026 — layout #8 full hero + bordered cards */

@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap");

:root {
  --bg-deep: #0c1117;
  --bg-card: #151c26;
  --bg-inset: #0f151d;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --gold: #e8c547;
  --gold-dark: #c9a832;
  --text: #e8edf3;
  --text-muted: #8b9cb3;
  --border: rgba(20, 184, 166, 0.28);
  --border-gold: rgba(232, 197, 71, 0.45);
  --glow: rgba(20, 184, 166, 0.15);
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --max-width: 1160px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Rubik", system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  background-image:
    linear-gradient(rgba(20, 184, 166, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  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(--gold);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

h1, h2, h3, .logo, .section-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
}

/* Update bar */
.update-bar {
  background: var(--teal-dark);
  color: #fff;
  text-align: center;
  font-size: 0.8125rem;
  padding: 6px 16px;
  letter-spacing: 0.02em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 17, 23, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  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(12, 17, 23, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 16px;
}

.main-nav.is-open {
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--text);
  background: rgba(20, 184, 166, 0.1);
}

.main-nav a.is-active {
  color: var(--teal);
}

/* Hero — layout #8 full hero */
.hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: 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, 17, 23, 0.75) 0%, rgba(13, 148, 136, 0.35) 50%, rgba(12, 17, 23, 0.88) 100%),
    linear-gradient(180deg, transparent 40%, rgba(12, 17, 23, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 56px 16px;
  text-align: center;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(1.625rem, 5.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
  color: var(--teal);
  font-weight: 500;
  max-width: 540px;
  margin: 0 auto;
}

/* 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: 10px;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-icon {
  font-size: 1rem;
}

/* Showcase — bordered cards */
.showcase {
  padding: 36px 0 44px;
}

.section-title {
  font-size: clamp(1.25rem, 4vw, 1.625rem);
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.section-title span {
  color: var(--teal);
}

.bordered-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bordered-card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px 16px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(20, 184, 166, 0.08);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.bordered-card:hover {
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow: var(--shadow), 0 0 28px var(--glow);
}

.bordered-card--featured {
  border-color: var(--border-gold);
  box-shadow: var(--shadow), 0 0 24px rgba(232, 197, 71, 0.12);
}

.bordered-card--featured::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.card-feature-badge {
  position: absolute;
  top: -11px;
  right: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0c1117;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
}

.rank-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 44px 44px 0 0;
  border-color: var(--teal) transparent transparent transparent;
  border-radius: var(--radius-lg) 0 0 0;
}

.bordered-card--featured .rank-ribbon {
  border-color: var(--gold) transparent transparent transparent;
}

.rank-ribbon span {
  position: absolute;
  top: -38px;
  left: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #0c1117;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 36px;
}

.logo-link {
  flex-shrink: 0;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.logo-link:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px var(--glow);
}

.casino-logo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--border);
}

.card-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 36px;
}

.perks li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.bonus-inset {
  background: var(--bg-inset);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 36px;
}

.bonus-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.bonus-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.3;
}

.bordered-card--featured .bonus-value {
  color: var(--gold);
}

.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  background: linear-gradient(135deg, #2dd4bf, var(--teal));
  color: #fff;
  transform: translateY(-1px);
}

.bordered-card--featured .btn-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0c1117;
}

.bordered-card--featured .btn-cta:hover {
  background: linear-gradient(135deg, #f5d76e, var(--gold));
  color: #0c1117;
}

.btn-cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* SEO content */
.seo-content {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.seo-content h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--teal);
}

.seo-content p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.9375rem;
}

.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);
  border-bottom: 1px solid var(--border);
}

.faq-teaser h2 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.faq-item:last-of-type {
  border-bottom: none;
}

.faq-question {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 6px;
  color: var(--text);
}

.faq-answer {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.faq-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Responsible gambling */
.responsible {
  padding: 32px 0;
  text-align: center;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.responsible p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.responsible a {
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #080c10;
  border-top: 1px solid var(--border);
  padding: 32px 0 24px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: var(--teal);
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

.copyright {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(12, 17, 23, 0.97);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  backdrop-filter: blur(8px);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta .btn-cta {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0c1117;
}

/* Subpages */
.page-hero {
  padding: 40px 0 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.page-content {
  padding: 32px 0 48px;
}

.page-content h2 {
  font-size: 1.125rem;
  color: var(--teal);
  margin: 28px 0 12px;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p,
.page-content li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.page-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-accordion-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  padding: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.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-body {
  display: none;
  padding: 0 16px 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.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;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  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;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  text-align: center;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Tablet */
@media (min-width: 480px) {
  .trust-items {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
  }
}

@media (min-width: 768px) {
  body.has-sticky-cta {
    padding-bottom: 0;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    position: static;
    background: none;
    border: none;
    padding: 0;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 4px;
  }

  .main-nav a {
    padding: 8px 14px;
    font-size: 0.875rem;
  }

  .hero {
    min-height: 58vh;
  }

  .card-body {
    display: grid;
    grid-template-columns: auto 1fr 220px;
    align-items: center;
    gap: 20px;
    padding-left: 36px;
  }

  .card-header {
    flex-direction: column;
    padding-left: 0;
    text-align: center;
    gap: 10px;
  }

  .perks {
    padding-left: 0;
  }

  .bonus-inset {
    margin-left: 0;
    min-height: 160px;
    justify-content: center;
  }

  .sticky-cta {
    display: none !important;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero {
    min-height: 60vh;
  }

  .bordered-card {
    padding: 24px 24px 20px;
  }

  .card-body {
    grid-template-columns: 140px 1fr 240px;
    gap: 24px;
  }

  .bonus-value {
    font-size: 1.25rem;
  }
}

@media (max-width: 767px) {
  .sticky-cta {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
