/*
Theme Name: 1MWIN Child Theme
Theme URI: https://1mwin.com
Description: Dark purple/violet casino theme for 1MWIN - Malaysia's Top Choice for Slot Betting & Live Casino
Author: 1MWIN
Author URI: https://1mwin.com
Template: hello-elementor
Version: 1.0.0
Text Domain: 1mwin-child
*/

/* ===== CSS VARIABLES ===== */
:root {
  --bg-dark: #0a0015;
  --bg-darker: #060010;
  --bg-card: #1a0033;
  --bg-card-hover: #240045;
  --bg-section-alt: #0f001f;
  --purple-primary: #7c3aed;
  --purple-light: #a855f7;
  --purple-glow: rgba(124, 58, 237, 0.3);
  --gold: #facc15;
  --gold-hover: #fde047;
  --text-white: #ffffff;
  --text-gray: #c4b5d4;
  --text-muted: #8b7aa0;
  --green-rtp: #22c55e;
  --star-yellow: #facc15;
  --border-purple: rgba(124, 58, 237, 0.2);
  --gradient-hero: linear-gradient(135deg, #0a0015 0%, #1a0033 50%, #0f001f 100%);
  --gradient-card: linear-gradient(145deg, #1a0033 0%, #0f001f 100%);
  --gradient-cta: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  --gradient-purple: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-dark);
  color: var(--text-white);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--purple-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.site-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
  background: rgba(10, 0, 21, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-purple);
}

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

.site-logo img {
  height: 45px;
  width: auto;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2px;
  flex-wrap: wrap;
}

.main-navigation li a {
  color: var(--text-gray);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.main-navigation li a:hover,
.main-navigation li.current-menu-item a {
  color: var(--text-white);
  background: rgba(124, 58, 237, 0.15);
}

.header-cta .btn-play-now {
  background: var(--gradient-cta);
  color: #000;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  display: inline-block;
}

.header-cta .btn-play-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.4);
  color: #000;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}

.burger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 22px;
  position: relative;
}

.burger-line {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute;
  left: 0;
}

.burger-line:nth-child(1) {
  top: 0;
}

.burger-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.burger-line:nth-child(3) {
  bottom: 0;
}

/* Animate to X when menu is open */
.mobile-menu-toggle.active .burger-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-toggle.active .burger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .burger-line:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: 80px 20px;
}

.hero-section .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.85;
}

.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 0, 21, 0.1), rgba(10, 0, 21, 0.7));
}

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

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content .hero-subtitle {
  font-size: 20px;
  color: var(--text-gray);
  margin-bottom: 32px;
}

.btn-cta {
  display: inline-block;
  background: var(--gradient-cta);
  color: #000;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(250, 204, 21, 0.4);
  color: #000;
}

.btn-cta-purple {
  background: var(--gradient-purple);
  color: var(--text-white);
}

.btn-cta-purple:hover {
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.4);
  color: var(--text-white);
}

/* ===== SECTIONS ===== */
.content-section {
  padding: 80px 20px;
}

.content-section.alt-bg {
  background: var(--bg-section-alt);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-white);
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ===== WHY CHOOSE SECTION ===== */
.why-choose-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-choose-text p {
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--gradient-card);
  border: 1px solid var(--border-purple);
  padding: 20px 12px;
  border-radius: var(--radius);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.stat-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.stat-item .counter-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
}

.stat-item .counter-label {
  font-size: 12px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .stat-item .counter-number {
    font-size: 24px;
  }
  .stat-item {
    padding: 14px 8px;
  }
}

/* ===== ACTIVE USERS PILL BADGE ===== */
.active-users-pill-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.active-users-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-gray);
}

.active-users-pill {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: linear-gradient(135deg, #e040a0 0%, #d946ef 30%, #f472b6 50%, #fb923c 80%, #f59e0b 100%);
  padding: 16px 44px 16px 70px;
  border-radius: 60px;
  box-shadow:
    0 6px 30px rgba(217, 70, 239, 0.4),
    0 2px 10px rgba(251, 146, 60, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15);
  position: relative;
}

.active-users-pill::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 10%;
  right: 10%;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 100%);
  border-radius: 60px;
  pointer-events: none;
}

.active-users-icon {
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  z-index: 2;
}

.active-users-icon svg {
  width: 70px;
  height: 70px;
}

