/* ============================================
   CaseTheWolf.com - Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Quicksand:wght@400;500;600;700&family=Poppins:wght@400;600;700;800&display=swap');

/* CSS Variables */
:root {
  --navy: #1a2744;
  --navy-light: #243366;
  --red: #d42b2b;
  --red-dark: #b71c1c;
  --sky: #4fc3f7;
  --sky-dark: #0288d1;
  --green: #2e7d32;
  --green-light: #43a047;
  --beige: #fdf6e3;
  --beige-dark: #f5e6c8;
  --gold: #f9a825;
  --gold-light: #ffcc02;
  --purple: #7b1fa2;
  --orange: #e65100;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-mid: #3d3d5c;
  --shadow: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.2);
  --radius: 20px;
  --radius-sm: 12px;
  --font-main: 'Nunito', sans-serif;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Quicksand', sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--beige);
  color: var(--text-dark);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============================================
   TOP BANNER
   ============================================ */
.top-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1e3a8a 100%);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.top-banner::before {
  content: '';
  position: absolute;
  inset: 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.03'%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");
}

.banner-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  z-index: 1;
}

.banner-logo-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.banner-logo-text {
  display: flex;
  flex-direction: column;
}

.banner-logo-text .site-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-logo-text .site-name span {
  color: var(--gold-light);
}

.banner-logo-text .site-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.banner-right {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.banner-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: transform 0.2s, opacity 0.2s;
}

.banner-social-btn:hover { transform: scale(1.1); opacity: 0.9; }
.banner-social-btn.spotify { background: #1DB954; }
.banner-social-btn.youtube { background: #FF0000; }
.banner-social-btn.twitter { background: #000000; }

.banner-search-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.banner-search-btn:hover { background: rgba(255,255,255,0.25); }

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border-bottom: 3px solid var(--gold);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

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

.nav-menu li a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 10px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.84rem;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-menu li a:hover {
  color: white;
  border-bottom-color: var(--gold);
  background: rgba(255,255,255,0.08);
}

.nav-menu li.active a {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

.nav-menu li a .nav-icon { font-size: 1rem; }

.nav-join-btn {
  background: var(--red) !important;
  color: white !important;
  border-radius: 30px !important;
  padding: 10px 20px !important;
  border-bottom: none !important;
  font-weight: 800 !important;
  font-size: 0.88rem !important;
  box-shadow: 0 3px 12px rgba(212,43,43,0.4);
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(212,43,43,0.5) !important;
  border-bottom: none !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s;
}

/* ============================================
   PAGE WRAPPER
   ============================================ */
.page-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, #e8f4fd 0%, #d4eaf9 40%, #c8e6c9 100%);
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--beige), transparent);
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 600px; }

.hero-greeting {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.08);
  margin-bottom: 8px;
}

.hero-greeting span { color: var(--red); }

.hero-subtitle {
  display: inline-block;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(212,43,43,0.3);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(212,43,43,0.35);
}

.btn-primary:hover { box-shadow: 0 6px 22px rgba(212,43,43,0.45); }

.btn-secondary {
  background: linear-gradient(135deg, var(--sky-dark), #01579b);
  color: white;
  box-shadow: 0 4px 16px rgba(2,136,209,0.35);
}

.btn-secondary:hover { box-shadow: 0 6px 22px rgba(2,136,209,0.45); }

.btn-success {
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: white;
  box-shadow: 0 4px 16px rgba(46,125,50,0.35);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(249,168,37,0.35);
}

.btn-gold:hover { box-shadow: 0 6px 22px rgba(249,168,37,0.45); }

.btn-outline {
  background: transparent;
  border: 3px solid var(--navy);
  color: var(--navy);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* ============================================
   SECTION STYLES
   ============================================ */
section { padding: 60px 20px; }

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 8px;
}

.section-title span { color: var(--red); }

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-mid);
  text-align: center;
  margin-bottom: 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.wood-banner {
  background: linear-gradient(135deg, #8B6914, #A0784A, #8B6914);
  border-radius: var(--radius);
  padding: 20px 32px;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
  margin-bottom: 40px;
  border: 3px solid #6d4e0f;
}

.wood-banner h1, .wood-banner h2 {
  font-family: var(--font-display);
  font-weight: 900;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.wood-banner p {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-body);
  font-weight: 600;
  margin-top: 6px;
}

/* ============================================
   EXPLORE CARDS
   ============================================ */
.explore-section {
  background: white;
  padding: 50px 20px;
}

.explore-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.explore-card {
  border-radius: var(--radius);
  padding: 28px 24px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.explore-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(0,0,0,0.05));
  border-radius: var(--radius);
}

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

