/* Teen Patti Master Game - Main Styles */
:root {
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-dark: linear-gradient(135deg, #4c5fd5 0%, #5a3d7a 100%);
  --color-gold: #ffd700;
  --color-gold-dim: #e6c200;
  --color-green: #6bcf7f;
  --color-red: #ff6b6b;
  --color-yellow: #ffd93d;
  --color-light: #f8f9fa;
  --color-dark: #1a1a2e;
  --radius: 10px;
  --radius-lg: 12px;
  --font-heading: 'Chakra Petch', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: #333;
  background: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Header & Nav */
.site-header {
  background: var(--gradient-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,0.95);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--color-gold);
}

.navbar-dark .navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}

.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.logo-img {
  max-height: 40px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.btn-download-nav {
  background: var(--color-gold);
  color: #1a1a2e !important;
  border-radius: var(--radius);
  padding: 0.4rem 1rem !important;
  font-weight: 600;
}

.btn-download-nav:hover {
  background: var(--color-gold-dim);
  color: #1a1a2e !important;
  opacity: 0.95;
}

/* Buttons */
.btn-gold {
  background: var(--color-gold);
  color: #1a1a2e;
  border: none;
  font-weight: 600;
  border-radius: var(--radius);
  transition: opacity 0.2s, transform 0.2s;
}

.btn-gold:hover {
  background: var(--color-gold-dim);
  color: #1a1a2e;
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-inner {
  position: absolute;
  inset: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-dark);
}

.hero-bg .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
}

.hero .container {
  z-index: 2;
}

.min-vh-60 {
  min-height: 60vh;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1.5rem;
  max-width: 540px;
}

.hero-cta .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.hero-app-logo {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--color-dark);
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--gradient-primary);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  opacity: 0.9;
  margin-bottom: 0;
}

/* Feature cards */
.feature-card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fff;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.feature-card h3 {
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
}

/* Intro, Rules, etc. */
.intro-highlights .highlight-item {
  padding: 0.5rem 0;
  font-size: 1.05rem;
}

.rules-list, .about-list {
  padding-left: 1.25rem;
}

.rules-list li, .about-list li {
  margin-bottom: 0.5rem;
}

.term-list dt {
  font-weight: 600;
  color: var(--color-dark);
  margin-top: 1rem;
}

.term-list dd {
  margin-left: 0;
  color: #555;
}

/* How it works */
.step-card {
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}

.step-card:hover {
  transform: translateY(-2px);
}

.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Strategy cards */
.strategy-card {
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.strategy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.strategy-card h3 {
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

/* App table */
.app-table {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.app-table th {
  background: #f0f0f5;
  font-weight: 600;
  width: 40%;
}

.app-table td, .app-table th {
  padding: 0.75rem 1rem;
  border-color: #eee;
}

.badges-row .badge-item {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: rgba(107, 207, 127, 0.2);
  color: #2d7a3e;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* Game modes */
.mode-card {
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mode-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

.mode-audience {
  font-size: 0.85rem;
  color: #666;
}

/* Stats */
.stats-section {
  background: var(--gradient-primary);
  color: #fff;
}

.stats-section .section-title {
  color: #fff;
}

.stat-card {
  padding: 1.5rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* FAQ */
.faq-accordion .accordion-button {
  font-family: var(--font-body);
  font-weight: 500;
  background: #fff;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: #f8f9fa;
  color: var(--color-dark);
  box-shadow: none;
}

.faq-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(102, 126, 234, 0.3);
}

.faq-accordion .accordion-item {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.5rem;
  border: 1px solid #eee;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  border-radius: var(--radius-lg);
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-brand img {
  max-height: 34px;
  width: auto;
}

.footer-tagline {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.footer-heading {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.social-icons a:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

.footer-divider {
  border-color: rgba(255,255,255,0.15);
  margin: 2rem 0 1rem;
}

.footer-bottom .copyright {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.8;
}

/* Mobile download CTA - hidden by default, shown in responsive */
.mobile-download-cta {
  display: none;
}

/* Contact */
.contact-form {
  position: relative;
}

.contact-form .form-control {
  border-radius: var(--radius);
  border: 1px solid #ddd;
}

.contact-form .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.contact-info-card {
  border-radius: var(--radius);
  border: 1px solid #eee;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Legal */
.legal-content h2 {
  color: var(--color-dark);
}

.legal-content a {
  color: #667eea;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Blog */
.blog-card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.blog-meta span {
  margin-right: 0.5rem;
}

.blog-content ul {
  padding-left: 1.25rem;
}

.blog-content li {
  margin-bottom: 0.35rem;
}