.active-users-number {
  font-size: 44px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
  .active-users-pill-wrap {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .active-users-pill-wrap {
    align-items: center;
  }
  .active-users-pill {
    padding: 10px 28px 10px 50px;
  }
  .active-users-number {
    font-size: 28px;
  }
  .active-users-icon svg {
    width: 48px;
    height: 48px;
  }
  .active-users-label {
    margin-left: 40px;
  }
}

@media (max-width: 480px) {
  .active-users-number {
    font-size: 22px;
  }
  .active-users-pill {
    padding: 8px 22px 8px 44px;
  }
  .active-users-icon svg {
    width: 40px;
    height: 40px;
  }
  .active-users-label {
    margin-left: 30px;
  }
}

/* ===== GOLD GRADIENT TEXT ===== */
.text-gold-gradient {
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 40%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== PHONE FRAME VIDEO (iPhone style) ===== */
.phone-frame {
  position: relative;
  max-width: 280px;
  margin: 0 auto;
}

.phone-frame-border {
  background: linear-gradient(145deg, #2c2c2e, #1c1c1e 40%, #3a3a3c 100%);
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(124, 58, 237, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(100, 100, 100, 0.3);
  position: relative;
}

/* Dynamic Island */
.phone-frame-border::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
}

/* Side button (power) */
.phone-frame-border::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 100px;
  width: 3px;
  height: 50px;
  background: linear-gradient(180deg, #3a3a3c, #2c2c2e);
  border-radius: 0 2px 2px 0;
}

.phone-frame-inner {
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5;
}

.phone-frame-inner video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ===== GAME CARDS ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.game-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-primary);
  box-shadow: var(--shadow-glow);
}

.game-card-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-card-image img {
  transform: scale(1.05);
}

.rtp-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.game-card-info {
  padding: 16px;
}

.game-card-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.game-card-info .game-rtp {
  font-size: 13px;
  color: var(--green-rtp);
  font-weight: 500;
}

/* ===== PROMO BANNERS ===== */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.promo-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.promo-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.promo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-card-content {
  padding: 20px;
}

.promo-card-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.promo-card-content p {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.promo-card-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.promo-card-actions .btn-learn-more {
  color: var(--purple-light);
  font-size: 14px;
  font-weight: 500;
}

.promo-card-actions .btn-play-small {
  background: var(--gradient-cta);
  color: #000;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--purple-primary);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--purple-primary);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.testimonial-name {
  font-weight: 600;
  font-size: 16px;
}

.testimonial-stars {
  color: var(--star-yellow);
  font-size: 14px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.7;
  font-style: italic;
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--gradient-card);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--purple-primary);
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--purple-light);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 24px 20px;
  max-height: 500px;
}

.faq-answer p {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== CATEGORY GRID ===== */
.category-grid-wrap {
  position: relative;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 32px;
}

.category-image {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.05);
}

