/* Royal Card Challenge Platform - styles.css */

:root {
  --burgundy: #5c1a2a;
  --burgundy-deep: #3d0f1b;
  --burgundy-light: #7a2840;
  --royal-green: #1a5c3a;
  --royal-green-light: #237a4e;
  --royal-green-dark: #0f3d25;
  --gold: #c9a227;
  --gold-light: #e6c44a;
  --gold-dark: #9a7b1a;
  --ivory: #f5f0e8;
  --ivory-dark: #e8dfd2;
  --midnight: #0d0d0d;
  --walnut: #3b2a1a;
  --walnut-light: #5c4030;
  --velvet-bg: #1a0a10;
  --card-white: #fefefe;
  --card-red: #b22234;
  --card-black: #1a1a1a;
  --success: #2e8b57;
  --error: #b22234;
  --shadow-gold: rgba(201, 162, 39, 0.3);
  --shadow-dark: rgba(0, 0, 0, 0.5);
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-display: 'Georgia', serif;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  background-color: var(--velvet-bg);
  color: var(--ivory);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--gold-light);
}

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

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 15px auto 0;
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--burgundy);
  border: 2px solid var(--gold);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--gold);
  letter-spacing: 1px;
}

/* Ornamental Divider */
.ornamental-divider {
  text-align: center;
  margin: 40px 0;
  position: relative;
}

.ornamental-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.ornamental-divider svg {
  position: relative;
  background: var(--velvet-bg);
  padding: 0 20px;
}

/* ========== HEADER ========== */
.royal-header {
  background: linear-gradient(180deg, var(--midnight) 0%, var(--burgundy-deep) 100%);
  border-bottom: 2px solid var(--gold-dark);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
}

.nav-links a {
  color: var(--ivory);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 4px;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--burgundy-deep) 0%, var(--midnight) 50%, var(--royal-green-dark) 100%);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center top, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--gold);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px var(--shadow-gold);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--ivory-dark);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

/* ========== GAME TABLE ========== */
.game-section {
  background: linear-gradient(180deg, var(--royal-green-dark) 0%, #0a2e1a 100%);
  padding: 80px 0;
  position: relative;
}

.game-section::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 2px solid var(--gold-dark);
  border-radius: 20px;
  pointer-events: none;
  opacity: 0.3;
}

.game-table {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: radial-gradient(ellipse at center, var(--royal-green) 0%, var(--royal-green-dark) 100%);
  border-radius: 20px;
  border: 3px solid var(--gold-dark);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(0, 0, 0, 0.2);
  position: relative;
}

.game-table::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 16px;
  pointer-events: none;
}

.game-header {
  text-align: center;
  margin-bottom: 30px;
}

.game-header h2 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.game-scores {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.score-item {
  text-align: center;
}

.score-label {
  font-size: 0.8rem;
  color: var(--ivory-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.score-value {
  font-size: 2rem;
  color: var(--gold);
  font-weight: bold;
}

.cards-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  min-height: 220px;
}

.playing-card {
  width: 140px;
  height: 200px;
  border-radius: 12px;
  position: relative;
  perspective: 1000px;
  cursor: default;
}

/* Left card - always face up */
.card-display {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: var(--card-white);
  border: 2px solid var(--gold-dark);
  box-shadow: 0 4px 20px var(--shadow-dark);
  position: relative;
}

.card-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--card-black);
  border-radius: 10px;
}

.card-content.card-red {
  color: var(--card-red);
}