.explore-card.books { background: linear-gradient(135deg, #1565C0, #1976D2); }
.explore-card.games { background: linear-gradient(135deg, #2E7D32, #388E3C); }
.explore-card.music { background: linear-gradient(135deg, #7B1FA2, #9C27B0); }
.explore-card.videos { background: linear-gradient(135deg, #C62828, #E53935); }

.explore-card .card-icon {
  font-size: 3.5rem;
  margin-bottom: 14px;
  display: block;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.explore-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.explore-card p {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.explore-card .card-cta {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-main);
  transition: background 0.2s;
}

.explore-card:hover .card-cta { background: rgba(255,255,255,0.35); }

/* ============================================
   CASE CLUB PROMO
   ============================================ */
.case-club-promo {
  background: linear-gradient(135deg, var(--navy) 0%, #243366 50%, #1a2744 100%);
  padding: 50px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.case-club-promo::before {
  content: '⭐';
  position: absolute;
  font-size: 200px;
  opacity: 0.04;
  top: -50px;
  left: -30px;
}

.case-club-promo h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 10px;
}

.case-club-promo h2 span { color: var(--gold-light); }

.case-club-promo p {
  color: rgba(255,255,255,0.8);
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.club-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.club-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: white;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
}

.club-feature .feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 3px solid rgba(255,255,255,0.2);
}

/* ============================================
   SOCIAL / TWITTER FEED
   ============================================ */
.social-section {
  background: var(--beige);
  padding: 50px 20px;
}

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

.social-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.social-card-header {
  background: var(--navy);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
}

.twitter-feed-mock {
  padding: 20px;
}

.tweet {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.tweet:last-child { border-bottom: none; }

.tweet-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.tweet-content { flex: 1; }

.tweet-name {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.tweet-handle {
  font-size: 0.8rem;
  color: #888;
  margin-left: 4px;
}

.tweet-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-top: 4px;
  line-height: 1.5;
}

.tweet-time {
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 4px;
}

/* ============================================
   LEGAL PROFESSIONALS SIDEBAR
   ============================================ */
.legal-sidebar {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.legal-sidebar-header {
  background: linear-gradient(135deg, #1a2744, #243366);
  padding: 18px 20px;
  color: white;
}

.legal-sidebar-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.legal-sidebar-header p {
  font-size: 0.85rem;
  opacity: 0.85;
}

.legal-sidebar-content { padding: 20px; }

.legal-book-preview {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 2px dashed #f0f0f0;
}

.legal-book-cover {
  width: 70px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #1a2744, #243366);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  padding: 8px;
  flex-shrink: 0;
}

.legal-learn-list {
  list-style: none;
  margin-bottom: 18px;
}

.legal-learn-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  padding: 5px 0;
  font-weight: 600;
}

.legal-learn-list li::before {
  content: '●';
  color: var(--red);
  font-size: 0.7rem;
}

/* ============================================
   SPOTIFY SECTION
   ============================================ */
.music-section {
  background: linear-gradient(135deg, #121212, #1DB954 180%);
  padding: 50px 20px;
  text-align: center;
}

.music-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}

.music-section p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  font-family: var(--font-body);
}

/* ============================================
   BOOKS PAGE
   ============================================ */
.books-section {
  background: var(--beige);
  padding: 50px 20px;
}

.books-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 30px;
  border: 3px solid var(--navy);
  background: white;
  color: var(--navy);
  font-family: var(--font-main);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--navy);
  color: white;
}

.books-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}

.book-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 3px solid transparent;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.book-cover-wrap {
  height: 220px;
  background: linear-gradient(135deg, #e8f0fe, #c5cae9);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.book-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover-placeholder {
  font-size: 4rem;
  opacity: 0.4;
}

.book-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--navy);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-main);
}

.book-info { padding: 18px; }

.book-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 8px;
}

.book-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.book-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-bottom: 14px;
  line-height: 1.5;
}

.book-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 12px;
}

.book-actions {
  display: flex;
  gap: 8px;
}

.book-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 10px 14px;
  font-size: 0.82rem;
}

/* Bundle Card */
.bundle-section {
  max-width: 1200px;
  margin: 50px auto 0;
}

.bundle-card {
  background: linear-gradient(135deg, var(--navy), #243366);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.bundle-card::before {
  content: '📚';
  position: absolute;
  font-size: 180px;
  opacity: 0.05;
  right: -20px;
  bottom: -40px;
}

.bundle-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  margin-bottom: 8px;
}

.bundle-content h2 span { color: var(--gold-light); }

.bundle-content p {
  color: rgba(255,255,255,0.8);
  font-family: var(--font-body);
  margin-bottom: 16px;
}

.bundle-pricing {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bundle-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold-light);
}

