/* =========================================
   AURORA V1 — Clean Luxury Editorial UI
   Goal: 100% new look, same HTML structure
   ========================================= */

:root {
  /* Core palette */
  --ui-bg: #0b1020;
  --ui-bg-soft: #0f1730;
  --ui-surface: rgba(255, 255, 255, 0.06);
  --ui-surface-2: rgba(255, 255, 255, 0.09);
  --ui-border: rgba(255, 255, 255, 0.14);
  --ui-border-soft: rgba(255, 255, 255, 0.09);

  --ui-text: rgba(255, 255, 255, 0.92);
  --ui-muted: rgba(255, 255, 255, 0.64);
  --ui-faint: rgba(255, 255, 255, 0.48);

  /* Accent system */
  --ui-accent: #ffcc66;    /* warm gold */
  --ui-accent-2: #7cf3ff;  /* cool cyan */
  --ui-accent-3: #b48cff;  /* soft violet */
  --ui-accent-ink: #0b1020;

  --ui-glow-accent: 0 18px 60px rgba(255, 204, 102, 0.25);
  --ui-glow-cyan: 0 18px 60px rgba(124, 243, 255, 0.18);
  --ui-glow-violet: 0 18px 60px rgba(180, 140, 255, 0.18);

  /* Typography */
  --font-sans: "Manrope", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", "Outfit", ui-serif, Georgia, "Times New Roman", serif;

  /* Radii + motion */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --transition: 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
  --header-h: 78px;

  /* Layout */
  --container-max: 1180px;
  --shadow-1: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 22px 70px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);

  /* ── Legacy aliases (keeps existing CSS/inline styles working) ── */
  --bg-dark: var(--ui-bg);
  --bg-pane: var(--ui-surface);
  --bg-pane-hover: var(--ui-surface-2);

  --clr-primary: var(--ui-accent);
  --clr-primary-glow: rgba(255, 204, 102, 0.28);

  --clr-secondary: var(--ui-accent-3);
  --clr-secondary-glow: rgba(180, 140, 255, 0.24);

  --text-main: var(--ui-text);
  --text-muted: var(--ui-muted);

  --border-light: var(--ui-border-soft);
  --border-hover: var(--ui-border);

  --primary-color: var(--ui-accent);
  --border-color: var(--ui-border-soft);
  --header-bg: rgba(11, 16, 32, 0.72);
  --clr-bg: var(--ui-bg);
  --clr-muted: var(--ui-muted);
  --clr-border: var(--ui-border-soft);
  --glow-primary: var(--ui-glow-accent);
  --bg-card: rgba(255, 255, 255, 0.05);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(124, 243, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(180, 140, 255, 0.18), transparent 60%),
    radial-gradient(1000px 700px at 60% 120%, rgba(255, 204, 102, 0.16), transparent 55%),
    linear-gradient(180deg, #090d1a 0%, #0b1020 40%, #070a13 100%);
  color: var(--ui-text);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

/* Ambient background glows (shared) */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
}

body::before {
  top: -140px;
  right: -160px;
  background: var(--ui-accent-3);
}

body::after {
  bottom: -160px;
  left: -180px;
  background: var(--ui-accent-2);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition), transform var(--transition), background-color var(--transition),
    border-color var(--transition), box-shadow var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

.container {
  width: min(92%, var(--container-max));
  margin: 0 auto;
}

/* Ambient background helper used by list/show/news pages */
.ambient-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-background .orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  transform: translate3d(0, 0, 0);
}

.ambient-background .orb-1 {
  top: -160px;
  left: -160px;
  background: rgba(124, 243, 255, 0.35);
}

.ambient-background .orb-2 {
  top: -140px;
  right: -220px;
  background: rgba(180, 140, 255, 0.35);
}

.ambient-background .orb-3 {
  bottom: -220px;
  left: 45%;
  transform: translateX(-50%);
  background: rgba(255, 204, 102, 0.28);
}

/* ─── Header ─── */
header,
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1100;
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
  background: rgba(11, 16, 32, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header.scrolled,
#main-header.scrolled {
  background: rgba(11, 16, 32, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.35);
}

/* Static header for show.html - not fixed */
/* Removed header-static rules to make show.html consistent */

.header-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}

.logo img {
  height: 38px;
}

.nav-list ul {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-list a {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ui-muted);
  letter-spacing: 0.02em;
}