/* Right card - flip animation */
.card-flipper {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.card-flipper.revealed {
  transform: rotateY(180deg);
}

.card-flipper .card-back-side {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
  border: 2px solid var(--gold-dark);
  box-shadow: 0 4px 20px var(--shadow-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-flipper .card-front-side {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  background: var(--card-white);
  border: 2px solid var(--gold-dark);
  box-shadow: 0 4px 20px var(--shadow-dark);
  transform: rotateY(180deg);
}

.card-back-pattern {
  width: 80%;
  height: 80%;
  border: 2px solid var(--gold-dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(201, 162, 39, 0.1) 5px, rgba(201, 162, 39, 0.1) 10px);
}

.card-value {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1;
}

.card-suit {
  font-size: 2rem;
  margin-top: 5px;
}

.card-corner {
  position: absolute;
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: center;
}

.card-corner-top {
  top: 8px;
  left: 8px;
}

.card-corner-bottom {
  bottom: 8px;
  right: 8px;
  transform: rotate(180deg);
}

.vs-indicator {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.7;
}

.game-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.btn-game {
  padding: 15px 40px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: bold;
  border: 2px solid var(--gold);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.btn-higher {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  color: var(--midnight);
}

.btn-higher:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  box-shadow: 0 0 20px var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-lower {
  background: linear-gradient(135deg, var(--burgundy-deep) 0%, var(--burgundy) 100%);
  color: var(--gold);
}

.btn-lower:hover {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
  box-shadow: 0 0 20px rgba(122, 40, 64, 0.5);
  transform: translateY(-2px);
}

.btn-game:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-play-again {
  display: none;
  margin: 20px auto;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--midnight);
  border: 2px solid var(--gold);
  border-radius: 8px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-play-again:hover {
  box-shadow: 0 0 20px var(--shadow-gold);
  transform: translateY(-2px);
}

.result-banner {
  text-align: center;
  padding: 12px;
  margin-top: 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  display: none;
  animation: fadeIn 0.3s ease;
}

.result-banner.win {
  display: block;
  background: rgba(46, 139, 87, 0.2);
  border: 1px solid var(--success);
  color: #5ddb92;
}

.result-banner.loss {
  display: block;
  background: rgba(178, 34, 52, 0.2);
  border: 1px solid var(--error);
  color: #e85d6f;
}

.streak-meter {
  margin-top: 20px;
  padding: 10px 0;
}

.streak-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--gold-dark);
}

.streak-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 4px;
  transition: width 0.5s ease;
  width: 0%;
}

.streak-label {
  text-align: center;
  margin-top: 5px;
  font-size: 0.8rem;
  color: var(--ivory-dark);
}

/* Card History */
.card-history {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
}

.card-history h3 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 15px;
  text-align: center;
}

.history-cards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  justify-content: center;
}

.history-card {
  min-width: 50px;
  height: 70px;
  background: var(--card-white);
  border-radius: 6px;
  border: 1px solid var(--gold-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--card-black);
  animation: slideIn 0.3s ease;
}

.history-card.red {
  color: var(--card-red);
}

/* Game History Log */
.game-log {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
}

.game-log h3 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 15px;
  text-align: center;
}

.log-entries {
  max-height: 200px;
  overflow-y: auto;
  padding: 0 10px;
}

.log-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-size: 0.85rem;
  border-left: 3px solid var(--gold-dark);
  animation: slideIn 0.3s ease;
}

.log-entry.win {
  border-left-color: var(--success);
}

.log-entry.loss {
  border-left-color: var(--error);
}

.log-result {
  font-weight: bold;
}

.log-result.win {
  color: #5ddb92;
}

.log-result.loss {
  color: #e85d6f;
}

/* ========== STATISTICS ========== */
.statistics-section {
  background: linear-gradient(180deg, var(--midnight) 0%, var(--burgundy-deep) 100%);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: linear-gradient(135deg, rgba(92, 26, 42, 0.3) 0%, rgba(13, 13, 13, 0.5) 100%);
  border: 1px solid var(--gold-dark);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 20px var(--shadow-gold);
  transform: translateY(-3px);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ivory-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== RULES ========== */
.rules-section {
  background: var(--velvet-bg);
  padding: 80px 0;
}

.rules-list {
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
}

.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

.rule-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--midnight);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.rule-text {
  font-size: 1.1rem;
  color: var(--ivory);
  padding-top: 8px;
}

/* ========== TIMELINE ========== */
.timeline-section {
  background: linear-gradient(180deg, var(--burgundy-deep) 0%, var(--midnight) 100%);
  padding: 80px 0;
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark), transparent);
}

.timeline-item {
  position: relative;
  padding: 20px 0 40px 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 24px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--burgundy-deep);
  box-shadow: 0 0 10px var(--shadow-gold);
}

.timeline-step {
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.timeline-title {
  font-size: 1.3rem;
  color: var(--ivory);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--ivory-dark);
}

/* ========== HIGHLIGHTS ========== */
.highlights-section {
  background: var(--velvet-bg);
  padding: 80px 0;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.highlight-card {
  background: linear-gradient(135deg, rgba(26, 92, 58, 0.2), rgba(13, 13, 13, 0.5));
  border: 1px solid var(--gold-dark);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: all var(--transition);
}

.highlight-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--shadow-gold);
  transform: translateY(-2px);
}

.highlight-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
}

.highlight-title {
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.highlight-desc {
  font-size: 0.9rem;
  color: var(--ivory-dark);
}

/* ========== LIVE FEED ========== */
.feed-section {
  background: linear-gradient(180deg, var(--midnight) 0%, var(--walnut) 50%, var(--midnight) 100%);
  padding: 80px 0;
}

.feed-board {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--gold-dark);
  border-radius: 12px;
  padding: 30px;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
  animation: fadeIn 0.5s ease;
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}

