/**
 * BinggoPlus CSS Stylesheet
 * All classes prefixed with "gdd0-" to avoid naming conflicts
 * Color scheme: Gold (#FFD700), Dark (#2D2D2D), Orange (#FFB347), Tan (#DEB887), Beige (#D2B48C)
 * Mobile-first responsive design, max-width: 430px
 */

/* ==================== CSS Variables ==================== */
:root {
  --gdd0-primary: #FFD700;
  --gdd0-secondary: #FFB347;
  --gdd0-dark: #2D2D2D;
  --gdd0-tan: #DEB887;
  --gdd0-beige: #D2B48C;
  --gdd0-text-light: #FFFFFF;
  --gdd0-text-dark: #1A1A1A;
  --gdd0-bg-dark: #1F1F1F;
  --gdd0-bg-darker: #0F0F0F;
  --gdd0-border: rgba(255, 215, 0, 0.2);
  --gdd0-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --gdd0-radius: 12px;
  --gdd0-transition: all 0.3s ease;
}

/* ==================== Reset & Base ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--gdd0-text-light);
  background: linear-gradient(135deg, var(--gdd0-bg-darker) 0%, var(--gdd0-dark) 100%);
  min-height: 100vh;
  padding-bottom: 70px; /* Space for bottom nav */
}

.gdd0-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==================== Header ==================== */
.gdd0-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--gdd0-dark) 0%, rgba(45, 45, 45, 0.98) 100%);
  border-bottom: 2px solid var(--gdd0-primary);
  box-shadow: 0 2px 15px rgba(255, 215, 0, 0.2);
  z-index: 1000;
  padding: 1rem 1.5rem;
}

.gdd0-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
}

.gdd0-logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gdd0-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.gdd0-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gdd0-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gdd0-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.gdd0-btn-register,
.gdd0-btn-login {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--gdd0-transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gdd0-btn-register {
  background: linear-gradient(135deg, var(--gdd0-primary) 0%, var(--gdd0-secondary) 100%);
  color: var(--gdd0-text-dark);
  box-shadow: 0 3px 8px rgba(255, 215, 0, 0.3);
}

.gdd0-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(255, 215, 0, 0.5);
}

.gdd0-btn-login {
  background: transparent;
  color: var(--gdd0-primary);
  border: 2px solid var(--gdd0-primary);
}

.gdd0-btn-login:hover {
  background: var(--gdd0-primary);
  color: var(--gdd0-text-dark);
}

.gdd0-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gdd0-hamburger span {
  width: 24px;
  height: 3px;
  background: var(--gdd0-primary);
  border-radius: 2px;
  transition: var(--gdd0-transition);
}

.gdd0-hamburger.gdd0-active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.gdd0-hamburger.gdd0-active span:nth-child(2) {
  opacity: 0;
}

.gdd0-hamburger.gdd0-active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ==================== Mobile Menu ==================== */
.gdd0-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
}

.gdd0-menu-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, var(--gdd0-dark) 0%, var(--gdd0-bg-dark) 100%);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem;
}

.gdd0-menu-panel.gdd0-menu-open {
  right: 0;
}

.gdd0-menu-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--gdd0-border);
}

.gdd0-menu-title {
  font-size: 2rem;
  color: var(--gdd0-primary);
  font-weight: 700;
}

.gdd0-menu-list {
  list-style: none;
}

.gdd0-menu-item {
  margin-bottom: 0.5rem;
}

.gdd0-menu-link {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--gdd0-text-light);
  text-decoration: none;
  border-radius: 8px;
  transition: var(--gdd0-transition);
  font-size: 1.5rem;
}

.gdd0-menu-link:hover,
.gdd0-menu-link.gdd0-active {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gdd0-primary);
  padding-left: 2rem;
}

/* ==================== Main Content ==================== */
.gdd0-main {
  margin-top: 70px;
  min-height: calc(100vh - 140px);
  padding-bottom: 3rem;
}

/* ==================== Carousel ==================== */
.gdd0-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto 2rem;
  border-radius: var(--gdd0-radius);
  overflow: hidden;
  box-shadow: var(--gdd0-shadow);
}

.gdd0-carousel-slides {
  position: relative;
  width: 100%;
  height: 200px;
}

.gdd0-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.gdd0-carousel-slide.gdd0-active {
  opacity: 1;
}

.gdd0-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gdd0-carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.gdd0-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--gdd0-transition);
}

.gdd0-dot.gdd0-active {
  background: var(--gdd0-primary);
  width: 24px;
  border-radius: 5px;
}

/* ==================== Section Styles ==================== */
.gdd0-section {
  margin-bottom: 3rem;
}

.gdd0-section-header {
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
}

.gdd0-section-title {
  font-size: 2.4rem;
  color: var(--gdd0-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gdd0-section-title i {
  font-size: 2.8rem;
}

.gdd0-section-subtitle {
  font-size: 1.4rem;
  color: var(--gdd0-tan);
}

/* ==================== Game Grid ==================== */
.gdd0-game-category {
  margin-bottom: 2.5rem;
}

.gdd0-category-header {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 179, 71, 0.15) 100%);
  border-left: 4px solid var(--gdd0-primary);
  padding: 1rem 1.5rem;
  margin: 0 1.5rem 1.5rem;
  border-radius: 8px;
}