.nav-list a:hover,
.nav-list li.active a {
  color: var(--ui-text);
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-login {
  font-size: 1.09rem; /* Increased by 15% from 0.95rem */
  font-weight: 650;
  color: var(--ui-text);
  padding: 0.92rem 1.61rem; /* Increased by 15% from 0.8rem 1.4rem */
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.btn-signup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--ui-accent) 0%, rgba(255, 204, 102, 0.85) 60%, rgba(124, 243, 255, 0.55) 140%);
  color: var(--ui-accent-ink);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.09rem; /* Increased by 15% from 0.95rem */
  padding: 0.92rem 1.61rem; /* Increased by 15% from 0.8rem 1.4rem */
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--ui-glow-accent);
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 70px rgba(255, 204, 102, 0.28);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px; /* Smaller border radius */
  width: 36px; /* Reduced from 48px */
  height: 36px; /* Reduced from 48px */
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px; /* Reduced from 6px */
  position: relative;
  z-index: 2000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.mobile-menu-toggle span {
  width: 18px; /* Reduced from 24px */
  height: 2px; /* Reduced from 3px */
  background: var(--ui-text);
  border-radius: 2px; /* Reduced from 3px */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.mobile-menu-toggle.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle.active span {
  background: var(--ui-accent);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg); /* Adjusted for smaller size */
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg); /* Adjusted for smaller size */
}

/* Mobile menu header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 16, 32, 0.98);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.mobile-menu-logo img {
  height: 45px;
  transition: transform 0.3s ease;
}

/* Mobile menu close button (standalone) */
.mobile-menu-close {
  position: absolute;
  top: 1.5rem; /* Reduced from 2rem */
  right: 1.5rem; /* Reduced from 2rem */
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px; /* Smaller border radius */
  width: 40px; /* Smaller size */
  height: 40px; /* Smaller size */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ui-text);
  font-size: 1.1rem; /* Smaller icon */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: 10;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1) rotate(90deg);
  border-color: rgba(255, 255, 255, 0.3);
}

.mobile-menu-close:active {
  transform: scale(0.95) rotate(90deg);
}

/* Mobile menu auth buttons */
.mobile-menu-auth {
  display: flex;
  gap: 1rem;
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 16, 32, 0.98);
  backdrop-filter: blur(20px);
  margin-top: auto;
  position: sticky;
  bottom: 0;
}

.mobile-btn-login,
.mobile-btn-register {
  flex: 1;
  text-align: center;
  padding: 1.2rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-btn-login {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ui-text);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-btn-login:hover,
.mobile-btn-login:active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.mobile-btn-register {
  background: linear-gradient(135deg, var(--ui-accent) 0%, rgba(124, 243, 255, 0.75) 120%);
  color: var(--ui-accent-ink);
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--ui-glow-accent);
}

.mobile-btn-register:hover,
.mobile-btn-register:active {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 204, 102, 0.4);
}

.mobile-btn-login:active,
.mobile-btn-register:active {
  transform: translateY(0) scale(0.98);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.no-scroll {
  overflow: hidden;
}

/* ─── Shared utilities ─── */
.responsive-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.responsive-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.responsive-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.bet-card-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .bet-card-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  
  .bet-card-grid > div:last-child {
    text-align: center !important;
  }
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  text-align: center;
}

