/* ==========================================================================
   DLS KITS HUB - 2026 PREMIUM SPORTS & GAMING DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Dark Theme Tokens (Default) */
  --bg-main: #080c14;
  --bg-surface: #0f1626;
  --bg-card: #151f33;
  --bg-card-hover: #1b2742;
  --bg-glass: rgba(15, 22, 38, 0.75);
  --bg-glass-card: rgba(21, 31, 51, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);
  
  --accent-primary: #00f2fe;
  --accent-secondary: #4facfe;
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --accent-glow: 0 0 25px rgba(0, 242, 254, 0.35);
  --accent-neon-green: #10b981;
  --accent-gold: #f59e0b;
  --danger: #ef4444;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #080c14;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 8px 32px rgba(0, 242, 254, 0.2);

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #f1f5f9;
  --bg-card-hover: #e2e8f0;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-card: rgba(241, 245, 249, 0.85);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(0, 163, 255, 0.4);

  --accent-primary: #0284c7;
  --accent-secondary: #2563eb;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --accent-glow: 0 0 20px rgba(2, 132, 199, 0.25);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.07);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-secondary);
}

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

/* Container */
.site-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   HEADER & NAVIGATION (Sticky Glassmorphism)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-badge {
  background: var(--accent-gradient);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  box-shadow: var(--accent-glow);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.logo-highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 2px;
}

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

.nav-link {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: 8px 4px;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
}

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

.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-1px);
}

/* Theme Toggle Button Icons */
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.hamburger-bar {
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: 0.2s;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 200;
  padding: 24px;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   HERO SECTION & STATS COUNTER
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 70px 0 50px;
  overflow: hidden;
  text-align: center;
}

.hero-glow-bg {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glow);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 242, 254, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.hero-title {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 900;
  margin-bottom: 18px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero buttons as grid — professional polished style */
.hero-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 280px));
  justify-content: center;
  gap: 16px;
}
.hero-actions-grid > a {
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.hero-actions-grid .btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.14);
}
.hero-actions-grid .btn-secondary:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.hero-actions-grid .btn-cta:hover {
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .hero-actions-grid { grid-template-columns: 1fr; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
}

.btn-cta {
  background: var(--accent-gradient);
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: var(--radius-xl, 14px);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--accent-glow);
  transition: all var(--transition-smooth);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.5);
  color: var(--text-inverse);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-xl, 14px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  color: var(--accent-primary);
}

/* Stats Counter Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-2xl);
  padding: 24px;
  margin: 40px auto 0;
  max-width: 1000px;
  box-shadow: var(--shadow-card);
}

.stat-item {
  text-align: center;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg, 12px);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.stat-item:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.stat-item:not(:last-child)::after {
  content: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--accent-primary);
  line-height: 1.1;
  display: block;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
  display: block;
}

/* ==========================================================================
   CARDS & GRIDS (Teams, Leagues, Kits)
   ========================================================================== */

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

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

.section-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.section-view-all {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Teams Grid */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 16px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  text-decoration: none;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.team-badge-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-primary);
  border: 1px solid var(--border-glow);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.team-logo-preview {
  width: 132px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px auto 12px;
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.team-logo-preview img {
  max-width: 108px;
  max-height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
  transition: transform var(--transition-smooth);
}

.team-card:hover .team-logo-preview img {
  transform: scale(1.08);
}

.team-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.team-league-info {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-stats-strip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

/* Leagues Grid */
.leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.league-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl, 16px);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: all var(--transition-smooth);
}

.league-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-sm);
}

.league-flag {
  font-size: 32px;
  line-height: 1;
}

.league-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.league-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==========================================================================
   KIT SHOWCASE & EMBED BLOCK SYSTEM (Signature Feature)
   ========================================================================== */

.kit-embed-card-container {
  margin: 32px 0;
}

.kit-embed-center {
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.kit-embed-wide {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.kit-embed-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.kit-heading-icon {
  color: var(--accent-primary);
  display: flex;
  align-items: center;
}

.kit-embed-badge {
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-primary);
  border: 1px solid var(--border-glow);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-left: auto;
}

.kit-embed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-smooth);
}

.kit-embed-card:hover {
  border-color: var(--border-glow);
}

/* Checkered Canvas for Transparent Kits */
.kit-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kit-checkered-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%), 
    linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%), 
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  opacity: 0.6;
}

