/**
 * sakla game - design.css
 * All classes use gd47- prefix for namespace isolation
 * Color palette: #CD853F | #495057 | #2C3E50 | #BC8F8F | #CD853F | #F5DEB3
 * Mobile-first responsive design (max-width: 430px base)
 */

:root {
  --gd47-primary: #CD853F;
  --gd47-secondary: #495057;
  --gd47-bg: #2C3E50;
  --gd47-bg-light: #34495E;
  --gd47-accent: #BC8F8F;
  --gd47-text: #F5DEB3;
  --gd47-text-dark: #CD853F;
  --gd47-white: #FFFFFF;
  --gd47-gold: #DAA520;
  --gd47-dark: #1A252F;
  --gd47-card-bg: #2C3E50;
  --gd47-border: rgba(205,133,63,0.3);
  --gd47-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --gd47-radius: 8px;
  --gd47-radius-lg: 12px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--gd47-bg);
  color: var(--gd47-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--gd47-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gd47-gold);
}

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

/* Container */
.gd47-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.gd47-wrapper {
  width: 100%;
  overflow: hidden;
}

/* Header */
.gd47-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--gd47-dark) 0%, var(--gd47-bg) 100%);
  border-bottom: 2px solid var(--gd47-primary);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

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

.gd47-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--gd47-primary);
}

.gd47-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gd47-primary);
  letter-spacing: 0.5px;
}

.gd47-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gd47-header-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  min-height: 32px;
}

.gd47-btn-register {
  background: var(--gd47-primary);
  color: var(--gd47-dark);
}

.gd47-btn-register:hover {
  background: var(--gd47-gold);
  transform: scale(1.05);
}

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

.gd47-btn-login:hover {
  background: rgba(205,133,63,0.15);
}

.gd47-hamburger {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gd47-primary);
  font-size: 2rem;
  margin-left: 0.3rem;
  transition: transform 0.3s;
}

.gd47-hamburger-active {
  transform: rotate(90deg);
}

/* Mobile Menu */
.gd47-mobile-menu {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--gd47-dark);
  border-bottom: 2px solid var(--gd47-primary);
  transform: translateY(-110%);
  opacity: 0;
  transition: all 0.3s ease;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}

.gd47-menu-active {
  transform: translateY(0);
  opacity: 1;
}

.gd47-menu-link {
  display: block;
  padding: 1.1rem 1.6rem;
  color: var(--gd47-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(205,133,63,0.15);
  transition: all 0.2s;
}

.gd47-menu-link:hover {
  background: rgba(205,133,63,0.12);
  color: var(--gd47-primary);
  padding-left: 2.2rem;
}

.gd47-menu-section-title {
  padding: 0.8rem 1.6rem;
  color: var(--gd47-primary);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(205,133,63,0.08);
}

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

@media (max-width: 768px) {
  .gd47-main {
    padding-bottom: 80px;
  }
}

/* Carousel */
.gd47-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0 0 var(--gd47-radius) var(--gd47-radius);
}

.gd47-carousel-track {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 50%;
}

.gd47-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.gd47-slide-active {
  opacity: 1;
}

.gd47-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.gd47-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.gd47-dot-active {
  background: var(--gd47-primary);
  width: 20px;
  border-radius: 4px;
}

/* Section Titles */
.gd47-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gd47-primary);
  text-align: center;
  margin: 2rem 0 1rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.gd47-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gd47-gold);
  border-radius: 2px;
}

/* Category Tabs */
.gd47-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gd47-gold);
  margin: 1.8rem 0 1rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--gd47-primary);
}

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

.gd47-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--gd47-radius);
  padding: 0.5rem 0.2rem;
}

.gd47-game-item:hover {
  transform: scale(1.05);
  background: rgba(205,133,63,0.08);
}

.gd47-game-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--gd47-radius);
  border: 2px solid var(--gd47-border);
  object-fit: cover;
  margin-bottom: 0.3rem;
  transition: border-color 0.2s;
}

.gd47-game-item:hover .gd47-game-icon {
  border-color: var(--gd47-primary);
}

.gd47-game-name {
  font-size: 1.05rem;
  color: var(--gd47-text);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.gd47-card-text {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--gd47-text);
}

.gd47-card-text p {
  margin-bottom: 0.8rem;
}

/* Promo Buttons */
.gd47-promo-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--gd47-primary), var(--gd47-gold));
  color: var(--gd47-dark);
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-align: center;
}

.gd47-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(205,133,63,0.4);
}

.gd47-promo-link {
  color: var(--gd47-primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.gd47-promo-link:hover {
  color: var(--gd47-gold);
}

/* Highlight Box */
.gd47-highlight-box {
  background: linear-gradient(135deg, rgba(205,133,63,0.15), rgba(218,165,32,0.08));
  border: 1px solid var(--gd47-primary);
  border-radius: var(--gd47-radius-lg);
  padding: 1.5rem;
  margin: 1rem 0;
  text-align: center;
}

.gd47-highlight-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gd47-primary);
  margin-bottom: 0.5rem;
}

/* RTP Table */
.gd47-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 1.2rem;
}

.gd47-rtp-table th {
  background: var(--gd47-primary);
  color: var(--gd47-dark);
  padding: 0.6rem 0.4rem;
  font-weight: 700;
  text-align: center;
}

.gd47-rtp-table td {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--gd47-border);
  text-align: center;
  color: var(--gd47-text);
}

.gd47-rtp-table tr:nth-child(even) td {
  background: rgba(205,133,63,0.06);
}

/* Winners List */
.gd47-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(205,133,63,0.1);
}

.gd47-winner-name {
  font-weight: 600;
  color: var(--gd47-gold);
  font-size: 1.3rem;
}

