/* =========================================================
   FREEKICK-TH EXACT WIX STYLE SHEETS & LAYOUT RECREATION
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&family=Oswald:wght@400;500;700&display=swap');

:root {
  /* Design Tokens */
  --bg-primary: #050814;
  --bg-secondary: #0b0f1e;
  
  --accent-primary: #00f0ff;      /* Electric Cyan */
  --accent-secondary: #ff66cc;    /* Wix Style Pink */
  --accent-success: #10b981;      /* Emerald Green */
  
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --font-main: 'Outfit', sans-serif;
  --font-display: 'Oswald', sans-serif;
  
  --transition-smooth: all 0.3s ease;
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   WIX NAVIGATION BAR (TOP)
   ========================================== */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  position: fixed;
  background: rgba(5, 8, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.navbar .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff; /* White readable logo */
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.logo:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

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

.nav-links a {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7); /* Readable light text on dark backgrounds */
  padding: 8px 0;
  transition: var(--transition-smooth);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary); /* Cyan sliding underline indicator */
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent-primary);
}

.admin-portal-btn {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.2));
  border: 1px solid #2563eb;
  color: #2563eb !important;
  padding: 6px 18px !important;
  border-radius: 20px;
  font-weight: 700 !important;
}

.admin-portal-btn:hover {
  background: #2563eb !important;
  color: white !important;
}

.menu-btn {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001; /* Ensure hamburger stays above navigation overlays */
  padding: 5px;
}

.menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #ffffff; /* White readable color */
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* Transform hamburger menu to X icon when active */
.menu-btn.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ==========================================
   WIX HERO SECTION (WELCOME STRIP)
   ========================================== */
.hero {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center top;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

/* Floating Crystal Logo Star animation */
.logo-star-container {
  position: relative;
  animation: floatStar 6s ease-in-out infinite;
  perspective: 1000px;
  margin-bottom: 10px;
}

@keyframes floatStar {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.25));
  }
  50% {
    transform: translateY(-10px) rotate(0.3deg) scale(1.015);
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.45));
  }
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.25));
  }
}

.floating-star-logo {
  transition: opacity 0.6s ease-in-out;
  max-width: 320px;
  height: auto;
  display: block;
}

/* ==========================================
   TWO COLUMN GRID STRUCTURE
   ========================================== */
.main-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}

/* Glassmorphism Panel base */
.glass-panel {
  background: rgba(11, 15, 30, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* ==========================================
   LEFT COLUMN: PAU CUBARSI SPOTLIGHT
   ========================================== */
.pau-card {
  padding: 24px;
}

.pau-badge-pill {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: white;
  display: inline-block;
  margin-bottom: 12px;
}

.pau-main-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: white;
  text-transform: uppercase;
}

.pau-main-title span {
  color: #facc15; /* Orange-Yellow */
}

.pau-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
  margin-bottom: 20px;
}