[data-theme="light"] .kit-checkered-bg {
  background-image: 
    linear-gradient(45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%), 
    linear-gradient(-45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.05) 75%), 
    linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.05) 75%);
}

.kit-preview-img {
  position: relative;
  z-index: 2;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
  transition: transform var(--transition-smooth);
}

.kit-canvas-wrap:hover .kit-preview-img {
  transform: scale(1.04);
}

.kit-floating-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  z-index: 3;
}

.kit-embed-caption {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 18px;
}

/* URL Action Bar with One-Click Copy */
.kit-action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kit-url-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.kit-url-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.kit-url-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 14px 12px 40px;
  outline: none;
  transition: all var(--transition-fast);
  text-overflow: ellipsis;
}

.kit-url-input:focus {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: var(--bg-main);
}

.btn-copy-kit {
  background: var(--accent-gradient);
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-copy-kit:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.btn-copy-kit.copied {
  background: var(--accent-neon-green);
  color: #ffffff;
}

/* ==========================================================================
   TEAM DETAIL PAGE ("Money Page")
   ========================================================================== */

.breadcrumbs-bar {
  padding: 20px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.breadcrumbs-bar a {
  color: var(--text-secondary);
}

.breadcrumbs-bar a:hover {
  color: var(--accent-primary);
}

.breadcrumbs-bar .sep {
  margin: 0 8px;
  color: var(--text-muted);
}

.team-hero-header {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 36px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 32px;
  box-shadow: var(--shadow-card);
}

.team-hero-logo {
  width: 140px;
  height: 140px;
  min-width: 140px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.team-hero-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.team-hero-info {
  flex: 1;
  min-width: 0;
}

.team-hero-header {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.team-hero-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin-bottom: 8px;
  white-space: normal;
  line-height: 1.2;
}

.team-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 8px;
  flex-wrap: wrap;
}

.team-meta-updated {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 18px;
}

.team-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.team-meta-badge--green {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--accent-neon-green);
  color: var(--accent-neon-green);
}

.team-meta-badge--accent {
  color: var(--accent-primary);
}

.team-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: nowrap;
}

.share-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 4px;
  white-space: nowrap;
}

.btn-share {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn-share--whatsapp:hover {
  border-color: #25D366;
  color: #25D366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.btn-share--x:hover {
  border-color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.12);
}

.btn-share--facebook:hover {
  border-color: #1877F2;
  color: #1877F2;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.25);
}

.btn-share--telegram:hover {
  border-color: #229ED9;
  color: #229ED9;
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.25);
}

/* Jersey Kit Cards Grid */
.kits-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

/* Step-by-Step DLS Import Guide Box */
.import-guide-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-2xl);
  padding: 36px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-glow);
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.guide-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   BLOG & ARTICLES
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.blog-card-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-surface);
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 13px;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.blog-card-footer {
  margin-top: auto;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Single Article Layout */
.article-container {
  max-width: 840px;
  margin: 40px auto 60px;
}

.article-header {
  margin-bottom: 32px;
}

.article-title {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 900;
  margin-bottom: 18px;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.article-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 28px 0;
}

.article-toc-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-toc ul {
  list-style: none;
  padding-left: 8px;
}

.article-toc li {
  margin-bottom: 8px;
}

.article-toc a {
  color: var(--text-secondary);
  font-size: 14px;
}

.article-toc a:hover {
  color: var(--accent-primary);
}

.article-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-content p {
  margin-bottom: 22px;
}

.article-content h2 {
  font-size: 26px;
  margin: 36px 0 16px;
}

.article-content h3 {
  font-size: 22px;
  margin: 28px 0 14px;
}

.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
}

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

/* ==========================================================================
   GOOGLE ADSENSE PLACEMENTS (CLS Safe)
   ========================================================================== */

.ad-placement-wrapper {
  margin: 28px auto;
  text-align: center;
  position: relative;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ad-inner-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Reserved Min-Heights for Core Web Vitals (Prevent CLS) */
.ad-slot-leaderboard { min-height: 110px; max-width: 970px; }
.ad-slot-hero { min-height: 270px; max-width: 970px; }
.ad-slot-native-card { min-height: 150px; width: 100%; }
.ad-slot-article { min-height: 270px; max-width: 750px; }
.ad-slot-sidebar { min-height: 270px; width: 100%; }
.ad-slot-footer { min-height: 110px; max-width: 970px; }

.adsense-demo-banner {
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-mono);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   SEARCH MODAL & AJAX DROPDOWN
   ========================================================================== */

.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  justify-content: center;
  padding: 80px 20px 20px;
}

