/* Custom styling for feature showcase pages - platform, gamify, seasons, badges, social */

/* Page Title */
main > h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

main > .text-muted {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: var(--text-muted);
}

/* Demo Containers */
.demo-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.demo-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text);
}

/* Demo Badges */
.demo-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--background);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* Live Elements */
.chart-controls {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.timer-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.live-price-display {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.timer-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.settlement-timer {
  text-align: right;
}

/* Betting Interface */
.betting-interface {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.demo-bet-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border: none;
  border-radius: 8px;
  padding: 1.25rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--background);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.demo-bet-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.4);
}

.demo-bet-btn.above {
  background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

.demo-bet-btn.below {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
}

/* Leaderboard Container */
.leaderboard-container {
  background: var(--surface-elevated);
  border-radius: 8px;
  overflow: hidden;
}

.leaderboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.leaderboard-row:last-child {
  border-bottom: none;
}

.leaderboard-row:hover {
  background: var(--surface);
}

.leaderboard-row .rank {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  width: 60px;
}

.leaderboard-row .player {
  flex: 1;
  font-weight: 600;
  color: var(--text);
}

.leaderboard-row .stat {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}

/* Feature Cards Enhancement */
.card-grid .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: all 0.3s ease;
}

.card-grid .card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.15);
}

.card-grid .card h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  color: var(--text);
}

.card-grid .card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-grid .card ul li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
  color: var(--text-muted);
}

.card-grid .card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Stat Boxes */
.stat-box {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.stat-box .number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-box .label {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Stat Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Badge Grid (for badges.html) */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.badge-item {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.badge-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.2);
}

.badge-item .badge-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.badge-item .badge-name {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.badge-item .badge-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Season/League Cards */
.league-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  transition: all 0.3s ease;
}

.league-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.2);
}

.league-card h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: var(--primary);
}

.league-card .league-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.league-requirements {
  background: var(--surface-elevated);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.league-requirements h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.125rem;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 12px 0 0 12px;
}

.highlight-box h4 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Feature Lists */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.feature-list li {
  padding: 0.875rem 1.25rem;
  margin: 0.5rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  position: relative;
  padding-left: 2.5rem;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

/* Tables */
table {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem 0;
}

table thead {
  background: var(--surface-elevated);
}

table thead th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  border-bottom: 2px solid var(--border);
}

table tbody tr {
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--border);
}

table tbody tr:last-child {
  border-bottom: none;
}

table tbody tr:hover {
  background: var(--surface-elevated);
}

table tbody td {
  padding: 1.25rem 1.5rem;
}

/* Section Styling */
section {
  margin-bottom: 4rem;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
}

section h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  main > h1 {
    font-size: 2rem;
  }

  .demo-container {
    padding: 1.5rem;
  }

  .chart-controls {
    flex-direction: column;
    gap: 1rem;
  }

  .settlement-timer {
    text-align: left;
  }

  .live-price-display {
    font-size: 2rem;
  }

  .timer-value {
    font-size: 1.5rem;
  }

  .betting-interface {
    grid-template-columns: 1fr;
  }

  .badge-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
  }

  .badge-item {
    padding: 1.5rem 1rem;
  }

  .badge-item .badge-icon {
    font-size: 2rem;
  }

  .stat-box .number {
    font-size: 2.5rem;
  }
}