.feed-text {
  flex: 1;
  color: var(--ivory);
  font-size: 0.95rem;
}

.feed-time {
  font-size: 0.8rem;
  color: var(--ivory-dark);
  white-space: nowrap;
}

/* ========== FAQ ========== */
.faq-section {
  background: var(--velvet-bg);
  padding: 80px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: var(--gold-dark);
}

.faq-question {
  width: 100%;
  background: rgba(92, 26, 42, 0.2);
  border: none;
  padding: 18px 20px;
  text-align: left;
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(92, 26, 42, 0.4);
}

.faq-toggle {
  color: var(--gold);
  font-size: 1.3rem;
  transition: transform var(--transition);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 20px;
  color: var(--ivory-dark);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 15px 20px 20px;
}

/* ========== VIP BANNER ========== */
.vip-banner {
  background: linear-gradient(135deg, var(--midnight) 0%, var(--burgundy-deep) 50%, var(--midnight) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  border-top: 2px solid var(--gold-dark);
  border-bottom: 2px solid var(--gold-dark);
}

.vip-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.vip-content {
  position: relative;
  z-index: 1;
}

.vip-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 20px;
  text-shadow: 0 2px 10px var(--shadow-gold);
}

.vip-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.vip-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ivory);
  font-size: 1rem;
}

.vip-feature svg {
  color: var(--gold);
}

.vip-note {
  margin-top: 25px;
  font-size: 0.9rem;
  color: var(--ivory-dark);
  font-style: italic;
}

/* ========== FOOTER ========== */
.royal-footer {
  background: var(--midnight);
  border-top: 2px solid var(--gold-dark);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--ivory-dark);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-responsible {
  background: rgba(92, 26, 42, 0.2);
  border: 1px solid var(--burgundy);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.footer-responsible h4 {
  color: var(--gold);
  margin-bottom: 10px;
}

.footer-responsible p {
  color: var(--ivory-dark);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.responsible-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.responsible-links a {
  color: var(--gold);
  font-size: 0.85rem;
  border: 1px solid var(--gold-dark);
  padding: 5px 12px;
  border-radius: 4px;
  transition: all var(--transition);
}

.responsible-links a:hover {
  background: var(--gold-dark);
  color: var(--midnight);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(201, 162, 39, 0.1);
}

.footer-disclaimer {
  font-size: 0.85rem;
  color: var(--ivory-dark);
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.footer-links a {
  color: var(--ivory-dark);
  font-size: 0.85rem;
}

/* ========== SECONDARY PAGES ========== */
.page-header {
  background: linear-gradient(135deg, var(--burgundy-deep) 0%, var(--midnight) 100%);
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 2px solid var(--gold-dark);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-content h2 {
  color: var(--gold);
  font-size: 1.5rem;
  margin: 30px 0 15px;
}

.page-content p {
  color: var(--ivory-dark);
  margin-bottom: 15px;
  line-height: 1.8;
}

.page-content ul {
  color: var(--ivory-dark);
  padding-left: 25px;
  margin-bottom: 15px;
}

.page-content li {
  margin-bottom: 8px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes goldGlow {
  0% { box-shadow: 0 0 5px var(--shadow-gold); }
  50% { box-shadow: 0 0 30px var(--shadow-gold), 0 0 60px rgba(201, 162, 39, 0.1); }
  100% { box-shadow: 0 0 5px var(--shadow-gold); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.win-glow {
  animation: goldGlow 1s ease;
}

.loss-shake {
  animation: shake 0.5s ease;
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-shine:hover::after {
  transform: translateX(100%);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--midnight);
    flex-direction: column;
    padding: 20px;
    border-bottom: 2px solid var(--gold-dark);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

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

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

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

  .game-table {
    padding: 20px;
    margin: 0 10px;
  }

  .cards-area {
    flex-direction: column;
    gap: 20px;
  }

  .playing-card {
    width: 120px;
    height: 170px;
  }

  .vs-indicator {
    transform: rotate(90deg);
  }

  .game-buttons {
    flex-direction: column;
    padding: 0 20px;
  }

  .btn-game {
    width: 100%;
    text-align: center;
  }

  .game-scores {
    gap: 15px;
  }

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

  .history-cards {
    justify-content: flex-start;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }

  .stat-card {
    padding: 20px 15px;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .vip-features {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .vip-title {
    font-size: 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .responsible-links {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline-item {
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section {
    padding: 50px 0;
  }

  .game-header h2 {
    font-size: 1.3rem;
  }

  .playing-card {
    width: 100px;
    height: 145px;
  }

  .card-value {
    font-size: 2rem;
  }

  .card-suit {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--midnight);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}