.search-modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 640px;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  animation: modal-enter 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modal-enter {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}

.search-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 17px;
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-display);
}

.close-search-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.search-results-container {
  overflow-y: auto;
  padding: 12px;
  flex: 1;
}

.search-hint {
  padding: 30px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--bg-card);
}

.search-result-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.search-result-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.search-result-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.search-result-info span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==========================================================================
   FOOTER & TOAST
   ========================================================================== */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  margin-top: auto;
}

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

.footer-logo {
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trust-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
}

.footer-heading {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-links a {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social-links a:hover {
  color: var(--accent-primary);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.citation-text {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.disclaimer-text {
  margin-bottom: 12px;
}

/* Copy Toast */
.copy-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-check {
  font-size: 16px;
}

/* Cookie Notice */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 16px;
  z-index: 900;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.btn-cookie-accept {
  background: var(--accent-gradient);
  color: var(--text-inverse);
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 992px) {
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .team-hero-header { flex-direction: column; text-align: center; }
  .team-meta-row, .team-meta-updated { justify-content: center; }
  .team-share-bar { justify-content: center; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 18px; }
  .stat-number { font-size: 26px; }
  .stat-label { font-size: 11px; }
  .stat-item::after { display: none; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-cta, .btn-secondary { width: 100%; justify-content: center; }
  .kit-action-bar { flex-direction: column; }
  .btn-copy-kit { width: 100%; justify-content: center; }
}

/* ==========================================================================
   EXTRA MOBILE-FRIENDLINESS POLISH
   ========================================================================== */
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

@media (max-width: 640px) {
  .site-container { padding-left: 16px !important; padding-right: 16px !important; }
  .hero-section { padding-top: 56px; padding-bottom: 44px; }
  .hero-title { font-size: 32px !important; line-height: 1.15 !important; }
  .hero-subtitle { font-size: 15px !important; }
  .btn-cta, .btn-secondary { min-height: 46px; }
  .section-title { font-size: 22px !important; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .team-hero-title { font-size: clamp(19px, 5.4vw, 26px) !important; white-space: normal; }
  .team-meta-row { gap: 6px; }
  .team-meta-badge { font-size: 11px; padding: 5px 10px; gap: 4px; }
  .team-share-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; gap: 8px; }
  .team-share-bar::-webkit-scrollbar { display: none; }
  .btn-share { width: 44px; height: 44px; min-width: 44px; font-size: 18px; white-space: nowrap; }
  .guide-steps-grid { grid-template-columns: 1fr !important; }
  .search-modal-box { width: 94vw; margin: 12px auto; }
  .mobile-drawer { width: 84vw; max-width: 340px; }
  .faq-question { font-size: 15px !important; padding: 16px 18px !important; }
  .import-guide-box, .team-hero-header { padding: 22px 16px !important; }
}

/* ==========================================================================
   TEAM HERO META BADGES — GUARANTEED SINGLE-LINE SCROLLABLE PILL STRIP
   The league / views / 512×512 HD badges NEVER wrap to a second line.
   On narrow screens they stay on one line as an edge-faded, swipeable strip.
   ========================================================================== */
.team-meta-row {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
  mask-image: linear-gradient(to right, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%);
}
.team-meta-row::-webkit-scrollbar { display: none; }
.team-meta-row .team-meta-badge { flex: 0 0 auto; }

@media (min-width: 768px) {
  .team-meta-row {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

@media (max-width: 640px) {
  .team-meta-row {
    gap: 6px;
    margin: 12px 0 6px;
    justify-content: center;
    justify-content: safe center;
  }
  .team-meta-badge {
    font-size: 11.5px;
    padding: 5px 11px;
    gap: 4px;
    letter-spacing: -0.1px;
  }
}

/* Ultra-narrow phones: shorten "views" label so all 3 badges still fit inline */
@media (max-width: 380px) {
  .badge-optional-text { display: none; }
  .team-meta-badge { font-size: 11px; padding: 5px 10px; gap: 3px; }
}
