/* ==========================================================================
   BDG PLAY OFFICIAL - ELITE SEO CSS (Mobile First)
   ========================================================================== */

/* --- CSS Variables (Theme Options) --- */
:root {
  --primary-color: #0b7a37; /* Contrast fix (pehle #16c35b tha) */
  --primary-hover: #08612c; /* Contrast fix (pehle #12a14b tha) */
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --text-dark: #1a1a1a;
  --text-light: #4a4a4a;
  --border-color: #e0e0e0;
  --transition-speed: 0.3s;
  --border-radius: 12px;
  --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
  --max-width: 1200px;
}

/* --- Base & Reset (Prevents CLS) --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
  font-size: 16px; /* Base for accessibility */
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-color);
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--primary-hover);
}

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

/* --- Buttons (Accessible Touch Targets) --- */
.btn-green, .hero-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
  /* Minimum 44px height for mobile accessibility (Google Rule) */
  min-height: 44px;
  min-width: 120px;
}

.btn-green:hover, .hero-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* --- Header & Navigation --- */
header {
  background-color: var(--card-bg);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Prevents overflow on very small screens */
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark) !important;
}

.header-actions {
  display: flex;
  gap: 10px;
}

/* Different style for login button */
.register-btn {
  background-color: transparent;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
}

.register-btn:hover {
  background-color: var(--primary-color);
  color: #fff !important;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(180deg, var(--card-bg) 0%, var(--bg-color) 100%);
}

.telegram-icon {
  margin: 0 auto 20px;
  border-radius: 20%; /* Optional: softens the icon edges */
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem); /* Responsive typography */
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-btn {
  font-size: 1.125rem;
  padding: 15px 40px;
  border-radius: 50px; /* Pill shape for main CTA */
  box-shadow: 0 4px 15px rgba(11, 122, 55, 0.3); /* Shadow color updated slightly */
}

.trust-text {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* --- Main Content Sections --- */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 40px;
  color: var(--text-dark);
}

.section p {
  margin-bottom: 20px;
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* --- Grid & Cards (Benefits) --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.card p {
  font-size: 1rem;
  margin-bottom: 0;
}

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

.faq-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card-bg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-speed);
}

.faq-question:hover {
  background-color: #f1f3f5;
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform var(--transition-speed);
  color: var(--primary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease;
  padding: 0 20px;
  background-color: var(--card-bg);
}

/* Classes added via JS */
.faq-item.active .faq-answer {
  padding: 0 20px 20px 20px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg); /* Turns + into x */
}

/* --- SEO Text --- */
.seo-text {
  text-align: center;
  font-size: 0.85rem;
  color: #595959; /* Contrast fix (pehle #888 tha) */
  padding: 20px;
  margin-bottom: 0;
}

/* --- Footer --- */
footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col span {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.footer-col a {
  display: block;
  color: #bdc3c7;
  margin-bottom: 12px;
}

.footer-col a:hover {
  color: #4ade80; /* Contrast fix for dark background (pehle var(--primary-color) tha) */
  padding-left: 5px; /* Subtle interaction */
}

.footer-col p {
  color: #bdc3c7;
  font-size: 0.95rem;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #bdc3c7; /* Contrast fix (pehle #95a5a6 tha) */
}

/* --- Mobile Specific Fixes --- */
@media (max-width: 480px) {
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .header-actions a {
    flex: 1; /* Makes buttons equal width on mobile */
  }
  .logo {
    margin-bottom: 10px;
  }
}





/* ==========================================================================
   DAILY GIFT CODE BOX
   ========================================================================== */

.gift-code-wrapper {
  background-color: var(--bg-color); /* Light gray like the image */
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px 20px;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

.gift-title {
  font-size: clamp(1.25rem, 3vw, 1.5rem); /* Responsive like your other headings */
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.code-box {
  background-color: #e9ecef; /* Slightly darker gray for the inner box */
  padding: 12px 16px;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap; /* Wraps on very small mobile screens */
  max-width: 100%;
}

.code-text {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 1px;
  word-break: break-all; /* Prevents long code from overflowing */
}

/* 100/100 Accessibility Copy Button */
.copy-code-btn {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color var(--transition-speed);
  min-height: 48px; /* Google tap target safe */
}

.copy-code-btn:hover {
  background-color: var(--primary-hover);
}

/* Mobile specific adjustment for the box */
@media (max-width: 480px) {
  .gift-code-wrapper {
    padding: 30px 15px;
  }
  .code-box {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .copy-code-btn {
    width: 100%;
  }
}