/*
 * betfair casino - Design Stylesheet
 * Prefix: sf45-
 * Dark Navy/Orange theme - Mobile-first design
 */

/* CSS Variables */
:root {
  --sf45-primary: #FF5722;
  --sf45-secondary: #FF6347;
  --sf45-bg: #1C2833;
  --sf45-bg-light: #2C3E50;
  --sf45-bg-card: #243342;
  --sf45-text: #BAE1FF;
  --sf45-text-muted: #A9A9A9;
  --sf45-accent: #FF69B4;
  --sf45-white: #FFFFFF;
  --sf45-border: #34495E;
  --sf45-success: #27AE60;
  --sf45-warning: #F39C12;
  --sf45-radius: 8px;
  --sf45-radius-lg: 12px;
  --sf45-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --sf45-transition: all 0.3s ease;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--sf45-bg);
  color: var(--sf45-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--sf45-primary);
  text-decoration: none;
  transition: var(--sf45-transition);
}

a:hover {
  color: var(--sf45-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.sf45-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, var(--sf45-bg) 0%, var(--sf45-bg-light) 100%);
  border-bottom: 1px solid var(--sf45-border);
  padding: 0 1rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.sf45-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sf45-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.sf45-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sf45-primary);
  white-space: nowrap;
}

.sf45-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sf45-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--sf45-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--sf45-transition);
  white-space: nowrap;
  min-height: 36px;
}

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

.sf45-btn-primary:hover {
  background: var(--sf45-secondary);
  transform: scale(1.03);
}

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

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

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

.sf45-btn-accent:hover {
  background: #FF1493;
}

.sf45-btn-large {
  padding: 1rem 2rem;
  font-size: 1.5rem;
  border-radius: var(--sf45-radius-lg);
  width: 100%;
}

.sf45-menu-btn {
  background: none;
  border: none;
  color: var(--sf45-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.sf45-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

.sf45-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--sf45-bg);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.sf45-mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sf45-border);
}

.sf45-mobile-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sf45-primary);
}

.sf45-close-menu {
  background: none;
  border: none;
  color: var(--sf45-text);
  font-size: 2.4rem;
  cursor: pointer;
}

.sf45-menu-group {
  margin-bottom: 1.5rem;
}

.sf45-menu-group-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--sf45-text-muted);
  margin-bottom: 0.6rem;
  padding-left: 0.5rem;
  letter-spacing: 0.05em;
}

.sf45-menu-link {
  display: block;
  padding: 0.8rem 0.5rem;
  color: var(--sf45-text);
  font-size: 1.3rem;
  border-radius: var(--sf45-radius);
  transition: var(--sf45-transition);
}

.sf45-menu-link:hover {
  background: var(--sf45-bg-light);
  color: var(--sf45-primary);
}

/* Main Content */
.sf45-main {
  padding-top: 56px;
  padding-bottom: 2rem;
}

/* Carousel */
.sf45-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--sf45-radius-lg) var(--sf45-radius-lg);
}

.sf45-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.sf45-carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.sf45-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.sf45-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--sf45-transition);
}

.sf45-carousel-dot-active {
  background: var(--sf45-primary);
  width: 24px;
  border-radius: 5px;
}

/* Container */
.sf45-container {
  padding: 1.5rem 1rem;
}

.sf45-section {
  margin-bottom: 2rem;
}

/* Section Headers */
.sf45-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sf45-primary);
}

.sf45-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sf45-white);
}

.sf45-section-more {
  font-size: 1.2rem;
  color: var(--sf45-primary);
  cursor: pointer;
}

/* Game Grid */
.sf45-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.sf45-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--sf45-transition);
  border-radius: var(--sf45-radius);
  padding: 0.4rem;
  background: var(--sf45-bg-card);
  border: 1px solid var(--sf45-border);
}

.sf45-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,87,34,0.2);
  border-color: var(--sf45-primary);
}

.sf45-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}

.sf45-game-name {
  font-size: 1rem;
  color: var(--sf45-text);
  text-align: center;
  line-height: 1.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  padding: 0 0.2rem;
}

/* Content Cards */
.sf45-card {
  background: var(--sf45-bg-card);
  border: 1px solid var(--sf45-border);
  border-radius: var(--sf45-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}

.sf45-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sf45-primary);
  margin-bottom: 1rem;
}

.sf45-card p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--sf45-text);
  margin-bottom: 0.8rem;
}

.sf45-card ul {
  list-style: none;
  padding: 0;
}

.sf45-card ul li {
  padding: 0.5rem 0;
  font-size: 1.3rem;
  line-height: 1.6rem;
  padding-left: 1.5rem;
  position: relative;
}

.sf45-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sf45-primary);
}

