/* 1Red UK Casino - Styles */
:root {
  --bg: #0c0c0f;
  --bg-soft: #121217;
  --text: #f3f4f6;
  --muted: #c9cbd1;
  --primary: #e11d2e;
  --primary-600: #c8102e;
  --outline: #ffffff22;
  --container: 1200px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Enhanced Focus Styles for Better Accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 8px rgba(225, 29, 46, 0.4);
}



/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Desktop Navigation */
.desktop-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: var(--bg-soft);
  border-right: 1px solid var(--outline);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.nav-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.logo {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
}

.nav-list {
  list-style: none;
  flex: 1;
}

.nav-list li {
  margin-bottom: 8px;
}

.nav-list a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
}

.nav-list a:hover,
.nav-list a:focus {
  background: var(--outline);
  color: var(--text);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-cta {
  margin-top: auto;
}

/* Navigation Auth Buttons */
.nav-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.nav-auth-buttons .btn {
  font-size: 14px;
  padding: 12px 20px;
  text-align: center;
  font-weight: 500;
}

/* Mobile Header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--outline);
  z-index: 200;
  padding: 12px 0;
}

.mobile-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.burger-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.burger-menu span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.burger-menu[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger-menu[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 220px;
  height: 100vh;
  background: var(--bg-soft);
  z-index: 150;
  transition: left 0.3s ease;
  padding: 100px 16px 16px;
  border-right: 1px solid var(--outline);
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav-list {
  list-style: none;
}

.mobile-nav-list li {
  margin-bottom: 8px;
}

.mobile-nav-list a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 16px;
}

.mobile-nav-list a:hover,
.mobile-nav-list a:focus {
  background: var(--outline);
  color: var(--text);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Mobile Auth Buttons */
.mobile-auth-buttons {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--outline);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-auth-buttons .btn {
  font-size: 14px;
  padding: 12px 20px;
  font-weight: 500;
}

/* Main Content */
.main-content {
  margin-left: 220px;
  min-height: 100vh;
}

/* Sections */
.section {
  padding: 80px 0;
  scroll-margin-top: 80px;
}

.section:nth-child(even) {
  background: var(--bg-soft);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
.hero-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.hero-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 200px;
  height: auto;
  aspect-ratio: 2096/490;
  background: url('/images/banners/main-banner.png') center/contain no-repeat;
  background-size: contain;
  display: block;
  overflow: hidden;
  scroll-margin-top: 0;
  transition: opacity 0.3s ease;
}

.hero-link:hover .hero {
  opacity: 0.9;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}



.compliance-text {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 24px;
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(225, 29, 46, 0.3);
}

.btn-large {
  padding: 20px 40px;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

.btn-secondary {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--outline);
}

.btn-secondary:hover {
  background: var(--outline);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 29, 46, 0.2);
}

/* Slots Grid */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.slot-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  aspect-ratio: 1;
}

.slot-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(225, 29, 46, 0.3);
}