/* Chatbox-style popularity bubble */
.category-popularity {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-popularity .popularity-bubble {
  background: linear-gradient(135deg, #e040a0, #d946ef, #c026d3);
  border-radius: 24px;
  padding: 6px 20px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.category-popularity .popularity-label {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.category-popularity .popularity-number {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.category-popularity .popularity-tail {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #c026d3;
}

/* Category info below image */
.category-info {
  padding: 14px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-info .category-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
}

.category-info .category-learn-more {
  font-size: 13px;
  font-weight: 600;
  color: #facc15;
  text-decoration: none;
  transition: opacity 0.2s;
}

.category-info .category-learn-more:hover {
  opacity: 0.8;
}

/* Play Now circle button - per card, bottom-right, hover only */
.category-play-btn,
.category-play-btn:link,
.category-play-btn:visited,
.category-play-btn:hover,
.category-play-btn:active,
.category-play-btn:focus {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #facc15 !important;
  color: #1a0a2e !important;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none !important;
  box-shadow: 0 6px 24px rgba(250, 204, 21, 0.4);
  z-index: 5;
  line-height: 1.2;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s;
}

.category-card:hover .category-play-btn {
  opacity: 1;
  transform: scale(1);
}

.category-play-btn:hover {
  box-shadow: 0 8px 36px rgba(250, 204, 21, 0.6);
  transform: scale(1.06);
  color: #1a0a2e !important;
  text-decoration: none !important;
}

.category-play-btn span {
  font-size: 16px;
  color: #1a0a2e !important;
}

/* ===== CATEGORY DESCRIPTIONS ===== */
.category-descriptions {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cat-desc-item h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
  text-align: center;
}

.cat-desc-item p {
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 15px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* ===== BLOG LIST ===== */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.blog-card {
  display: flex;
  gap: 0;
  background: var(--gradient-card);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  border-color: var(--purple-primary);
  box-shadow: var(--shadow-glow);
}

.blog-card-image {
  flex: 0 0 35%;
  max-width: 35%;
  overflow: hidden;
}

.blog-card-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, #1a0033, #2a0055);
}

.blog-card-placeholder span {
  font-size: 48px;
  opacity: 0.5;
}

.blog-card-content {
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-card-content h2 a {
  color: var(--text-white);
  text-decoration: none;
}

.blog-card-content h2 a:hover {
  color: var(--gold);
}

.blog-card-tags {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.blog-card-tags a {
  color: var(--purple-light);
  text-decoration: none;
  font-weight: 500;
}

.blog-card-tags a:hover {
  color: var(--gold);
}

.blog-card-date {
  color: var(--text-muted);
}

.blog-card-excerpt {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.blog-read-more {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid var(--text-muted);
  border-radius: 6px;
  color: var(--text-white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.blog-read-more:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.blog-pagination {
  text-align: center;
  margin-top: 40px;
}

.blog-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-sm);
  color: var(--text-gray);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--gradient-purple);
  color: #fff;
  border-color: var(--purple-primary);
}

@media (max-width: 768px) {
  .blog-card {
    flex-direction: column;
  }
  .blog-card-image {
    flex: none;
    max-width: 100%;
    aspect-ratio: 16/9;
  }
  .blog-card-content {
    padding: 20px;
  }
  .blog-card-content h2 {
    font-size: 18px;
  }
}

/* ===== SINGLE POST ===== */
.single .content-section {
  padding-top: 24px;
}

.single-post-hero {
  padding: 100px 20px 20px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.single-post-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.25;
  margin-bottom: 14px;
}

.single-post-meta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.single-post-tag {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid var(--border-purple);
  border-radius: 20px;
  color: var(--purple-light);
  font-size: 13px;
  font-weight: 500;
}

.single-post-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 40px;
}

/* Featured image */
.single-post-featured {
  position: relative;
  margin-bottom: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.single-post-featured img {
  width: 100%;
  height: auto;
  display: block;
}

/* View counter on featured image */
.single-post-stats {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 12px;
}

.post-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  color: var(--text-white);
  font-size: 13px;
  font-weight: 500;
}

.post-stat svg {
  opacity: 0.8;
}

/* Glowing content card */
.single-post-card {
  margin-top: 40px;
  padding: 36px 44px;
  border-radius: 20px;
  box-shadow: 0 0 18px 0 rgba(124, 58, 237, 0.5);
  background: rgba(15, 0, 31, 0.6);
}

/* Single post content typography */
.single-post-content {
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.8;
}

.single-post-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-white);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-purple);
}

.single-post-content h2:first-child {
  margin-top: 0;
}

.single-post-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-white);
  margin: 28px 0 10px;
}

.single-post-content h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-white);
  margin: 22px 0 8px;
}

.single-post-content p {
  margin-bottom: 16px;
  color: var(--text-gray);
}

.single-post-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.single-post-content a:hover {
  color: var(--gold-hover);
}

.single-post-content ul,
.single-post-content ol {
  margin: 14px 0 22px 24px;
  color: var(--text-gray);
}

.single-post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.single-post-content blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--purple-primary);
  background: rgba(124, 58, 237, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-gray);
  font-style: italic;
}

.single-post-content img {
  border-radius: var(--radius);
  margin: 20px 0;
}

.single-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border: 1px solid var(--border-purple);
  border-radius: var(--radius);
  overflow: hidden;
}

.single-post-content th,
.single-post-content td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-purple);
  color: var(--text-gray);
  font-size: 14px;
}

.single-post-content th {
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple-light);
  font-weight: 600;
}

.single-post-content tr:hover td {
  background: rgba(124, 58, 237, 0.05);
}

/* Post prev/next navigation */
.single-post-footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-purple);
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: rgba(26, 0, 51, 0.6);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius);
  text-decoration: none;
  max-width: 48%;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.post-nav-link:hover {
  border-color: var(--purple-primary);
  transform: translateY(-2px);
}

.post-nav-next {
  margin-left: auto;
  text-align: right;
}

.post-nav-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.post-nav-title {
  font-size: 15px;
  color: var(--text-white);
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-nav-link:hover .post-nav-title {
  color: var(--gold);
}

@media (max-width: 768px) {
  .single-post-hero {
    padding: 80px 16px 16px;
  }
  .single-post-title {
    font-size: 26px;
  }
  .single-post-card {
    padding: 24px 20px;
    margin-top: 28px;
    border-radius: 14px;
  }
  .single-post-content h2 {
    font-size: 22px;
  }
  .single-post-footer-nav {
    flex-direction: column;
  }
  .post-nav-link {
    max-width: 100%;
  }
  .post-nav-next {
    text-align: left;
  }
}

/* ===== TABLES ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.info-table th,
.info-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-purple);
}

.info-table th {
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple-light);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  width: 35%;
}

.info-table td {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.6;
}

.info-table tr:hover td {
  background: rgba(124, 58, 237, 0.05);
}

/* ===== RESPONSIBLE GAMING ===== */
.responsible-gaming-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.responsible-gaming-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.responsible-gaming-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 5, 40, 0.82) 0%,
    rgba(30, 10, 60, 0.88) 40%,
    rgba(20, 5, 50, 0.85) 100%
  );
  z-index: 2;
}