.bundle-original {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.5);
  text-decoration: line-through;
}

.bundle-save {
  background: var(--red);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.9rem;
  font-family: var(--font-main);
}

/* ============================================
   GAMES PAGE
   ============================================ */
.games-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.game-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
}

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

.game-header {
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.game-icon-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 16px;
  border: 3px solid rgba(255,255,255,0.3);
}

.game-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.game-header p {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.game-footer {
  background: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coins-badge {
  background: var(--gold-light);
  color: var(--navy);
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.85rem;
  font-family: var(--font-main);
}

/* ============================================
   CASE CLUB PAGE
   ============================================ */
.club-page {
  background: linear-gradient(135deg, #0d1b3e, #1a2744 50%, #243366);
  min-height: 100vh;
  padding: 50px 20px;
}

.club-profile {
  max-width: 900px;
  margin: 0 auto 40px;
}

.profile-card {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(10px);
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 4px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.profile-info h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}

.profile-level {
  background: var(--gold-light);
  color: var(--navy);
  padding: 3px 14px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.85rem;
  font-family: var(--font-main);
  display: inline-block;
  margin-bottom: 10px;
}

.coins-bar-wrap {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  height: 12px;
  overflow: hidden;
  margin-top: 8px;
}

.coins-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  transition: width 0.5s;
}

.profile-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}

.stat-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-family: var(--font-body);
}

/* Badges Grid */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.badge-card {
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 20px 14px;
  text-align: center;
  transition: transform 0.2s;
}

.badge-card.earned {
  border-color: var(--gold);
  background: rgba(249,168,37,0.1);
}

.badge-card:hover { transform: translateY(-4px); }

.badge-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 10px;
  filter: grayscale(100%);
  opacity: 0.4;
}

.badge-card.earned .badge-icon { filter: none; opacity: 1; }

.badge-title {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}

.badge-card.earned .badge-title { color: white; }

.badge-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-body);
}

/* Leaderboard */
.leaderboard {
  max-width: 700px;
  margin: 0 auto;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 50px auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-bottom: 12px;
  border: 2px solid rgba(255,255,255,0.08);
  transition: transform 0.2s;
}

.leaderboard-row:hover { transform: scale(1.02); }
.leaderboard-row.rank-1 { border-color: var(--gold); background: rgba(249,168,37,0.1); }
.leaderboard-row.rank-2 { border-color: #c0c0c0; background: rgba(192,192,192,0.08); }
.leaderboard-row.rank-3 { border-color: #cd7f32; background: rgba(205,127,50,0.08); }

.rank-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  text-align: center;
}

.rank-1 .rank-number { color: var(--gold-light); }

.leaderboard-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 2px solid rgba(255,255,255,0.2);
}

.leaderboard-name {
  font-family: var(--font-main);
  font-weight: 700;
  color: white;
  font-size: 1rem;
}

.leaderboard-xp {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold-light);
  font-size: 1.1rem;
  text-align: right;
}

/* ============================================
   QUIZ ENGINE
   ============================================ */