.pau-details-text {
  font-size: 0.85rem;
  color: #d1d5db;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Timeline */
.pau-timeline {
  list-style: none;
  padding-left: 15px;
  margin-bottom: 24px;
  border-left: 2px solid rgba(255, 255, 255, 0.05);
}

.pau-timeline li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.timeline-dot {
  position: absolute;
  left: -21px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #facc15;
  box-shadow: 0 0 6px #facc15;
}

.pau-portrait-container {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pau-portrait-container img {
  width: 100%;
  display: block;
}

/* 4 Image Gallery */
.pau-gallery {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.gallery-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery-item img {
  border-radius: 6px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item span {
  font-size: 0.65rem;
  color: #94a3b8;
  line-height: 1.2;
}

/* ==========================================
   RIGHT COLUMN: PL DASHBOARD CARD
   ========================================== */
.pl-summary-card {
  padding: 24px;
  margin-bottom: 30px;
}

.pl-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.pl-trophy {
  color: #facc15;
  margin-right: 6px;
}

/* Big Six Strip */
.big-six-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 24px;
  font-size: 0.7rem;
  flex-wrap: wrap;
  gap: 10px;
}

.strip-lbl, .strip-right-lbl {
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.logos-container {
  display: flex;
  gap: 8px;
}

.logo-badge {
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.logo-badge.ars { background: #e11d48; color: white; }
.logo-badge.mci { background: #0ea5e9; color: white; }
.logo-badge.liv { background: #b91c1c; color: white; }
.logo-badge.mun { background: #dc2626; color: white; }
.logo-badge.che { background: #1d4ed8; color: white; }
.logo-badge.tot { background: #1e1b4b; color: white; }

/* Grid Body */
.pl-card-body-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.live-pill {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 12px;
}

.pl-body-left h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 12px;
  color: white;
}

.pl-body-left p {
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.pl-info-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  color: #94a3b8;
  display: inline-block;
}

/* Signal / Sources Box */
.signal-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 10px;
}

.signal-title {
  font-size: 0.65rem;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.signal-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: 3px 0;
}

.signal-box p {
  font-size: 0.75rem;
  color: #cbd5e1;
}

.progress-bar-container {
  background: rgba(255, 255, 255, 0.08);
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar-fill {
  background: var(--accent-primary);
  height: 100%;
  border-radius: 3px;
  box-shadow: 0 0 6px var(--accent-primary);
}

.sources-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 12px;
}

.sources-title {
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.badge-verified {
  background: var(--accent-success);
  color: var(--bg-primary);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  margin-left: 4px;
}

.sources-box ul {
  list-style: none;
  margin-top: 8px;
}

.sources-box li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.75rem;
  color: #e2e8f0;
}

.sources-box i {
  color: var(--accent-success);
  margin-right: 6px;
}

.src-date {
  color: #64748b;
  font-size: 0.65rem;
}

/* Inner Feed Filters & Grid */
.pl-inner-feed-wrapper {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.pl-filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.filter-lbl {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.pl-filter-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.pl-filter-btn:hover,
.pl-filter-btn.active {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.pl-subcards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.pl-subcard {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pl-subcard-img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pl-subcard-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pl-subcard-badge-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.pl-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  text-transform: uppercase;
}

.pl-badge.text-ars { background: rgba(239, 68, 68, 0.1); color: #f87171; }
.pl-badge.text-match { background: rgba(59, 130, 246, 0.1); color: #60a5fa; }
.pl-badge.text-relegation { background: rgba(234, 179, 8, 0.1); color: #facc15; }
.pl-badge.type-analysis { background: rgba(255, 255, 255, 0.06); color: #cbd5e1; }

.pl-subcard-content h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: white;
}

.pl-subcard-content p {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.3;
  margin-bottom: 12px;
  flex-grow: 1;
}

.pl-read-btn {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pl-feed-footer-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

/* Video Players Row */
.main-video-players-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.video-player-box {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stadium-video {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================
   WIX BLOG FEED RECREATION
   ========================================== */
.blog-feed-title-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  margin-bottom: 20px;
}

.blog-feed-title-row h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  color: white;
}

.wix-blog-feed-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Main Wix Card style */
.wix-blog-card {
  background: #ffffff;
  color: #1f2937;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: var(--transition-smooth);
}

.wix-blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.wix-blog-card-media {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 10px;
}

.wix-blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wix-blog-card-content {
  display: flex;
  flex-direction: column;
}

.wix-blog-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 6px;
}

.wix-blog-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent-secondary); /* Glowing pink */
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.3;
}

.wix-blog-card-excerpt {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 12px;
}

.wix-blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 8px;
  font-size: 0.72rem;
  color: #9ca3af;
}

.wix-blog-card-likes {
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================
   FOOTER (Wix matching)
   ========================================== */
.footer {
  background-color: #03050a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 40px;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Left side */
.footer-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 700;
  color: var(--accent-secondary); /* Pink footer logo */
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-links-row {
  display: flex;
  gap: 20px;
  list-style: none;
  margin-bottom: 24px;
}

.footer-links-row a {
  font-size: 0.85rem;
  font-style: italic;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-links-row a:hover {
  color: #f59e0b; /* Orange hover as in screenshot */
}

.footer-social-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.social-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  color: black;
  font-size: 0.9rem;
}

.social-icon-circle:hover {
  background: var(--accent-secondary);
  color: white;
}

.footer-copy-wix {
  font-size: 0.72rem;
  color: #64748b;
  letter-spacing: 0.5px;
}

/* Right side */
.newsletter-headline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.short-line {
  width: 40px;
  height: 1px;
  background: white;
}

.newsletter-headline span {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}

.wix-newsletter-form {
  display: flex;
  flex-direction: column;
}

.form-group-wix {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group-wix label {
  font-size: 0.8rem;
  color: white;
}

.form-group-wix input {
  background: transparent;
  border: 1px solid white;
  padding: 8px 12px;
  color: white;
  font-family: var(--font-main);
}

.wix-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wix-checkbox-row label {
  font-size: 0.75rem;
  color: white;
}

.wix-submit-btn {
  background-color: var(--accent-secondary);
  color: white;
  border: none;
  font-weight: 700;
  padding: 8px 24px;
  cursor: pointer;
  font-size: 0.85rem;
}

.wix-submit-btn:hover {
  opacity: 0.9;
}

.wix-donate-btn {
  background-color: #f59e0b; /* Yellow-Orange */
  color: black;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.wix-donate-btn:hover {
  opacity: 0.9;
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 992px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  
  .pl-card-body-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    padding: 40px 0;
    transition: var(--transition-smooth);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  body.is-admin .nav-links {
    top: 110px; /* Offset mobile menu top under admin bar */
    height: calc(100vh - 110px);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .menu-btn {
    display: block;
  }
  
  .footer-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .main-video-players-row {
    grid-template-columns: 1fr;
  }
  
  .wix-blog-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  /* Dynamic admin top bar wrapping for narrow phone screens */
  .admin-top-bar {
    font-size: 0.75rem;
    height: auto;
    padding: 8px 0;
  }
  
  body.is-admin .navbar {
    top: 70px; /* Shift main nav down when admin bar wraps */
  }
  
  body.is-admin .nav-links {
    top: 130px;
    height: calc(100vh - 130px);
  }
  
  .admin-bar-content {
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }

  /* Make mobile modal paddings smaller to fit screen bounds */
  .modal-content {
    padding: 24px 16px;
    width: 95%;
  }

  /* Scale down header logo */
  .logo {
    font-size: 1.4rem;
  }
}

/* ==========================================
   MODAL DIALOG STYLING
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 20, 0.9);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transform: scale(0.9);
  transition: var(--transition-bounce);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.close-modal-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.2rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.close-modal-btn:hover {
  color: var(--accent-secondary);
}

.article-view-badge {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--bg-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.article-view-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 15px;
}

.article-view-meta {
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 15px;
}

.article-view-media {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
}

.article-view-content {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  white-space: pre-line;
}

/* ==========================================
   ADMIN LOGIN & PANEL DESIGN
   ========================================== */
.admin-body {
  background-color: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding: 40px 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
}

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

.login-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-header p {
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-main);
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.login-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
}

.login-error {
  background: rgba(255, 0, 127, 0.1);
  border: 1px solid var(--accent-secondary);
  color: var(--text-primary);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: none;
}

/* Dashboard Panel Layout */
.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--glass-border);
  padding: 30px 0;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 0 30px;
  margin-bottom: 40px;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 30px;
  font-weight: 500;
  color: var(--text-secondary);
  border-left: 4px solid transparent;
}

.sidebar-menu li.active a,
.sidebar-menu a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
  border-left-color: var(--accent-primary);
}

.sidebar-footer {
  padding: 0 30px;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.logout-btn:hover {
  color: var(--accent-secondary);
}

/* Dashboard Main Content Area */
.dash-content {
  padding: 40px;
  overflow-y: auto;
  height: 100vh;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.dash-title h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  text-transform: uppercase;
}

.dash-title p {
  color: var(--text-secondary);
}

.dash-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.dash-card {
  padding: 24px;
}

.dash-card h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.dash-card .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* Tabs Panel styling */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Custom code manager & Editor inputs */
.embed-code-textarea {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  background: #02040a !important;
  color: #a9ffaf !important;
  line-height: 1.5;
}

/* File Upload drag area style */
.file-upload-drag {
  border: 2px dashed var(--glass-border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  transition: var(--transition-smooth);
}

.file-upload-drag:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 240, 255, 0.02);
}

.file-upload-drag i {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.file-upload-drag p {
  color: var(--text-secondary);
}

.file-upload-drag span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.file-upload-preview {
  margin-top: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.file-upload-preview-active {
  color: var(--accent-success);
  font-weight: 600;
}

/* Articles list styling */
.articles-table-wrapper {
  overflow-x: auto;
}

.articles-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.articles-table th, 
.articles-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.articles-table th {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
}

.articles-table tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.badge {
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-news { background: var(--accent-primary); color: var(--bg-primary); }
.badge-blog { background: #4f46e5; color: var(--text-primary); }
.badge-podcast { background: var(--accent-secondary); color: var(--text-primary); }

.action-btns {
  display: flex;
  gap: 12px;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.edit-action-btn {
  color: var(--accent-primary);
}

.delete-action-btn {
  color: var(--accent-secondary);
}

.edit-action-btn:hover {
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.delete-action-btn:hover {
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.5);
}

/* ==========================================
   IN-CONTEXT INLINE ADMIN EDITOR STYLES
   ========================================== */
body.is-admin {
  padding-top: 45px;
}

body.is-admin .navbar {
  top: 45px;
}

.admin-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 45px;
  background: #090e18;
  border-bottom: 1px solid var(--accent-primary);
  color: #fff;
  z-index: 1000;
  display: none;
  align-items: center;
  font-family: var(--font-main);
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15);
}

body.is-admin .admin-top-bar {
  display: flex;
}

.admin-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.admin-logout-btn {
  background: rgba(255, 0, 127, 0.2);
  border: 1px solid var(--accent-secondary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.admin-logout-btn:hover {
  background: var(--accent-secondary);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.5);
}

.admin-edit-btn {
  display: none; /* Hidden by default */
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 240, 255, 0.95);
  color: #020617;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 99;
  transition: var(--transition-smooth);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
  text-transform: uppercase;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

.admin-edit-btn:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

body.is-admin .admin-edit-btn {
  display: inline-flex;
}

/* Fix relative position wrappers for absolute elements */
.left-column,
.right-column,
.pl-summary-card,
.main-video-players-row {
  position: relative;
}

/* ==========================================
   SOCIAL LOGIN MODAL
   ========================================== */
.social-login-modal {
  max-width: 440px;
  text-align: center;
  padding: 48px 40px;
}

.social-login-header {
  margin-bottom: 32px;
}

.social-login-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: pulse 2s infinite;
}

.social-login-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.social-login-header p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.social-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-main);
}

.google-btn {
  background: #ffffff;
  color: #1f2937;
}

.google-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.2);
}

.facebook-btn {
  background: #1877F2;
  color: #fff;
}

.facebook-btn:hover {
  background: #0e5fd8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(24,119,242,0.4);
}

.admin-cta-btn {
  background: rgba(0,240,255,0.1);
  border: 1px solid rgba(0,240,255,0.3) !important;
  color: var(--accent-primary);
  font-size: 0.85rem;
  padding: 10px 20px;
}

.admin-cta-btn:hover {
  background: rgba(0,240,255,0.2);
}

.social-login-divider {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  margin: 16px 0;
  position: relative;
}

.social-login-divider::before,
.social-login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.social-login-divider::before { left: 0; }
.social-login-divider::after { right: 0; }

.social-login-note {
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  margin-bottom: 4px;
}

/* ==========================================
   MEMBER AVATAR IN NAVBAR
   ========================================== */
.nav-member-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 12px 4px 4px;
  border-radius: 50px;
  border: 1px solid rgba(0,240,255,0.3);
  transition: var(--transition-smooth);
}

.nav-member-avatar:hover {
  background: rgba(0,240,255,0.1);
  border-color: var(--accent-primary);
}

.nav-member-avatar img {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
}

#nav-member-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================
   GAME SECTION
   ========================================== */
.game-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(5,8,20,0.95) 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.game-section-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}

.game-section-header h2 {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #00f0ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.game-section-header p {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
}

.game-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.matches-column h3,
.leaderboard-column h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Match Card */
.match-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}

.match-card:hover {
  border-color: rgba(0,240,255,0.2);
  box-shadow: 0 4px 20px rgba(0,240,255,0.06);
}

.match-card-league {
  font-size: 0.72rem;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.match-card-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.match-team {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  flex: 1;
}

.match-vs {
  font-size: 0.9rem;
  font-weight: 900;
  color: rgba(255,255,255,0.3);
  padding: 0 8px;
}

.match-time {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.match-predict-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.predict-input {
  width: 56px;
  padding: 8px;
  text-align: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-main);
}

.predict-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.predict-dash {
  color: rgba(255,255,255,0.3);
  font-weight: 700;
}

.predict-submit-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #00f0ff, #0080ff);
  border: none;
  border-radius: 10px;
  color: #000;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-main);
}

.predict-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,240,255,0.3);
}

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

.match-result-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 50px;
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 700;
}

.user-prediction-badge {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

.match-login-prompt {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 8px;
}

.match-login-prompt a {
  color: var(--accent-primary);
  cursor: pointer;
  text-decoration: underline;
}

/* Admin Close Match Button */
.close-match-btn {
  width: 100%;
  padding: 8px;
  margin-top: 8px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  color: #f87171;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-main);
  display: none;
}

body.is-admin .close-match-btn { display: block; }

.close-match-btn:hover {
  background: rgba(239,68,68,0.2);
}

/* Leaderboard */
.leaderboard-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition-smooth);
}

.leaderboard-row:last-child { border-bottom: none; }

.leaderboard-row:hover {
  background: rgba(255,255,255,0.03);
}

.leaderboard-row.top-1 {
  background: linear-gradient(135deg, rgba(255,215,0,0.08), transparent);
  border-left: 3px solid gold;
}

.leaderboard-row.top-2 {
  border-left: 3px solid silver;
}

.leaderboard-row.top-3 {
  border-left: 3px solid #cd7f32;
}

.lb-rank {
  font-size: 0.85rem;
  font-weight: 900;
  color: rgba(255,255,255,0.4);
  min-width: 24px;
  text-align: center;
}

.lb-rank.gold { color: gold; }
.lb-rank.silver { color: silver; }
.lb-rank.bronze { color: #cd7f32; }

.lb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
}

.lb-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-points {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.lb-points-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  margin-left: 2px;
}

/* Empty state */
.game-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: rgba(255,255,255,0.3);
}

.game-empty-state i {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
  opacity: 0.4;
}

.game-empty-state p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.game-empty-state span {
  font-size: 0.8rem;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .game-layout {
    grid-template-columns: 1fr;
  }

  .social-login-modal {
    padding: 36px 24px;
  }
}