.gdd0-category-title {
  font-size: 2rem;
  color: var(--gdd0-primary);
  font-weight: 600;
  text-transform: capitalize;
}

.gdd0-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0 1.5rem;
}

.gdd0-game-card {
  background: var(--gdd0-bg-dark);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gdd0-border);
  transition: var(--gdd0-transition);
  cursor: pointer;
}

.gdd0-game-card:hover {
  transform: translateY(-4px);
  border-color: var(--gdd0-primary);
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3);
}

.gdd0-game-img-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  background: var(--gdd0-dark);
  overflow: hidden;
}

.gdd0-game-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gdd0-game-name {
  padding: 0.8rem 0.5rem;
  font-size: 1.1rem;
  color: var(--gdd0-text-light);
  text-align: center;
  line-height: 1.3;
  min-height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== Content Card ==================== */
.gdd0-content-card {
  background: linear-gradient(135deg, var(--gdd0-dark) 0%, var(--gdd0-bg-dark) 100%);
  border: 1px solid var(--gdd0-border);
  border-radius: var(--gdd0-radius);
  padding: 2rem;
  margin: 0 1.5rem 2rem;
  box-shadow: var(--gdd0-shadow);
}

.gdd0-content-card h2 {
  color: var(--gdd0-primary);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.gdd0-content-card h3 {
  color: var(--gdd0-secondary);
  font-size: 1.9rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.gdd0-content-card p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--gdd0-beige);
}

.gdd0-content-card ul,
.gdd0-content-card ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.gdd0-content-card li {
  margin-bottom: 0.8rem;
  line-height: 1.7;
  color: var(--gdd0-beige);
}

.gdd0-content-card a {
  color: var(--gdd0-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--gdd0-transition);
}

.gdd0-content-card a:hover {
  color: var(--gdd0-secondary);
  text-decoration: underline;
}

/* ==================== CTA Button ==================== */
.gdd0-cta-btn {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, var(--gdd0-primary) 0%, var(--gdd0-secondary) 100%);
  color: var(--gdd0-text-dark);
  font-size: 1.6rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--gdd0-transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  text-decoration: none;
}

.gdd0-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.gdd0-cta-center {
  text-align: center;
  margin: 2rem 0;
}

/* ==================== Bottom Navigation ==================== */
.gdd0-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--gdd0-dark) 0%, var(--gdd0-bg-darker) 100%);
  border-top: 2px solid var(--gdd0-primary);
  box-shadow: 0 -2px 15px rgba(255, 215, 0, 0.2);
  z-index: 1000;
  padding: 0.5rem 0;
}

.gdd0-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.gdd0-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem;
  min-width: 65px;
  min-height: 58px;
  border: none;
  background: transparent;
  color: var(--gdd0-tan);
  cursor: pointer;
  transition: var(--gdd0-transition);
  text-decoration: none;
  border-radius: 8px;
}

.gdd0-bottom-nav-btn i {
  font-size: 2.4rem;
  transition: var(--gdd0-transition);
}

.gdd0-bottom-nav-btn span {
  font-size: 1.1rem;
  font-weight: 600;
}

.gdd0-bottom-nav-btn:hover,
.gdd0-bottom-nav-btn.gdd0-active {
  color: var(--gdd0-primary);
  background: rgba(255, 215, 0, 0.1);
}

.gdd0-bottom-nav-btn:active {
  transform: scale(0.95);
}

/* ==================== Footer ==================== */
.gdd0-footer {
  background: var(--gdd0-bg-darker);
  border-top: 2px solid var(--gdd0-border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.gdd0-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gdd0-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.gdd0-footer-link {
  color: var(--gdd0-tan);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--gdd0-transition);
}

.gdd0-footer-link:hover {
  color: var(--gdd0-primary);
  padding-left: 0.5rem;
}

.gdd0-footer-partners {
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--gdd0-border);
  border-bottom: 1px solid var(--gdd0-border);
}

.gdd0-partners-title {
  font-size: 1.6rem;
  color: var(--gdd0-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.gdd0-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  opacity: 0.7;
}

.gdd0-partner-img {
  width: 100%;
  height: auto;
  filter: brightness(0.8);
  transition: var(--gdd0-transition);
}

.gdd0-partner-img:hover {
  filter: brightness(1.2);
}

.gdd0-footer-copyright {
  text-align: center;
  color: var(--gdd0-tan);
  font-size: 1.3rem;
  margin-top: 2rem;
}

/* ==================== Responsive Design ==================== */
@media (min-width: 769px) {
  .gdd0-bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

@media (max-width: 380px) {
  .gdd0-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gdd0-btn-register,
  .gdd0-btn-login {
    padding: 0.5rem 0.8rem;
    font-size: 1.2rem;
  }
}

/* ==================== Utility Classes ==================== */
.gdd0-text-center {
  text-align: center;
}

.gdd0-text-gold {
  color: var(--gdd0-primary);
}

.gdd0-mt-2 {
  margin-top: 2rem;
}

.gdd0-mb-2 {
  margin-bottom: 2rem;
}

.gdd0-hidden {
  display: none;
}