/* CTA Section */
.sf45-cta {
  background: linear-gradient(135deg, var(--sf45-primary) 0%, var(--sf45-secondary) 100%);
  border-radius: var(--sf45-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.sf45-cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sf45-white);
  margin-bottom: 0.8rem;
}

.sf45-cta-text {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.2rem;
}

/* Footer */
.sf45-footer {
  background: var(--sf45-bg-light);
  padding: 2rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--sf45-border);
}

.sf45-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.sf45-footer-brand p {
  font-size: 1.2rem;
  color: var(--sf45-text-muted);
  line-height: 1.6rem;
  margin-bottom: 0.5rem;
}

.sf45-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.sf45-footer-link {
  font-size: 1.2rem;
  color: var(--sf45-text);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--sf45-border);
  border-radius: var(--sf45-radius);
  transition: var(--sf45-transition);
}

.sf45-footer-link:hover {
  color: var(--sf45-primary);
  border-color: var(--sf45-primary);
}

.sf45-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--sf45-text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--sf45-border);
}

/* Bottom Navigation */
.sf45-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, var(--sf45-bg-light) 0%, var(--sf45-bg) 100%);
  border-top: 1px solid var(--sf45-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}

.sf45-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--sf45-text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--sf45-transition);
  gap: 2px;
  position: relative;
}

.sf45-bottom-nav-btn span.sf45-nav-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.sf45-bottom-nav-btn span.sf45-nav-label {
  font-size: 1rem;
  line-height: 1.2;
}

.sf45-bottom-nav-btn:hover,
.sf45-bottom-nav-active {
  color: var(--sf45-primary);
}

.sf45-bottom-nav-btn.sf45-bottom-nav-active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--sf45-primary);
  border-radius: 0 0 3px 3px;
}

/* Scroll Top */
.sf45-scroll-top {
  position: fixed;
  bottom: 72px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sf45-primary);
  color: var(--sf45-white);
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--sf45-shadow);
  transition: var(--sf45-transition);
}

.sf45-scroll-top:hover {
  background: var(--sf45-secondary);
}

/* Utility */
.sf45-text-center { text-align: center; }
.sf45-text-primary { color: var(--sf45-primary); }
.sf45-text-accent { color: var(--sf45-accent); }
.sf45-text-muted { color: var(--sf45-text-muted); }
.sf45-mb-1 { margin-bottom: 0.5rem; }
.sf45-mb-2 { margin-bottom: 1rem; }
.sf45-mb-3 { margin-bottom: 1.5rem; }
.sf45-mt-2 { margin-top: 1rem; }
.sf45-mt-3 { margin-top: 1.5rem; }
.sf45-fw-bold { font-weight: 700; }
.sf45-inline-link {
  color: var(--sf45-primary);
  text-decoration: underline;
  font-weight: 600;
}

/* Testimonial */
.sf45-testimonial {
  background: var(--sf45-bg-card);
  border-left: 3px solid var(--sf45-primary);
  border-radius: 0 var(--sf45-radius) var(--sf45-radius) 0;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}

.sf45-testimonial-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sf45-primary);
  margin-bottom: 0.3rem;
}

.sf45-testimonial-text {
  font-size: 1.2rem;
  color: var(--sf45-text);
  line-height: 1.5rem;
  font-style: italic;
}

/* Payment Icons */
.sf45-payment-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.sf45-payment-item {
  background: var(--sf45-bg-card);
  border: 1px solid var(--sf45-border);
  border-radius: var(--sf45-radius);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--sf45-text);
}

/* Winner Badge */
.sf45-winner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--sf45-bg-card);
  border-radius: var(--sf45-radius);
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
}

.sf45-winner-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sf45-warning);
}

.sf45-winner-game {
  font-size: 1.1rem;
  color: var(--sf45-text-muted);
}

/* Category Highlight */
.sf45-category-highlight {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.sf45-cat-item {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--sf45-bg-card), var(--sf45-bg-light));
  border: 1px solid var(--sf45-border);
  border-radius: var(--sf45-radius-lg);
  padding: 1rem;
  text-align: center;
  min-width: 120px;
  cursor: pointer;
  transition: var(--sf45-transition);
}

.sf45-cat-item:hover {
  border-color: var(--sf45-primary);
}

.sf45-cat-icon {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.sf45-cat-name {
  font-size: 1.2rem;
  color: var(--sf45-text);
  font-weight: 600;
}

/* Mobile Padding for Bottom Nav */
@media (max-width: 768px) {
  .sf45-main {
    padding-bottom: 72px;
  }
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .sf45-bottom-nav {
    display: none;
  }
}

/* Responsive adjustments */
@media (max-width: 360px) {
  .sf45-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .sf45-site-name {
    font-size: 1.3rem;
  }
}