.gradient-text {
  background: linear-gradient(90deg, var(--ui-accent) 0%, var(--ui-accent-2) 55%, var(--ui-accent-3) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
  background: linear-gradient(90deg, var(--ui-accent-3), rgba(255, 204, 102, 0.95));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Page container for list, news, show pages */
.page-container {
  padding-top: var(--header-h);
}

/* Static header pages don't need top padding - Removed */

/* ─── Footer ─── */
footer,
#main-footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5rem 0 2rem;
  margin-top: 5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3.25rem;
  margin-bottom: 3.25rem;
}

.footer-brand p,
.footer-desc {
  color: var(--ui-muted);
  font-size: 0.92rem;
  margin-top: 1.25rem;
  max-width: 320px;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 1.05rem;
  margin-bottom: 1.15rem;
  color: var(--ui-text);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-nav a {
  color: var(--ui-muted);
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--ui-accent-2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ui-muted);
  font-size: 0.85rem;
  gap: 1rem;
}

/* ─── Small utility classes used in templates ─── */
.text-white { color: #fff !important; }
.text-center { text-align: center !important; }
.d-flex { display: flex !important; }
.gap-3 { gap: 1rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-3 { margin-top: 1rem !important; }
.pt-3 { padding-top: 1rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.border-top-dark { border-top: 1px solid rgba(255, 255, 255, 0.08) !important; }
.text-muted-light { color: var(--ui-muted) !important; }

/* Header container helper referenced by pages */
.glass-nav {
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 50px rgba(0,0,0,0.25);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .responsive-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px; /* Slightly smaller width */
    max-width: 85vw;
    height: 100vh;
    margin: 0;
    background: rgba(11, 16, 32, 0.98);
    backdrop-filter: blur(25px);
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    transform: translateX(100%);
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-list.active {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    flex: 1;
    padding: 4rem 0 2rem; /* More top padding for close button */
    margin: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateX(50px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .nav-list.active ul li {
    transform: translateX(0);
    opacity: 1;
    transition-delay: calc(var(--i, 0) * 0.08s); /* Faster animation */
  }

  .nav-list ul li:nth-child(1) { --i: 1; }
  .nav-list ul li:nth-child(2) { --i: 2; }
  .nav-list ul li:nth-child(3) { --i: 3; }
  .nav-list ul li:nth-child(4) { --i: 4; }
  .nav-list ul li:nth-child(5) { --i: 5; }
  .nav-list ul li:nth-child(6) { --i: 6; }
  .nav-list ul li:nth-child(7) { --i: 7; }
  .nav-list ul li:nth-child(8) { --i: 8; }

  .nav-list ul li:last-child {
    border-bottom: none;
  }

  .nav-list ul li a {
    display: block;
    padding: 1rem 1.5rem; /* Compact padding */
    font-size: 0.95rem; /* Slightly smaller text */
    font-weight: 600;
    color: var(--ui-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis for long text */
  }

  .nav-list ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--ui-accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
  }

  .nav-list ul li a:hover,
  .nav-list ul li a:active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ui-accent);
    padding-left: 1.8rem; /* Less indentation */
  }

  .nav-list ul li a:hover::before,
  .nav-list ul li a:active::before {
    transform: scaleY(1);
  }

  /* Show auth buttons in header on mobile - updated as per image */
  .header-auth {
    display: flex !important;
    gap: 0.5rem;
    align-items: center;
  }

  .btn-login {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
  }

  .btn-login:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .btn-signup {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f5d173 0%, #d4af37 100%);
    color: #000;
    font-weight: 800;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
  }

  .mobile-menu-toggle {
    display: flex;
    background: #2a2a3c;
    border: none;
    border-radius: 8px;
    width: 38px;
    height: 34px;
  }

  .mobile-menu-toggle span {
    background: #fff;
    width: 18px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 60px; /* Smaller header height on mobile */
  }

  .responsive-grid-2,
  .responsive-grid-3,
  .responsive-grid-auto {
    grid-template-columns: 1fr !important;
    gap: 1rem !important; /* Smaller gaps */
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem; /* Smaller gap */
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Optimized header layout for mobile */
  .header-container {
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Changed from space-between */
    gap: 0.75rem; /* Space between elements */
    width: 100%;
    max-width: 100vw;
  }

  .logo {
    margin-right: auto; /* Push everything else to the right */
    flex-shrink: 0; /* Prevent logo from shrinking */
  }

  .logo img {
    height: 32px; /* Smaller logo */
  }

  /* Optimized mobile menu toggle */
  .mobile-menu-toggle {
    width: 38px;
    height: 34px;
    gap: 3px;
    flex-shrink: 0;
  }

  .mobile-menu-toggle span {
    width: 16px;
    height: 2px;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg); /* Adjusted for smaller size */
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg); /* Adjusted for smaller size */
  }

  /* Optimized mobile menu */
  .nav-list {
    width: 260px; /* Smaller width on mobile */
  }

  .nav-list ul li a {
    padding: 1rem 1.2rem; /* More compact padding */
    font-size: 0.9rem; /* Smaller text */
  }

  .mobile-menu-close {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    top: 1.2rem;
    right: 1.2rem;
  }

  /* Smaller page content */
  .page-container {
    padding-top: 60px; /* Match smaller header */
  }

  /* Smaller section padding */
  .content-section {
    padding: 3rem 0; /* Reduced from default */
  }

  /* Smaller container padding */
  .container {
    padding-left: 1.5rem; /* Increased from 1rem */
    padding-right: 1.5rem; /* Increased from 1rem */
  }

  /* Smaller typography */
  h1 {
    font-size: 1.8rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.2rem !important;
  }

  p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }

  /* Smaller cards and components */
  .news-card-glow,
  .game-card-angular,
  .tournament-card {
    border-radius: 12px; /* Smaller border radius */
  }

  .news-glow-content {
    padding: 1.2rem; /* Reduced padding */
  }

  .news-glow-content h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem;
  }

  .news-glow-content p {
    font-size: 0.8rem !important;
    margin-bottom: 1rem;
  }

  /* Smaller buttons */
  .btn-primary,
  .btn-secondary {
    padding: 0.7rem 1.2rem;
    font-size: 0.8rem;
    border-radius: 20px;
  }

  /* Enhanced mobile menu for smaller screens */
  .mobile-menu-header {
    padding: 1.5rem;
  }

  .mobile-menu-logo img {
    height: 40px;
  }

  .mobile-menu-auth {
    padding: 1.5rem;
    gap: 0.75rem;
  }

  .mobile-btn-login,
  .mobile-btn-register {
    padding: 1rem 0.75rem;
    font-size: 0.95rem;
    min-height: 52px;
  }

  /* Improve touch targets */
  .mobile-menu-toggle {
    min-width: 38px;
    min-height: 34px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  :root {
    --header-h: 56px; /* Even smaller header on very small screens */
  }

  html, body {
    overflow-x: hidden;
    max-width: 100vw;
    font-size: 14px; /* Smaller base font size */
  }
  
  .container {
    width: 100%;
    padding-left: 1.2rem; /* Increased from 0.8rem */
    padding-right: 1.2rem; /* Increased from 0.8rem */
  }

  /* Ultra-compact header for very small screens */
  .header-container {
    padding: 0 0.8rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
    max-width: 100vw;
  }

  .logo {
    flex-shrink: 0;
  }

  .logo img {
    height: 28px; /* Even smaller logo */
  }

  /* Ultra-compact auth buttons */
  .header-auth {
    gap: 0.2rem; /* Very tight spacing */
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  .btn-login,
  .btn-signup {
    font-size: 0.86rem; /* Increased by 15% from 0.75rem */
    padding: 0.46rem 0.69rem; /* Increased by 15% from 0.4rem 0.6rem */
    border-radius: 21px; /* Increased by 15% from 18px */
    white-space: nowrap;
    min-width: auto;
    line-height: 1.2;
  }

  /* Ultra-compact mobile menu toggle */
  .mobile-menu-toggle {
    width: 28px; /* Very small for tiny screens */
    height: 28px;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 0.3rem;
    min-width: 28px;
    min-height: 28px;
  }

  .mobile-menu-toggle span {
    width: 14px;
    height: 2px;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg); /* Adjusted for very small size */
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg); /* Adjusted for very small size */
  }

  /* Ultra-compact mobile menu */
  .nav-list {
    width: 240px; /* Even smaller width */
  }

  .nav-list ul li a {
    padding: 0.9rem 1rem; /* Very compact padding */
    font-size: 0.85rem; /* Smaller text */
  }

  .mobile-menu-close {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    top: 1rem;
    right: 1rem;
  }

  /* Smaller page content */
  .page-container {
    padding-top: 56px;
  }

  /* Compact section padding */
  .content-section {
    padding: 2rem 0;
  }

  /* Compact typography */
  h1 {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 1.3rem !important;
    line-height: 1.2 !important;
  }

  h3 {
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
  }

  p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }

  /* Compact cards */
  .news-glow-content {
    padding: 1rem;
  }

  .news-glow-content h3 {
    font-size: 1rem !important;
    margin-bottom: 0.4rem;
  }

  .news-glow-content p {
    font-size: 0.75rem !important;
    margin-bottom: 0.8rem;
  }

  /* Compact buttons */
  .btn-primary,
  .btn-secondary {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    border-radius: 18px;
  }

  /* Compact hero section */
  .hero {
    padding: 4rem 0 3rem;
  }

  /* Hero section mobile spacing improvements */
  .hero .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  .hero h1 {
    font-size: 1.8rem !important;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 0.8rem !important;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Hero buttons with better spacing */
  .hero .btn-primary,
  .hero .btn-secondary {
    margin: 0.25rem;
    min-width: 140px;
  }

  /* Compact stats */
  .hero-stats .stat-item h4 {
    font-size: 1.2rem !important;
  }

  .hero-stats .stat-item p {
    font-size: 0.7rem !important;
  }

  /* Compact page hero */
  .page-hero {
    padding: 3rem 0 2rem;
  }

  .page-title {
    font-size: 1.8rem !important;
    margin-bottom: 1rem;
  }

  /* Compact breadcrumbs */
  .breadcrumb-nav {
    font-size: 0.75rem !important;
    margin-bottom: 1.5rem;
  }

  /* Compact hero meta */
  .hero-meta {
    gap: 1rem;
  }

  .hero-badge {
    padding: 0.4rem 1rem;
    font-size: 0.65rem;
  }

  .hero-meta-item {
    font-size: 0.75rem;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
  .nav-list ul li a {
    padding: 1rem 1.5rem;
  }

  .mobile-menu-close {
    top: 1rem;
    right: 1.5rem;
  }
}

/* Hero section mobile spacing improvements */
@media (max-width: 768px) {
  .hero .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  .hero h1 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .hero p {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Hero buttons container */
  .hero div[style*="display: flex"] {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  /* Hero stats container */
  .hero div[style*="gap: 2.5rem"] {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .hero .container {
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
  }

  .hero h1 {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }

  .hero p {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }

  /* Hero buttons container */
  .hero div[style*="display: flex"] {
    padding-left: 0.3rem !important;
    padding-right: 0.3rem !important;
  }

  /* Hero stats container */
  .hero div[style*="gap: 2.5rem"] {
    padding-left: 0.3rem !important;
    padding-right: 0.3rem !important;
  }
}