.slot-card:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.slot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bonuses Section */
.language-toggle {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.lang-btn {
  padding: 8px 16px;
  border: 1px solid var(--outline);
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.bonus-summary {
  background: var(--bg-soft);
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 48px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--outline);
}

.summary-item:last-child {
  border-bottom: none;
}

.bonuses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.bonus-card {
  background: var(--bg-soft);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}

.bonus-number {
  position: absolute;
  top: -16px;
  left: 32px;
  background: var(--primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.bonus-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 8px;
}

.bonus-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.bonus-game {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 0.875rem;
}

/* Accordion */
.bonus-accordion {
  border-top: 1px solid var(--outline);
  padding-top: 24px;
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 16px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  border-bottom: 1px solid var(--outline);
  transition: all 0.3s ease;
}

.accordion-trigger:hover,
.accordion-trigger:focus {
  color: var(--primary);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.active {
  max-height: 500px;
  padding: 16px 0;
}



/* Payments Section */
.payments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.payment-column h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--primary);
}

.payment-methods {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.payment-method {
  background: var(--bg-soft);
  border: 1px solid var(--outline);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.method-name {
  font-weight: 500;
}

.payment-icons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.payment-icons img {
  background: white;
  padding: 8px;
  border-radius: 6px;
}

.payment-info {
  background: var(--bg-soft);
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 32px;
}

.payment-info h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
}

.payment-info ul {
  list-style: none;
}

.payment-info li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.payment-info li::before {
  content: '•';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Providers Section */
.providers-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.provider-card {
  display: block;
  padding: 12px;
  background: transparent;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: none;
}

.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.provider-card:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.provider-card img {
  display: block;
  max-width: 120px;
  height: auto;
}

.providers-info {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

/* Tournaments Section */
.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

.tournament-card {
  background: var(--bg-soft);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 32px;
}

.tournament-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
}

.tournament-card p {
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.tournament-card ul {
  list-style: none;
  margin-bottom: 32px;
}

.tournament-card li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  color: var(--muted);
}

.tournament-card li::before {
  content: '✓';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* How to Start Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--outline);
  border-radius: 16px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 24px;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.step-card p {
  color: var(--muted);
  line-height: 1.6;
}

.responsible-gaming {
  background: var(--bg-soft);
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.responsible-gaming h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
}

.responsible-gaming p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.125rem;
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--outline);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 24px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.faq-question:hover,
.faq-question:focus {
  color: var(--primary);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  color: var(--muted);
  line-height: 1.6;
}

/* Support Section */
.support-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.support-info {
  margin-bottom: 32px;
}

.support-icon {
  margin-bottom: 24px;
}

.support-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.support-info p {
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.help-center-info {
  background: var(--bg-soft);
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 24px;
}

.help-center-info p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Footer */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--outline);
  padding: 48px 0 24px;
}

.footer-nav-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-nav-list a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav-list a:hover,
.footer-nav-list a:focus {
  color: var(--primary);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--outline);
}

.copyright {
  color: var(--muted);
  font-size: 0.875rem;
}

/* Mobile Sticky CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-top: 1px solid var(--outline);
  z-index: 100;
}

.mobile-cta .btn {
  width: 100%;
}

/* Responsive Design */
@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-header {
    display: block;
  }
  
  .main-content {
    margin-left: 0;
    padding-top: 80px;
  }
  
  .mobile-cta {
    display: block;
  }
  
  /* Add bottom padding to prevent CTA from overlaying footer */
  body {
    padding-bottom: 80px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .hero {
    height: 400px;
  }
  
  .hero-content {
    padding: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .slots-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
  
  .payments-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .providers-grid {
    gap: 32px;
  }
  
  .tournaments-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero {
    min-height: 150px;
    height: auto;
    background-size: contain;
    background-position: center;
  }
  

  
  .slots-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  
  .bonuses-grid {
    grid-template-columns: 1fr;
  }
  
  .bonus-card {
    padding: 24px;
  }
  
  .providers-grid {
    gap: 24px;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-nav-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
  }
}

@media (max-width: 479px) {
  .slots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .hero {
    min-height: 120px;
    height: auto;
    background-size: contain;
  }
  

  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .bonus-card {
    padding: 20px;
  }
  
  .providers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .provider-card {
    padding: 16px;
  }
  
  .provider-card img {
    max-width: 100px;
  }
}

@media (max-width: 359px) {
  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  

  
  .section-header h2 {
    font-size: 1.5rem;
  }
}

/* Focus and Accessibility */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Smooth scrolling for anchor links */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --outline: #ffffff44;
  }
}

/* Print styles */
@media print {
  .desktop-nav,
  .mobile-header,
  .mobile-nav,
  .mobile-cta {
    display: none;
  }
  
  .main-content {
    margin-left: 0;
    padding-top: 0;
  }
  
  .hero {
    min-height: auto;
    page-break-after: always;
  }
}