.quiz-container {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.quiz-question {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.4;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.quiz-option {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 3px solid #e0e0e0;
  background: white;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.quiz-option:hover { border-color: var(--sky-dark); background: #e8f4fd; }
.quiz-option.correct { border-color: var(--green); background: #e8f5e9; color: var(--green); }
.quiz-option.wrong { border-color: var(--red); background: #ffebee; color: var(--red); }

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.quiz-progress-bar {
  flex: 1;
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sky-dark), var(--sky));
  border-radius: 5px;
  transition: width 0.4s;
}

.quiz-counter {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--text-mid);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ============================================
   LEGAL PROFESSIONALS PAGE
   ============================================ */
.legal-page {
  background: linear-gradient(to bottom, #f8f9fa, white);
}

.legal-hero {
  background: linear-gradient(135deg, #1a2744 0%, #243366 50%, #1a365d 100%);
  padding: 80px 20px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.legal-hero::after {
  content: '⚖️';
  position: absolute;
  font-size: 300px;
  opacity: 0.04;
  right: -50px;
  bottom: -80px;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.legal-hero h1 span { color: var(--gold-light); }

.cpd-badge-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.cpd-badge {
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  text-align: center;
  min-width: 160px;
}

.cpd-badge .hours {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold-light);
  display: block;
}

.cpd-badge .type {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.legal-products-grid {
  max-width: 1200px;
  margin: 50px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  padding: 0 20px;
}

.legal-product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid #e8ecf4;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.legal-product-header {
  background: linear-gradient(135deg, var(--navy), #243366);
  padding: 28px 24px;
  text-align: center;
  color: white;
}

.legal-product-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  display: block;
}

.legal-product-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.legal-product-body { padding: 24px; }

.legal-product-body ul {
  list-style: none;
  margin-bottom: 20px;
}

.legal-product-body ul li {
  padding: 6px 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-mid);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.legal-product-body ul li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* Testimonials */
.testimonials {
  background: var(--beige);
  padding: 60px 20px;
}

.testimonials-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: var(--navy);
  opacity: 0.08;
  font-family: serif;
  line-height: 1;
}

.testimonial-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: italic;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
}

.testimonial-name {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.testimonial-title {
  font-size: 0.82rem;
  color: #888;
  font-family: var(--font-body);
}

/* ============================================
   WORLD MAP
   ============================================ */
.world-section {
  background: linear-gradient(135deg, #0a4a2a, #1b7a40, #0a4a2a);
  padding: 50px 20px;
  min-height: 600px;
}

#world-canvas-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

#world-canvas {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: 4px solid rgba(255,255,255,0.2);
}

.world-info-panel {
  background: white;
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-top: 20px;
  display: none;
  box-shadow: var(--shadow);
}

.world-info-panel.active { display: block; }

/* ============================================
   FOOTER
   ============================================ */
.footer-nav {
  background: var(--navy);
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.footer-nav a:hover { color: white; }

.footer-bottom {
  background: #0f1a30;
  padding: 18px 20px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--sky);
  text-decoration: none;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

/* ============================================
   NOTIFICATION TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--navy);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 5px solid var(--gold);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================
   EMAIL SIGNUP
   ============================================ */
.email-signup {
  background: linear-gradient(135deg, var(--navy), #243366);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.email-signup h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: white;
  margin-bottom: 8px;
}

.email-signup h2 span { color: var(--gold-light); }

.email-signup p {
  color: rgba(255,255,255,0.8);
  font-family: var(--font-body);
  margin-bottom: 24px;
}

.email-form {
  display: flex;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
}

.email-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 30px;
  border: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.1);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeIn 0.5s ease forwards; }

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .social-grid { grid-template-columns: 1fr; }
  .bundle-card { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .profile-card { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
  .hamburger { display: flex !important; }
  .nav-menu { 
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--navy);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-top: 2px solid var(--gold);
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-menu.open { display: flex !important; }
  .nav-menu li { width: 100%; }
  .nav-menu li a { 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    border-right: none;
    padding: 14px 12px;
    font-size: 1rem;
    width: 100%;
  }
  .hero-greeting { font-size: 2.5rem; }
  .section-title { font-size: 1.8rem; }
  .email-form { flex-direction: column; }
  .banner-logo-text .site-name { font-size: 1.5rem; }
  .top-banner { padding: 10px 14px; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .explore-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr 1fr; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .cpd-badge-row { flex-direction: column; align-items: center; }
}

/* ── Account Nav Button ────────────────────────────── */
.nav-account-btn {
  display: flex !important;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--green), #43a047) !important;
  color: white !important;
  padding: 7px 16px !important;
  border-radius: 20px !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
}
.nav-account-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-avatar { font-size: 1.1rem; }

/* ── Free Badge on Games/Club ─────────────────────── */
.free-to-play-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #2e7d32, #43a047);
  color: white; padding: 5px 14px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(46,125,50,0.35);
}

/* ── Login prompt gate ────────────────────────────── */
.login-gate {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 60vh;
  text-align: center; padding: 40px 20px;
}
.login-gate-card {
  background: white; border-radius: 24px; padding: 48px 36px;
  max-width: 420px; width: 100%;
  box-shadow: 0 8px 40px rgba(26,39,68,0.12);
  border: 2px solid rgba(46,125,50,0.15);
}

/* ── Add to Cart Button — two-line layout ──────────────────────── */
.add-to-cart-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  line-height: 1.2 !important;
  padding: 12px 16px !important;
  min-height: 58px !important;
}
.cart-btn-main {
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}
.cart-btn-price {
  font-size: 1.05rem;
  font-weight: 900;
  white-space: nowrap;
}
