/* ============================================================
   Landing Page Styles (pages/landing.css)
   Extracted from templates/main/index.html
   ============================================================ */

.landing-page {
  width: 100%;
  overflow-x: hidden;
}

/* Landing Navigation Bar */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 106, 78, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: #006a4e;
  transition: opacity 0.3s ease;
}

.nav-brand:hover {
  opacity: 0.8;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-brand-text {
  font-weight: 700;
  color: #006a4e;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #006a4e;
  background: rgba(0, 106, 78, 0.05);
}

.btn-nav-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: linear-gradient(135deg, #006a4e, #3498db);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 106, 78, 0.2);
}

.btn-nav-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 106, 78, 0.3);
}

/* Hero Section */
.hero-section {
  margin-top: calc(72px + env(safe-area-inset-top));
  background: linear-gradient(135deg, #006a4e 0%, #004d38 100%);
  color: white;
  padding: 6rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  margin-bottom: 2rem;
}

.hero-logo img {
  height: 80px;
  width: auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: white;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-hero-primary {
  background: white;
  color: #006a4e;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-hero-secondary:hover {
  background: white;
  color: #006a4e;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 700;
}

.hero-stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #1f2937;
}

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: #6b7280;
  margin-bottom: 3rem;
}

/* Platform Section */
.platform-section {
  background: #f9fafb;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #006a4e, #3498db);
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  width: fit-content;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.platform-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.platform-icon {
  font-size: 3rem;
  color: #006a4e;
  margin-bottom: 1rem;
}

.platform-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.platform-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Money Flow Section */
.money-flow-section {
  background: white;
}

.money-flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding: 2rem;
  background: #f9fafb;
  border-radius: 16px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-width: 140px;
}

.flow-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.member-icon {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.club-icon {
  background: linear-gradient(135deg, #006a4e, #004d38);
}

.winner-icon {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
}

.flow-label {
  font-weight: 700;
  color: #1f2937;
}

.flow-description {
  font-size: 0.875rem;
  color: #6b7280;
}

.flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #006a4e;
  font-size: 1.5rem;
}

.flow-arrow span {
  font-size: 0.75rem;
  font-weight: 600;
}

.fee-explanation {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.fee-card {
  background: linear-gradient(135deg, #006a4e, #004d38);
  color: white;
  padding: 2rem 3rem;
  border-radius: 16px;
  text-align: center;
  max-width: 500px;
}

.fee-amount {
  font-size: 3rem;
  font-weight: 800;
}

.fee-label {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.fee-description {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
}

.money-flow-note {
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: #92400e;
  max-width: 800px;
  margin: 0 auto;
}

.money-flow-note i {
  font-size: 1.5rem;
  color: #f59e0b;
  flex-shrink: 0;
}

/* Audience Sections */
.audience-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  width: fit-content;
}

.club-badge {
  background: linear-gradient(135deg, #006a4e, #004d38);
  color: white;
}

.member-badge {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

/* For Clubs Section */
.for-clubs-section {
  background: #f0f9f6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: #006a4e;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.6;
}

.club-cta {
  text-align: center;
  margin-top: 3rem;
}

.cta-note {
  margin-top: 1rem;
  color: #6b7280;
  font-size: 0.95rem;
}

/* For Members Section */
.for-members-section {
  background: white;
}

.member-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.member-step {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  position: relative;
}

.member-step .step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.member-step .step-icon {
  font-size: 2.5rem;
  color: #3498db;
  margin: 1.5rem 0 1rem;
}

.member-step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.member-step p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

.member-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.member-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #f0f9ff;
  border-radius: 9999px;
  color: #3498db;
  font-weight: 600;
  font-size: 0.95rem;
}

.member-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Live Demo Section */
.live-demo-section {
  background: #f9fafb;
  position: relative;
  overflow: hidden;
}

.demo-header {
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  animation: pulse-badge 2s ease-in-out infinite;
}

.live-badge i {
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.demo-player-selection-container,
.demo-leaderboard-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 2px solid #e5e7eb;
}

.demo-player-selection-header,
.demo-leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  border-bottom: 2px solid #e5e7eb;
}

.demo-player-selection-header h4,
.demo-leaderboard-header h4 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}

.selection-count,
.participant-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 600;
}

.demo-player-selection-body {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-player-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.demo-player-card:hover:not(.selected) {
  border-color: #006a4e;
  box-shadow: 0 4px 12px rgba(0, 106, 78, 0.15);
  transform: translateX(4px);
}

.demo-player-card.selected {
  border-color: #006a4e;
  background: linear-gradient(135deg, rgba(0, 106, 78, 0.05), rgba(52, 152, 219, 0.05));
  box-shadow: 0 4px 12px rgba(0, 106, 78, 0.2);
}

.demo-footer {
  padding: 1rem 2rem;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.demo-footer p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
}

.demo-leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.demo-leaderboard-table th,
.demo-leaderboard-table td {
  padding: 1rem 1.5rem;
  text-align: left;
}

.demo-leaderboard-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #6b7280;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.demo-leaderboard-table td {
  border-top: 1px solid #e5e7eb;
}

/* FAQ Section */
.faq-section {
  background: white;
}

.faq-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .faq-columns {
    grid-template-columns: 1fr;
  }
}

.faq-column-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.faq-column-title i {
  color: #006a4e;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #f9fafb;
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  text-align: left;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: #f3f4f6;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: #6b7280;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: #006a4e;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Final CTA Section */
.final-cta-section {
  background: linear-gradient(135deg, #006a4e 0%, #004d38 100%);
  color: white;
  text-align: center;
}

.final-cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.final-cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.final-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.trust-badge i {
  font-size: 2rem;
  color: white;
}

.trust-badge span {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.platform-note {
  margin-top: 2rem;
  font-size: 0.875rem;
  opacity: 0.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Rank & Score Badges (Demo Leaderboard) */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
  background: #f3f4f6;
  color: #6b7280;
}

.rank-badge.gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
}

.rank-badge.silver {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  color: white;
}

.rank-badge.bronze {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: white;
}

.score-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
}

.score-badge.score-under {
  background: #dcfce7;
  color: #166534;
}

.score-badge.score-over {
  background: #fee2e2;
  color: #991b1b;
}

.score-badge.score-even {
  background: #f3f4f6;
  color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0.75rem 1.5rem;
  }

  .nav-brand-text {
    display: none;
  }

  .nav-logo {
    height: 35px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .money-flow-diagram {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .fee-card {
    padding: 1.5rem 2rem;
  }

  .fee-amount {
    font-size: 2.5rem;
  }

  .btn-hero {
    width: 100%;
    justify-content: center;
  }

  .member-cta .btn-hero,
  .final-cta-buttons .btn-hero {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0.625rem 1rem;
  }

  .nav-logo {
    height: 32px;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .nav-link span,
  .btn-nav-primary span {
    display: none;
  }

  .hero-section {
    padding: 4rem 1rem 3rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
  }
}