.responsible-gaming-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.responsible-gaming-content .section-title {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

.responsible-gaming-content p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.7;
  font-size: 16px;
}

.responsible-gaming-content .btn-cta {
  background: #facc15;
  color: #1a0a2e;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.3);
}

.responsible-gaming-content .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(250, 204, 21, 0.5);
}

/* ===== SEO CONTENT ===== */
.seo-content {
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 15px;
}

.seo-content h2 {
  color: var(--text-white);
  font-size: 28px;
  margin: 40px 0 16px;
}

.seo-content h3 {
  color: var(--text-white);
  font-size: 22px;
  margin: 32px 0 12px;
}

.seo-content p {
  margin-bottom: 16px;
}

.seo-content ul, .seo-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

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

.seo-content strong {
  color: var(--text-white);
}

/* ===== STATS ROW ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--gradient-card);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius);
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
}

.stat-label {
  color: var(--text-gray);
  font-size: 14px;
}

/* ===== LICENCE ICONS ===== */
.licence-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 0;
}

.licence-icons img {
  height: 50px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  filter: brightness(1.2);
}

.licence-icons img:hover {
  opacity: 1;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-purple);
  padding: 60px 20px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col .footer-logo img {
  height: 45px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-col .footer-tagline {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-white);
}

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

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

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--purple-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-purple);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom .copyright {
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== SUB-PAGE BANNER ===== */
.subpage-hero {
  background: var(--gradient-hero);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15), transparent 70%);
}

.subpage-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.subpage-hero p {
  color: var(--text-gray);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  line-height: 1.7;
}

/* ===== LOGIN STEPS ===== */
.login-steps {
  counter-reset: step;
}

.login-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius);
}

.login-step::before {
  counter-increment: step;
  content: counter(step);
  background: var(--gradient-purple);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== VIEWS COUNTER ===== */
.views-counter {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
  flex-wrap: wrap;
}

.views-counter .view-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-gray);
  font-size: 14px;
}

.views-counter .view-item .icon {
  font-size: 18px;
}

/* ===== WORDPRESS CONTENT STYLES ===== */
.entry-content,
.page-content {
  color: var(--text-gray);
}

.entry-content h1, .page-content h1,
.entry-content h2, .page-content h2,
.entry-content h3, .page-content h3,
.entry-content h4, .page-content h4 {
  color: var(--text-white);
}

.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}

.wp-block-table td, .wp-block-table th {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-purple);
  color: var(--text-gray);
}

.wp-block-table th {
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple-light);
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }

  .why-choose-section {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 0, 21, 0.98);
    padding: 20px;
    border-bottom: 1px solid var(--border-purple);
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
  }

  .main-navigation li a {
    display: block;
    padding: 12px 16px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .games-grid,
  .promo-grid,
  .features-grid,
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-play-btn {
    width: 70px;
    height: 70px;
    font-size: 12px;
  }

  .category-play-btn span {
    font-size: 14px;
  }

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

  .subpage-hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .games-grid,
  .promo-grid,
  .features-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .header-cta {
    display: none;
  }
}

/* ===== WORDPRESS ADMIN BAR FIX ===== */
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

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

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

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

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

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

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ===== RESPONSIBLE GAMING RESPONSIVE ===== */
@media (max-width: 1024px) {
  .responsible-gaming-section {
    min-height: 420px;
  }
  .responsible-gaming-content {
    padding: 60px 24px;
  }
  .responsible-gaming-content .section-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .responsible-gaming-section {
    min-height: 380px;
  }
  .responsible-gaming-content {
    padding: 50px 20px;
  }
  .responsible-gaming-content .section-title {
    font-size: 32px;
  }
  .responsible-gaming-content p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .responsible-gaming-section {
    min-height: 340px;
  }
  .responsible-gaming-content {
    padding: 40px 16px;
  }
  .responsible-gaming-content .section-title {
    font-size: 28px;
  }
  .responsible-gaming-content .btn-cta {
    padding: 12px 32px;
    font-size: 14px;
  }
}