.gd47-winner-amount {
  color: #4CAF50;
  font-weight: 700;
  font-size: 1.3rem;
}

.gd47-winner-game {
  color: var(--gd47-text);
  font-size: 1.1rem;
  opacity: 0.7;
}

/* Payment Methods */
.gd47-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 1rem 0;
}

.gd47-payment-item {
  background: rgba(205,133,63,0.1);
  border: 1px solid var(--gd47-border);
  border-radius: var(--gd47-radius);
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  color: var(--gd47-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Testimonial */
.gd47-testimonial {
  background: rgba(205,133,63,0.08);
  border-left: 3px solid var(--gd47-primary);
  padding: 1rem 1.2rem;
  margin: 0.8rem 0;
  border-radius: 0 var(--gd47-radius) var(--gd47-radius) 0;
}

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

.gd47-testimonial-author {
  color: var(--gd47-gold);
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 0.4rem;
}

/* Footer */
.gd47-footer {
  background: var(--gd47-dark);
  border-top: 2px solid var(--gd47-primary);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}

.gd47-footer-intro {
  text-align: center;
  color: var(--gd47-text);
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  padding: 0 1rem;
}

.gd47-footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 1rem 0;
  padding: 0 1rem;
}

.gd47-footer-btn {
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, var(--gd47-primary), var(--gd47-gold));
  color: var(--gd47-dark);
  border: none;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.gd47-footer-btn:hover {
  transform: scale(1.05);
}

.gd47-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 1rem 0;
  padding: 0 1rem;
}

.gd47-footer-link {
  color: var(--gd47-text);
  font-size: 1.2rem;
  opacity: 0.7;
  transition: all 0.2s;
}

.gd47-footer-link:hover {
  color: var(--gd47-primary);
  opacity: 1;
}

.gd47-footer-copy {
  text-align: center;
  color: var(--gd47-text);
  font-size: 1.1rem;
  opacity: 0.5;
  margin-top: 1rem;
  padding: 0 1rem;
}

/* Bottom Navigation */
.gd47-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, var(--gd47-dark), #0F1923);
  border-top: 2px solid var(--gd47-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.3rem;
}

.gd47-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--gd47-text);
  opacity: 0.7;
  transition: all 0.2s;
  border-radius: 8px;
  padding: 0.3rem;
}

.gd47-bottom-nav-btn:hover,
.gd47-nav-current {
  opacity: 1;
  color: var(--gd47-primary);
  background: rgba(205,133,63,0.1);
  transform: scale(1.08);
}

.gd47-bottom-nav-btn i,
.gd47-bottom-nav-btn .material-icons,
.gd47-bottom-nav-btn ion-icon,
.gd47-bottom-nav-btn bi {
  font-size: 22px;
  margin-bottom: 2px;
}

.gd47-nav-label {
  font-size: 1rem;
  color: inherit;
  font-weight: 500;
}

/* Scroll Animations */
.gd47-animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.gd47-animated {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ Accordion */
.gd47-faq-item {
  border: 1px solid var(--gd47-border);
  border-radius: var(--gd47-radius);
  margin: 0.6rem 0;
  overflow: hidden;
}

.gd47-faq-q {
  padding: 0.8rem 1rem;
  font-weight: 600;
  color: var(--gd47-primary);
  cursor: pointer;
  background: rgba(205,133,63,0.08);
  font-size: 1.3rem;
}

.gd47-faq-a {
  padding: 0.8rem 1rem;
  color: var(--gd47-text);
  font-size: 1.25rem;
  line-height: 1.5;
  background: rgba(0,0,0,0.1);
}

/* Step List */
.gd47-step-list {
  counter-reset: gd47-step-counter;
}

.gd47-step-item {
  counter-increment: gd47-step-counter;
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.2rem;
}

.gd47-step-item::before {
  content: counter(gd47-step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.6rem;
  height: 2.6rem;
  background: var(--gd47-primary);
  color: var(--gd47-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
}

.gd47-step-title {
  font-weight: 700;
  color: var(--gd47-gold);
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.gd47-step-desc {
  color: var(--gd47-text);
  font-size: 1.25rem;
  line-height: 1.5;
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .gd47-bottom-nav {
    display: none;
  }
  .gd47-main {
    padding-bottom: 2rem;
  }
}

/* Desktop header links */
.gd47-desktop-nav {
  display: none;
}

@media (min-width: 769px) {
  .gd47-desktop-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
  }
  .gd47-hamburger {
    display: none;
  }
  .gd47-container {
    max-width: 768px;
  }
}

.gd47-desktop-link {
  color: var(--gd47-text);
  font-size: 1.3rem;
  transition: color 0.2s;
}

.gd47-desktop-link:hover {
  color: var(--gd47-primary);
}

/* App Download CTA */
.gd47-app-cta {
  background: linear-gradient(135deg, rgba(205,133,63,0.2), rgba(218,165,32,0.1));
  border: 2px solid var(--gd47-primary);
  border-radius: var(--gd47-radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin: 1.2rem 0;
}

.gd47-app-cta h3 {
  color: var(--gd47-primary);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.gd47-app-cta p {
  color: var(--gd47-text);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Badge */
.gd47-badge {
  display: inline-block;
  background: var(--gd47-primary);
  color: var(--gd47-dark);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  margin-left: 0.4rem;
}

/* Responsive tweaks */
@media (max-width: 360px) {
  .gd47-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .gd47-game-icon {
    width: 50px;
    height: 50px;
  }
  .gd47-header-btn {
    padding: 0.4rem 0.7rem;
    font-size: 1.1rem;
  }
}
