/*
Theme Name: Opaleak Theme
Theme URI: https://opaleak.com/
Author: Phantom XTG
Author URI: https://opaleak.com/
Description: The real Opaleak website converted into WordPress.
Version: 1.0
*/
/* ===== Modern Variables ===== */
:root {
  --primary: #2563eb; /* Vibrant blue */
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #ec4899; /* Pink for accents */
  --accent-light: #fce7f3;
  --twitter-blue: #1da1f2;
  --twitter-pink: #e0245e;
  --twitter-green: #17bf63;
  --twitter-purple: #794bc4;
  
  /* Bright mode colors */
  --bg-light: #ffffff;
  --bg-lighter: #f9fafb;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --card-hover: #f3f4f6;
  --text-dark: #111827;
  --text-gray: #6b7280;
  --text-light: #ffffff;
  
  /* Status colors */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  
  /* Modern shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* ===== Modern Global Styles ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-lighter);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Modern Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== Modern Buttons & Forms ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: var(--transition-slow);
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.btn:hover::after {
  left: 100%;
}

.btn i {
  font-size: 1rem;
}

.btn-secondary {
  background-color: white;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
}

.btn-accent:hover {
  background-color: var(--twitter-pink);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-group {
  display: flex;
  gap: 0.5rem;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.btn-group .btn:last-child {
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background-color: white;
  color: var(--text-dark);
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Floating labels */
.floating-label-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.floating-label {
  position: absolute;
  top: 0.8rem;
  left: 1rem;
  color: var(--text-gray);
  transition: var(--transition);
  pointer-events: none;
  background: white;
  padding: 0 0.25rem;
}

.form-control:focus + .floating-label,
.form-control:not(:placeholder-shown) + .floating-label {
  top: -0.5rem;
  left: 0.8rem;
  font-size: 0.75rem;
  color: var(--primary);
}

/* ===== Modern Layout ===== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.layout {
  display: flex;
  min-height: calc(100vh - 80px);
}

/* ===== Modern Navbar ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.nav-logo:hover {
  transform: scale(1.05);
  animation: pulse 2s infinite;
}

.brand-name {
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.nav-center {
  flex: 1;
  max-width: 600px;
  margin: 0 2rem;
}

.search-container {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
}

.search-container input {
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background-color: white;
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-container input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-right a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.nav-right a:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

.nav-right .btn {
  padding: 0.5rem 1rem;
}

/* User avatar in nav */
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  transition: var(--transition);
  cursor: pointer;
}

.user-avatar:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow);
}

/* ===== Modern Sidebar ===== */
.sidebar {
  width: 280px;
  background: white;
  padding: 1.5rem;
  border-right: 1px solid var(--card-border);
  overflow-y: auto;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  box-shadow: var(--shadow-sm);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--card-border);
}

.sidebar h3 {
  font-size: 1rem;
  color: var(--primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.clear-btn {
  background: none;
  border: none;
  color: var(--text-gray);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.clear-btn:hover {
  color: var(--primary);
}

.filter-group {
  margin-bottom: 2rem;
}

.filter-group h4 {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: white;
  color: var(--text-dark);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  transform: translateX(4px);
}

.filter-btn.active {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  border-color: var(--primary);
}

.filter-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ===== Modern Main Content ===== */
main {
  flex: 1;
  padding: 2rem;
  background-color: var(--bg-lighter);
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 3px;
}

.section-title i {
  color: var(--primary);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.filter-chip button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

/* ===== Modern Posts ===== */
.posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.post {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
  box-shadow: var(--shadow-sm);
}

.post:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  gap: 0.5rem;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-gray);
  background-color: var(--bg-lighter);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
}

/* ===== Modern Tweet Cards ===== */
.tweet-card {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.tweet-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.tweet-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.tweet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  border: 2px solid var(--primary);
  transition: var(--transition);
}

.tweet-avatar:hover {
  transform: scale(1.1);
}

.tweet-user {
  flex: 1;
}

.tweet-name {
  font-weight: 700;
  display: block;
  color: var(--text-dark);
}

.tweet-username {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.tweet-brand {
  color: var(--twitter-blue);
  font-size: 1.5rem;
}

.tweet-content p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.tweet-image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
}

.tweet-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.tweet-image:hover {
  transform: scale(1.02);
}

.tweet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-gray);
  font-size: 0.9rem;
  border-top: 1px solid var(--card-border);
  padding-top: 0.8rem;
  margin-top: 1rem;
}

.tweet-stats {
  display: flex;
  gap: 1.5rem;
}

.tweet-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.reaction-bar {
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
}

.reaction-btn {
  background: none;
  border: none;
  color: var(--text-gray);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.reaction-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.like-btn:hover, .like-btn.active {
  color: var(--twitter-pink);
  background: var(--accent-light);
}

.comment-btn:hover {
  color: var(--twitter-green);
  background: rgba(23, 191, 99, 0.1);
}

.share-btn:hover {
  color: var(--twitter-blue);
}

.bookmark-btn:hover {
  color: var(--twitter-purple);
  background: rgba(121, 75, 196, 0.1);
}

.count {
  font-size: 0.8rem;
}

/* ===== Modern File Upload ===== */
.file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  border: 2px dashed var(--card-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1rem;
  background: white;
}

.file-upload:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.file-upload i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.file-upload p {
  color: var(--text-gray);
  text-align: center;
}

.preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.preview-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.preview-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.remove-btn:hover {
  background: var(--error);
  transform: scale(1.1);
}

/* ===== Modern Admin Layout ===== */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 80px);
}

.admin-sidebar {
  width: 250px;
  background: white;
  border-right: 1px solid var(--card-border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.admin-main {
  flex: 1;
  padding: 2rem;
  background: var(--bg-lighter);
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.admin-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  border-radius: var(--radius-md);
  text-align: left;
  transition: var(--transition);
  font-weight: 500;
}

.admin-menu-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.admin-menu-btn.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.admin-menu-btn i {
  font-size: 1rem;
  width: 20px;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

/* Admin Posts List */
.admin-posts-list {
  margin-top: 3rem;
  border-top: 1px solid var(--card-border);
  padding-top: 2rem;
}

.admin-posts-list h3 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.posts-list {
  display: grid;
  gap: 1.5rem;
}

.admin-post-item {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.admin-post-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.post-actions {
  display: flex;
  gap: 0.5rem;
}

.edit-btn, .delete-btn {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.edit-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.delete-btn:hover {
  background: rgba(255, 61, 0, 0.1);
  color: var(--error);
}

.post-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.post-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.post-images img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.post-footer {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-gray);
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
  margin-top: 1rem;
}

.post-footer span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Featured Grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.featured-item {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.featured-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.featured-image {
  height: 260px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.featured-item:hover .featured-image img {
  transform: scale(1.05);
}

.featured-info {
  padding: 1.2rem;
}

.featured-info h4 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.featured-info p {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

.featured-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0.8rem;
  border-top: 1px solid var(--card-border);
}

/* ===== Modern Messages & Notifications ===== */
.message {
  text-align: center;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: var(--radius-md);
}

.message.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-left: 4px solid var(--success);
}

.message.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border-left: 4px solid var(--error);
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  background-color: white;
  color: var(--text-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-left: 4px solid var(--primary);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast i {
  font-size: 1.2rem;
}

/* ===== Modern Special Sections ===== */

/* Featured Carousel */
.featured-section {
  margin-bottom: 3rem;
}

.featured-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
  height: 400px;
}

.carousel-item {
  min-width: 100%;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1.5rem;
  color: white;
}

.carousel-caption h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-dark);
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

.carousel-control:hover {
  background: var(--primary);
  color: white;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-indicator.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* Upcoming Releases Timeline */
.timeline-section {
  margin-bottom: 3rem;
}

.timeline {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 50%;
  top: 15px;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-lighter);
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item.left::after {
  right: -10px;
}

.timeline-item.right::after {
  left: -10px;
}

.timeline-content {
  padding: 20px;
  background-color: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.timeline-date {
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.timeline-club {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.timeline-club img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.countdown {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-top: 0.5rem;
}

/* Designer's Corner */
.designers-section {
  margin: 3rem 0;
}

.designer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.designer-card {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.designer-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.designer-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.designer-card:hover .designer-image {
  transform: scale(1.05);
}

.designer-content {
  padding: 1.5rem;
}

.designer-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.designer-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.designer-excerpt {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ===== Enhanced Rumor Accuracy Tracker ===== */
.rumor-tracker {
  margin: 3rem 0;
}

.tracker-container {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.tracker-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-box {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  background: white;
  transition: var(--transition);
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tracker-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.tracker-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.tracker-table th {
  position: relative;
  padding: 1rem 1.5rem;
  text-align: left;
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
  border-bottom: 2px solid var(--primary);
}

.tracker-table th::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.tracker-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
  transition: var(--transition);
  background: white;
}

.tracker-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--card-border);
}

.tracker-table tr:hover td {
  background: var(--primary-light);
}

.status-accurate {
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-inaccurate {
  color: var(--error);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-pending {
  color: var(--warning);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-accurate i {
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

.status-inaccurate i {
  font-size: 1.2rem;
}

.status-pending i {
  font-size: 1.2rem;
}

/* Article Styles */
.articles-section {
  margin: 3rem 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.article-card:hover .article-image {
  transform: scale(1.03);
}



.article-title {
  font-size: 1.3rem;
  margin: 0;
  color: var(--text-dark);
}

.article-meta {
  display: flex;
  gap: 0.3rem;
  margin: 0.2rem 0 0.8rem;
  color: var(--text-gray);
  font-size: 0.85rem;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.article-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.read-more-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

/* Editor Styles */
.editor-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.editor-toolbar button {
  background: white;
  border: 1px solid var(--card-border);
  color: var(--text-dark);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.editor-toolbar button:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.editor-content {
  min-height: 300px;
  background: white;
  border: 1px solid var(--card-border);
  color: var(--text-dark);
  padding: 1rem;
  font-family: inherit;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Twitter Cards */
.twitter-cards-section {
  margin: 3rem 0;
}

.twitter-card {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.twitter-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.twitter-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.twitter-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 12px;
  border: 2px solid var(--primary);
  transition: var(--transition);
}

.twitter-card-avatar:hover {
  transform: scale(1.1);
}

.twitter-card-user {
  flex: 1;
}

.twitter-card-name {
  font-weight: 700;
  display: block;
  color: var(--text-dark);
}

.twitter-card-username {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.twitter-card-content {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.twitter-card-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 1rem 0;
  transition: var(--transition);
}

.twitter-card:hover .twitter-card-image {
  transform: scale(1.02);
}

.twitter-card-footer {
  display: flex;
  justify-content: space-between;
  color: var(--text-gray);
  font-size: 0.9rem;
  border-top: 1px solid var(--card-border);
  padding-top: 1rem;
  margin-top: 1rem;
}

.twitter-card-stats {
  display: flex;
  gap: 1.5rem;
}

.twitter-card-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Comments Section */
.comments-section {
  margin-top: 3rem;
  border-top: 1px solid var(--card-border);
  padding-top: 2rem;
}

.comment-form {
  margin-bottom: 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.comment-form textarea {
  width: 100%;
  min-height: 100px;
  margin-bottom: 1rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.comment:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 1rem;
  border: 2px solid var(--primary);
}

.comment-user {
  flex: 1;
}

.comment-name {
  font-weight: 600;
  color: var(--text-dark);
}

.comment-date {
  color: var(--text-gray);
  font-size: 0.8rem;
}

.comment-content {
  line-height: 1.6;
}

/* ===== Modern Utility Classes ===== */
.no-results {
  text-align: center;
  padding: 3rem;
  grid-column: 1 / -1;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.no-results i {
  font-size: 3rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.no-results h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.no-results p {
  color: var(--text-gray);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-accent {
  background: var(--accent-light);
  color: var(--accent);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

/* ===== Modern Responsive Design ===== */
@media (max-width: 1024px) {
  .sidebar {
    width: 240px;
  }
  
  .admin-sidebar {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .layout, .admin-layout {
    flex-direction: column;
  }
  
  .sidebar, .admin-sidebar {
    width: 100%;
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--card-border);
  }
  
  .filter-options {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .nav-left, .nav-center, .nav-right {
    width: 100%;
  }
  
  .brand-name {
    display: none;
  }
  
  .admin-menu {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .admin-menu-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item.left::after, 
  .timeline-item.right::after {
    left: 21px;
  }
  
  .timeline-item.right {
    left: 0;
  }
  
  .carousel-caption h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .posts-container {
    grid-template-columns: 1fr;
  }
  
  .filter-options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .stat-value {
    font-size: 2rem;
  }
}
/* ===== Article Page Styles ===== */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-gray);
  flex-wrap: wrap;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 0.5rem;
  border: 2px solid var(--primary);
}

.article-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--text-dark);
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.article-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}

.article-share {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-lighter);
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.article-featured-image {
  position: relative;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-zoom-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.image-zoom-controls button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.image-zoom-controls button:hover {
  background: var(--primary);
  transform: scale(1.1);
}



.article-content h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: var(--primary);
  position: relative;
  padding-bottom: 0.5rem;
}

.article-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 3px;
}

.article-content h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.8rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-gray);
  font-style: italic;
}

.article-content pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-content code {
  font-family: 'Courier New', monospace;
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
}

.article-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--card-border);
  padding-top: 2rem;
}

.author-bio {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-lighter);
  border-radius: var(--radius-md);
}

.author-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--primary);
}

.author-bio h4 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.article-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.prev-article, .next-article {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-lighter);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-dark);
}

.prev-article:hover, .next-article:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.prev-article {
  align-items: flex-start;
  text-align: left;
}

.next-article {
  align-items: flex-end;
  text-align: right;
}

.prev-article h5, .next-article h5 {
  margin-top: 0.5rem;
  color: var(--primary);
}

.related-articles {
  margin: 3rem 0;
}

.related-articles h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.related-article {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.related-article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.related-article img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-content {
  padding: 1rem;
}

.related-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.related-content small {
  color: var(--text-gray);
  font-size: 0.8rem;
}

.related-content .btn {
  margin-top: 0.8rem;
  width: 100%;
}

.article-comments {
  margin-top: 3rem;
  border-top: 1px solid var(--card-border);
  padding-top: 2rem;
}

.article-comments h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.comment-form {
  margin-bottom: 2rem;
}

.comment-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  resize: vertical;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-weight: 600;
  color: var(--primary);
}

.comment-date {
  color: var(--text-gray);
  font-size: 0.8rem;
}

.comment-text {
  line-height: 1.6;
}

.comment-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
}

.comment-actions button {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.comment-actions button:hover {
  color: var(--primary);
}

/* Table of Contents */
.toc-sidebar {
  position: fixed;
  top: 100px;
  right: 20px;
  width: 250px;
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
}

.toc-header h4 {
  color: var(--primary);
  margin: 0;
}

#toc-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list a {
  display: block;
  padding: 0.5rem;
  color: var(--text-gray);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.toc-list a:hover, .toc-list a.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* Floating actions */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 100;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.floating-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Dark mode */
.dark-mode {
  --bg-light: #1a1a1a;
  --bg-lighter: #222;
  --card-bg: #2d2d2d;
  --card-border: #444;
  --card-hover: #333;
  --text-dark: #f0f0f0;
  --text-gray: #aaa;
  --text-light: #ffffff;
}

/* Responsive */
@media (max-width: 1024px) {
  .toc-sidebar {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .article-container {
    padding: 1.5rem;
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .article-navigation {
    grid-template-columns: 1fr;
  }
  
  .toc-sidebar {
    position: static;
    width: 100%;
    margin-bottom: 2rem;
    max-height: none;
  }
  
  #toc-toggle {
    display: block;
  }
  
  .toc-list {
    display: none;
  }
  
  .toc-list.visible {
    display: block;
  }
}

@media (max-width: 480px) {
  .article-container {
    padding: 1rem;
  }
  
  .article-title {
    font-size: 1.8rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .author-bio {
    flex-direction: column;
    text-align: center;
  }
  
  .floating-actions {
    bottom: 10px;
    right: 10px;
  }
  
  .floating-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}
/* ===== Article Page Structure ===== */
.article-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-header {
  margin: 40px 0;
  text-align: center;
}

.article-hero {
  width: 100%;
  margin: 30px 0 50px;
}



/* ===== Typography ===== */
.article-title {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111;
  text-align: left;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 30px;
  color: #666;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.8em;
  color: #333;
  font-family: 'Inter', sans-serif;
}

.article-content h2 {
  font-size: 2.2rem;
  margin: 2.5em 0 1em;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
  position: relative;
  padding-bottom: 10px;
}

.article-content h2:after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #ec4899);
}

.article-content h3 {
  font-size: 1.7rem;
  margin: 2em 0 1em;
  font-weight: 600;
  color: #111;
}

/* ===== Visual Elements ===== */
.article-hero-image {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
  margin-bottom: 15px;
}

.image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 10px;
  font-style: italic;
}

.article-content img {
  width: 100%;
  height: auto;
  margin: 2.5em auto;
  display: block;
}

.article-content figure {
  margin: 3em 0;
}

.article-content figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
}

/* ===== Interactive Elements ===== */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0;
  justify-content: center;
}

.article-tag {
  background: #f0f4ff;
  color: #2563eb;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.article-tag:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-2px);
}

.article-actions {
  display: flex;
  justify-content: space-between;
  margin: 60px 0;
}

.btn-article {
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: white;
  color: #2563eb;
  border: 1px solid #2563eb;
}

.btn-secondary:hover {
  background: #f0f4ff;
  transform: translateY(-2px);
}

/* ===== Social Sharing ===== */
.social-sharing {
  margin: 50px 0;
  padding: 30px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.social-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-button {
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  justify-content: center;
}

/* ===== Related Articles ===== */
.related-articles {
  margin: 80px 0 40px;
}

.related-header {
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 700;
  color: #111;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.related-card {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-image {
  height: 200px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-content {
  padding: 20px;
}

.related-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
}

.related-meta {
  display: flex;
  gap: 15px;
  color: #666;
  font-size: 0.85rem;
}

/* ===== Floating Elements ===== */
.floating-share {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.floating-share a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.floating-share a:hover {
  transform: translateY(-3px) scale(1.1);
}

.floating-share .twitter { color: #1DA1F2; }
.floating-share .facebook { color: #4267B2; }
.floating-share .linkedin { color: #0077B5; }

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .article-title {
    font-size: 2.8rem;
  }
  
  .floating-share {
    left: 15px;
  }
}

@media (max-width: 768px) {
  .article-title {
    font-size: 2.4rem;
  }
  
  
  
  .article-content h2 {
    font-size: 2rem;
  }
  
  .floating-share {
    display: none;
  }
  
  .article-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 2rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  
  .article-content p {
    font-size: 1.1rem;
  }
  
  .article-content h2 {
    font-size: 1.8rem;
  }
  
  .article-hero-image {
    max-height: 50vh;
  }
}
/* Image Centering and Layout */
.article-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

#article-image-container {
  max-width: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
}

.article-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.article-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article-image-wrapper {
    margin: 2rem 0;
    padding: 0 15px;
  }
  
  .article-content-wrapper {
    padding: 0 15px;
  }
}


.read-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.read-more-btn i {
  font-size: 0.85rem;
}

.read-more-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}





.read-more-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}





.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.article-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}



.article-image-container {
  margin-bottom: 0.75rem;
}



.article-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: white;
  transition: var(--transition);
}

.article-image-container {
  margin-bottom: 0;
}



.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #6b7280;
  align-items: center;
  font-weight: 500;
}

.article-meta i {
  margin-right: 0.3rem;
  color: #9ca3af;
}

.article-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}


.article-content {
  padding: 0.5rem 1.5rem 1.2rem 1.5rem;
}


.article-image-container {
  margin-bottom: 0;
  padding-bottom: 0;
  line-height: 0;
}

.article-image {
  display: block;
}


/* DEFINITIVE FIX: Remove gap between article image and title */
.article-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  padding: 0;
}

.article-image-container {
  flex-shrink: 0;
  display: block;
  line-height: 0; /* Prevent whitespace from image container */
}

.article-image {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--card-border);
  margin: 0;
}

.article-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.article-title {
  margin: 0;
  padding: 0;
  font-size: 1.3rem;
  line-height: 1.4;
}


/* --- Article Card Layout Fixes --- */

/* Redesigned Latest Articles Section */
.latest-articles {
  margin: 3rem 0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background-color: white;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.article-img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin: 0;
  line-height: 0;
  border-bottom: 1px solid var(--card-border);
}

.article-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.article-body h3 {
  margin: 0;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--primary);
}

.article-body p {
  margin: 0.5rem 0 1rem;
  color: var(--text-gray);
  font-size: 0.95rem;
}

.read-more-btn {
  align-self: start;
  margin-top: auto;
}
/* ===== Redesigned Articles Section ===== */
.modern-articles {
  margin: 4rem 0;
}

.modern-articles-header {
  text-align: center;
  margin-bottom: 3rem;
}

.modern-articles-header h2 {
  font-size: 2rem;
  color: var(--primary);
}

.modern-articles-header .subtitle {
  color: var(--text-gray);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.modern-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-card:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-lg);
}

.modern-image {
  width: 100%;
  height: 240px; /* increased height */
  object-fit: cover;
  display: block;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}


.modern-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.text-group {
  margin-bottom: 1rem;
}

.modern-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.modern-author {
  font-size: 0.9rem;
  color: #ddd;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


.modern-author {
  font-size: 0.9rem;
  color: #ddd;
}

.read-btn {
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  align-self: start;
}

.read-btn:hover {
  background: var(--accent);
}
.tag-container {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-tag {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 0.2rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
#pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.pagination-info {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-gray);
  margin-right: 1rem;
}

.pagination-btn {
  padding: 0.5rem 0.9rem;
  border: none;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  min-width: 2.5rem;
  text-align: center;
}

.pagination-btn.active {
  background-color: var(--primary);
  color: white;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.fade-in {
  animation: fadeIn 0.6s ease-in-out forwards;
}
/* === Minimalist Magazine Hero === */
.hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero .article-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
}

.hero .article-meta {
  justify-content: center;
  color: var(--text-gray);
  gap: 1rem;
  font-size: 0.95rem;
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 450px;
  background: var(--card-hover);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  object-fit: cover;
  height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease;
}

.hero-image img:hover {
  transform: scale(1.01);
}

/* === Refined Article Content === */
.article-content-wrapper {
  padding: 0 1rem;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.article-content p {
  margin-bottom: 1.8rem;
}

.article-content h2,
.article-content h3 {
  font-weight: 700;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content img {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* === Clean Tags and Sharing === */
.tags-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}

.tags-section h4 {
  font-size: 1rem;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.tags-container .article-tag {
  background: var(--bg-lighter);
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
}

.social-sharing {
  border-top: 1px solid var(--card-border);
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.social-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.social-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.social-button:hover {
  background: var(--primary);
  color: white;
}

/* === Related Articles Modern Layout === */
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.related-article-card {
  display: block;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  transition: var(--transition);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.related-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.related-article-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.related-article-content {
  padding: 1rem;
}

.related-article-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.related-article-meta {
  font-size: 0.85rem;
  color: var(--text-gray);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.comments-wrapper {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}


.comments-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* ===== Modern Variables ===== */
:root {
  --primary: #2563eb; /* Vibrant blue */
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #ec4899; /* Pink for accents */
  --accent-light: #fce7f3;
  --twitter-blue: #1da1f2;
  --twitter-pink: #e0245e;
  --twitter-green: #17bf63;
  --twitter-purple: #794bc4;
  
  /* Bright mode colors */
  --bg-light: #ffffff;
  --bg-lighter: #f9fafb;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --card-hover: #f3f4f6;
  --text-dark: #111827;
  --text-gray: #6b7280;
  --text-light: #ffffff;
  
  /* Status colors */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  
  /* Modern shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* ===== Layout Structure ===== */
.layout {
  display: flex;
  min-height: calc(100vh - 80px);
}

.sidebar {
  width: 280px;
  background: white;
  padding: 1.5rem;
  border-right: 1px solid var(--card-border);
  overflow-y: auto;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  box-shadow: var(--shadow-sm);
}

#content {
  flex: 1;
  padding: 2rem;
  background-color: var(--bg-lighter);
}

/* ===== Article Layout ===== */
.article-main-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.article-content-container {
  flex: 1;
  min-width: 0;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
}

.article-sidebar {
  width: 300px;
  position: sticky;
  top: 100px;
  flex-shrink: 0;
}

.sidebar-inner {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

/* ===== Article Content Styles ===== */
.hero {
  margin-bottom: 2rem;
}

.article-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 450px;
  background: var(--card-hover);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.article-content p {
  margin-bottom: 1.5rem;
}

/* ===== Sidebar Content Styles ===== */
.article-meta {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-gray);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tags-section {
  margin: 1.5rem 0;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tags-section .article-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
}

.social-sharing {
  margin-top: 2rem;
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-button {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  background: var(--bg-lighter);
  color: var(--text-dark);
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--card-border);
}

.social-button:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .article-main-container {
    flex-direction: column;
  }
  
  .article-sidebar {
    width: 100%;
    position: static;
    margin-top: 2rem;
  }
  
  .sidebar {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--card-border);
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .article-content-container {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 1.8rem;
  }
  
  .social-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
/* Related Articles Section */
.related-articles-section {
  margin: 4rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.related-article-card {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.related-article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.related-article-image {
  height: 180px;
  overflow: hidden;
}

.related-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-article-card:hover .related-article-image img {
  transform: scale(1.05);
}

.related-article-content {
  padding: 1.5rem;
}

.related-article-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.related-article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.related-article-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.view-all-container {
  text-align: center;
  margin-top: 2rem;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.view-all-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .related-articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .related-article-image {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header h3 {
    font-size: 1.3rem;
  }
}
.filter-btn.active {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--text-secondary);
}

.loading-spinner i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-state {
  text-align: center;
  color: var(--error);
}

.error-state i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--error);
}

.retry-btn {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--error-light);
  border: 1px solid var(--error);
  color: var(--error);
  border-radius: 4px;
  cursor: pointer;
}

.retry-btn:hover {
  background: var(--error);
  color: white;
}
.horizontal-timeline {
  display: flex;
  overflow-x: auto;
  padding: 2rem 1rem;
  gap: 2rem;
  scroll-snap-type: x mandatory;
}

.timeline-card {
  flex: 0 0 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 1.5rem 1rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.timeline-card-logo {
  width: 80px;
  height: 80px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
}

.timeline-card-logo img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.timeline-card-content {
  text-align: center;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.timeline-title span {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: #6b7280;
  margin-top: 4px;
}

.timeline-date {
  font-size: 0.9rem;
  color: #4338ca;
  background: #e0e7ff;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.timeline-description {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
}

.no-releases {
  text-align: center;
  font-size: 1.2rem;
  color: #777;
  margin-top: 2rem;
}
.horizontal-timeline::-webkit-scrollbar {
height: 8px;
}

.horizontal-timeline::-webkit-scrollbar-thumb {
background: #94a3b8; /* bluish grey */
border-radius: 10px;
}

.horizontal-timeline::-webkit-scrollbar-track {
background: transparent;
}
/* ===== Modern Articles Section ===== */
.modern-articles {
margin: 4rem 0;
}

.modern-articles-header {
text-align: center;
margin-bottom: 3rem;
}

.modern-articles-header h2 {
font-size: 2rem;
color: var(--primary);
}

.modern-articles-header .subtitle {
color: var(--text-gray);
font-size: 1rem;
margin-top: 0.5rem;
}

.modern-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}

.modern-card {
position: relative;
overflow: hidden;
border-radius: var(--radius-xl);
box-shadow: var(--shadow-md);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-card:hover {
transform: scale(1.015);
box-shadow: var(--shadow-lg);
}

.modern-image {
width: 100%;
height: 240px;
object-fit: cover;
display: block;
border-top-left-radius: var(--radius-xl);
border-top-right-radius: var(--radius-xl);
}

.modern-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 1.5rem;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
color: white;
display: flex;
flex-direction: column;
justify-content: flex-end;
height: 100%;
}

.text-group {
margin-bottom: 1rem;
}

.modern-title {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 0.25rem;
color: white;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.modern-author {
font-size: 0.9rem;
color: #ddd;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.read-btn {
background: var(--primary);
color: white;
padding: 0.6rem 1.2rem;
font-size: 0.9rem;
border-radius: var(--radius-full);
border: none;
cursor: pointer;
transition: var(--transition);
align-self: start;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 0.5rem;
}

.read-btn:hover {
background: var(--accent);
}

.tag-container {
position: absolute;
top: 1rem;
left: 1rem;
z-index: 3;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}

.article-tag {
background: rgba(255, 255, 255, 0.9);
color: #333;
padding: 0.2rem 0.75rem;
font-size: 0.65rem;
font-weight: 500;
text-transform: uppercase;
border-radius: 999px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
letter-spacing: 0.03em;
white-space: nowrap;
}
.post-tags {
position: absolute;
top: 1rem;
left: 1rem;
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
z-index: 10;
}

.tag-badge {
background: var(--card-hover); /* very light soft gray */
color: var(--text-dark); /* main text color */
padding: 0.25rem 0.7rem;
font-size: 0.65rem;
font-weight: 500;
border-radius: var(--radius-full);
letter-spacing: 0.4px;
line-height: 1.2;
box-shadow: var(--shadow-sm);
transition: var(--transition);
}

.tag-badge:hover {
background: var(--primary-light);
color: var(--primary);
}
.search-form {
display: flex;
gap: 1rem;
margin-bottom: 2rem;
}

.search-form input[type="text"] {
flex: 1;
padding: 0.7rem 1rem;
border-radius: var(--radius-md);
border: 1px solid var(--card-border);
}

.search-form button {
padding: 0.7rem 1.5rem;
}
.search-form {
margin-bottom: 2rem;
display: flex;
}

.search-form input {
width: 100%;
padding: 0.8rem 1rem;
border: 1px solid var(--card-border);
border-radius: var(--radius-md);
}

.pagination {
margin-top: 2rem;
display: flex;
justify-content: center;
gap: 0.5rem;
}

.pagination a, .pagination span {
padding: 0.5rem 1rem;
background: var(--card-hover);
border-radius: var(--radius-md);
text-decoration: none;
color: var(--text-dark);
font-weight: 600;
}

.pagination .current {
background: var(--primary);
color: white;
}
.see-more-wrapper {
margin-top: 2rem;
text-align: center;
}

.see-more-btn {
display: inline-block;
font-weight: 600;
font-size: 1rem;
color: var(--primary); /* main site accent color */
text-decoration: underline;
text-underline-offset: 4px;
text-decoration-thickness: 2px;
transition: color 0.3s ease;
}

.see-more-btn:hover {
color: var(--primary-dark);
}
/* --- Clean Full Featured Carousel --- */
.featured-carousel-container {
position: relative;
overflow: hidden;
width: 100%;
margin-top: 2rem;
}

.featured-carousel {
display: flex;
transition: transform 0.5s ease;
}

.featured-slide {
min-width: 100%;
position: relative;
}

.featured-slide img {
width: 100%;
height: 500px;
object-fit: cover;
border-radius: var(--radius-lg);
}

.featured-slide h3 {
position: absolute;
bottom: 30px;
left: 30px;
font-size: 32px;
font-weight: 800;
color: #fff;
text-shadow: 0 2px 8px rgba(0,0,0,0.7);
margin: 0;
}

.carousel-controls {
position: absolute;
top: 50%;
width: 100%;
display: flex;
justify-content: space-between;
transform: translateY(-50%);
padding: 0 20px;
}

.carousel-controls button {
background: rgba(0, 0, 0, 0.4);
border: none;
color: white;
font-size: 2rem;
cursor: pointer;
padding: 10px 15px;
border-radius: 50%;
transition: background 0.3s ease;
}

.carousel-controls button:hover {
background: rgba(0, 0, 0, 0.7);
}
/* Featured Carousel */
.featured-section {
position: relative;
margin: 2rem 0;
}

.featured-carousel-container {
position: relative;
overflow: hidden;
width: 100%;
}

.featured-carousel {
display: flex;
transition: transform 0.5s ease;
width: 100%;
}

.featured-slide {
flex: 0 0 100%;
min-width: 100%;
padding: 0 10px;
box-sizing: border-box;
transition: opacity 0.5s ease;
}

.featured-slide img {
width: 100%;
height: 400px;
object-fit: cover;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-controls {
position: absolute;
top: 50%;
left: 0;
right: 0;
display: flex;
justify-content: space-between;
transform: translateY(-50%);
z-index: 10;
pointer-events: none;
}

.carousel-controls button {
background: rgba(0, 0, 0, 0.7);
color: white;
border: none;
width: 40px;
height: 40px;
border-radius: 50%;
font-size: 1rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
pointer-events: auto;
}

.carousel-controls button:hover {
background: rgba(0, 0, 0, 0.9);
}
/* Make Featured Leaks images bigger */
.featured-carousel .featured-slide img,
.swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 450px; /* you can change 450px to 500px or 600px if you want even bigger */
  object-fit: cover;
  border-radius: 12px; /* optional for sexy rounded corners */
}
/* Comments Area */
.comments-area {
margin-top: 3rem;
}

.comments-title {
font-size: 2rem;
margin-bottom: 1.5rem;
color: #333;
}

/* Individual Comment Card */
.comment-list {
list-style: none;
padding: 0;
margin: 0;
}

.modern-comment-card {
background: #fff;
border: 1px solid #e0e0e0;
border-radius: 12px;
padding: 1.5rem;
margin-bottom: 1.5rem;
display: flex;
gap: 1rem;
align-items: flex-start;
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
}

.comment-avatar img {
border-radius: 50%;
width: 60px;
height: 60px;
}

.comment-content {
flex: 1;
}

.comment-meta {
font-size: 0.9rem;
margin-bottom: 0.5rem;
color: #666;
}

.comment-author {
font-weight: bold;
margin-right: 10px;
}

.comment-date {
font-size: 0.85rem;
}

.comment-text {
margin-bottom: 1rem;
font-size: 1rem;
line-height: 1.6;
}

/* Reply link */
.reply {
margin-top: 0.5rem;
}

.reply a {
color: #0073e6;
text-decoration: none;
font-weight: bold;
font-size: 0.9rem;
}

.reply a:hover {
text-decoration: underline;
}

/* No Comments */
.no-comments {
font-style: italic;
color: #999;
}

/* Comment Form */
.comment-form-wrapper {
margin-top: 3rem;
}

.comment-reply-title {
font-size: 1.8rem;
margin-bottom: 1rem;
}

.comment-form-comment textarea {
width: 100%;
padding: 1rem;
border: 1px solid #ccc;
border-radius: 12px;
resize: vertical;
font-size: 1rem;
height: 150px;
}

.submit-btn {
background-color: #0073e6;
color: white;
border: none;
padding: 0.75rem 2rem;
border-radius: 8px;
font-size: 1rem;
cursor: pointer;
margin-top: 1rem;
transition: background-color 0.3s ease;
}

.submit-btn:hover {
background-color: #005bb5;
}
/* Latest Tweets Section */
.twitter-cards-section {
margin-top: 4rem;
}

.twitter-cards-section h2 {
font-size: 2rem;
margin-bottom: 2rem;
text-align: center;
}

.twitter-cards-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
}


.tweet-card {
background: #ffffff;
border: 1px solid #e0e0e0;
border-radius: 12px;
padding: 1rem;
width: 100%;
max-width: 500px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Designer's Corner Section */
.designers-section {
margin-top: 5rem;
}

.designers-section h2 {
font-size: 2rem;
margin-bottom: 2rem;
text-align: center;
}

.designer-grid {
display: grid;
grid-template-columns: repeat(5, 1fr); /* 5 cards */
gap: 2rem;
justify-content: center;
}

.designer-card {
background: #ffffff;
border: 1px solid #e0e0e0;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
transition: transform 0.3s ease;
display: flex;
flex-direction: column;
}

.designer-card:hover {
transform: translateY(-5px);
}

.designer-image {
width: 100%;
height: auto; /* allow real image height */
object-fit: contain; /* just in case */
display: block;
}


.designer-info {
padding: 1rem;
text-align: center;
}

.designer-title {
font-size: 1.2rem;
margin: 0.5rem 0;
font-weight: bold;
}

.designer-name {
font-size: 1rem;
color: #666;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
.designer-grid {
  grid-template-columns: repeat(4, 1fr);
}
}

@media (max-width: 992px) {
.designer-grid {
  grid-template-columns: repeat(3, 1fr);
}
}

@media (max-width: 768px) {
.designer-grid {
  grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 480px) {
.designer-grid {
  grid-template-columns: 1fr;
}
}
.social-link {
color: var(--text-dark);
font-size: 1.3rem;
margin-left: 0.3rem;
transition: color 0.3s ease;
}

.social-link:first-child {
margin-left: 0; /* no extra space before first icon */
}

.social-link:hover {
color: var(--primary); /* nice hover color */
}
/* Make Rumor Tracker Table Responsive */
.tracker-table-wrapper {
width: 100%;
overflow-x: auto;
}

.tracker-table {
width: 100%;
min-width: 600px; /* keep table wide for scrolling */
border-collapse: separate;
border-spacing: 0;
}

.tracker-table-wrapper::-webkit-scrollbar {
height: 8px;
}

.tracker-table-wrapper::-webkit-scrollbar-thumb {
background: var(--primary);
border-radius: 10px;
}
/* Sidebar mobile */
@media (max-width: 768px) {
.sidebar {
  width: 100%;
  position: static;
  border-right: none;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 1rem;
}

.filter-options {
  grid-template-columns: repeat(2, 1fr);
}

.layout {
  flex-direction: column;
}
}
.tracker-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-top: 2rem;
}

.tracker-card {
background: white;
border: 1px solid var(--card-border);
border-radius: var(--radius-lg);
padding: 2rem;
box-shadow: var(--shadow-sm);
transition: transform 0.2s ease;
}

.tracker-card:hover {
transform: translateY(-5px);
}

.card-title {
font-size: 1.4rem;
color: var(--primary);
margin-bottom: 1rem;
}

.card-meta {
font-size: 0.95rem;
color: var(--text-gray);
margin-bottom: 1.5rem;
}

.card-status {
font-weight: 600;
text-align: right;
}

.card-status.accurate {
color: green;
}

.card-status.inaccurate {
color: red;
}

.card-status.pending {
color: orange;
}
/* ===== Mobile Article Overhaul ===== */
@media (max-width: 767px) {
/* Article Container */
.article-main-container {
  flex-direction: column;
  padding: 0;
  gap: 1rem;
}

.article-content-container {
  padding: 1rem;
  border-radius: 0;
  box-shadow: none;
}

/* Typography */
.article-title {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.article-content {
  font-size: 1rem;
  line-height: 1.7;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
}

.article-content h3 {
  font-size: 1.3rem;
  margin: 1.3rem 0 0.8rem;
}

/* Images */
.hero-image {
  max-height: 300px;
  border-radius: 0;
  margin-left: -1rem;
  margin-right: -1rem;
  width: calc(100% + 2rem);
}

.article-content img {
  margin: 1.5rem 0;
  border-radius: 0;
  width: calc(100% + 2rem);
  margin-left: -1rem;
}

/* Sidebar */
.article-sidebar {
  width: 100%;
  position: static;
  padding: 1rem;
  background: var(--bg-lighter);
  border-top: 1px solid var(--card-border);
}

.sidebar-inner {
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Meta Information */
.article-meta {
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* Related Articles */
.related-articles-section {
  margin: 2rem 0;
  padding: 1rem 0;
}

.related-articles-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.related-article-card {
  border-radius: 0;
  margin: 0 -1rem;
  width: calc(100% + 2rem);
}

.related-article-image {
  height: 200px;
}

/* Comments */
.comments-wrapper {
  padding: 1rem;
  margin: 2rem -1rem 0;
  width: calc(100% + 2rem);
  border-radius: 0;
}

/* Navigation */
.article-actions {
  flex-direction: column;
  gap: 0.8rem;
}

.article-actions .btn {
  width: 100%;
  text-align: center;
}

/* Social Sharing */
.social-buttons {
  flex-direction: column;
}

.social-button {
  justify-content: center;
}

/* Floating Actions */
.floating-actions {
  bottom: 15px;
  right: 15px;
}

.floating-btn {
  width: 45px;
  height: 45px;
  font-size: 1.1rem;
}
}

/* ===== Full-Width Mobile Article Layout ===== */
@media (max-width: 767px) {
/* Remove container background/padding */
.article-content-container {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 100% !important;
}

/* Full-width text content */
.article-content-wrapper {
  padding: 0 1.5rem !important;
  max-width: 100% !important;
}

/* Full-width article text */
.article-content {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  font-size: 1.18rem;
  line-height: 1.85;
}

/* Full-bleed images */
.article-content img {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 50% !important;
  transform: translateX(-50%) !important;
  border-radius: 0 !important;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Headings adjustment */
.article-content h2 {
  font-size: 2rem;
  margin: 3rem 0 1.5rem;
  line-height: 1.3;
}

/* Paragraph spacing */
.article-content p {
  margin-bottom: 2rem;
}

/* Captions for full-bleed images */
.wp-caption {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 50% !important;
  transform: translateX(-50%) !important;
}

.wp-caption-text {
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  color: var(--text-gray);
}

/* Special treatment for centered images */
.aligncenter {
  width: 100% !important;
  max-width: 100% !important;
  margin: 2.5rem 0 !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
}
}
.featured-meta {
font-size: 0.85rem;
color: #ccc;
margin-top: 0.5rem;
}

.featured-meta i {
margin-right: 0.3rem;
}

.featured-tags {
margin-top: 0.5rem;
}

.featured-tags .tag-badge {
background: rgba(255, 255, 255, 0.2);
color: white;
padding: 0.3rem 0.6rem;
font-size: 0.7rem;
border-radius: 999px;
margin-right: 0.4rem;
display: inline-block;
}
@media (max-width: 768px) {
.featured-leaks {
  display: none;
}
}
/* === FIX for gallery/lightbox image display in articles === */

/* Ensure Lightbox-wrapped images behave responsively */
.article-content a[data-lightbox] {
  display: block;
  width: 100%;
  margin: 1.5rem 0;
  text-align: center;
}

/* Responsive image style inside lightbox links */
.article-content a[data-lightbox] img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 0 auto;
}

/* Ensure WordPress galleries behave properly */
.article-content .wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.article-content .wp-block-gallery .wp-block-image {
  flex: 1 1 100%;
  max-width: 100%;
}

.article-content .wp-block-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* For screens larger than 768px, allow image gallery grid */
@media (min-width: 768px) {
  .article-content .wp-block-gallery .wp-block-image {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

/* Clean up spacing below each paragraph and image */
.article-content p {
  margin-bottom: 1.4rem;
}

.article-content figure {
  margin: 2rem 0;
}
/* ✅ Mobile Sidebar & Toggle */
.mobile-nav {
  display: none;
  background: white;
  padding: 1rem;
  border-bottom: 1px solid var(--card-border);
  justify-content: space-between;
  align-items: center;
}

.mobile-brand {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary);
}

.mobile-toggle {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  border: none;
}

.collapsible-sidebar {
  transition: transform 0.3s ease-in-out;
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    position: fixed;
    left: 0;
    top: 60px;
    width: 260px;
    height: calc(100% - 60px);
    background: white;
    z-index: 999;
    box-shadow: var(--shadow-md);
  }

  .sidebar.open {
    transform: translateX(0);
  }
}
@media (max-width: 768px) {
  .filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}
/* ===== Night Mode Toggle Button ===== */
.night-mode-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.3rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-right: 0.5rem;
}

.night-mode-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    transform: rotate(15deg);
}

/* Night mode active state */
body.night-mode .night-mode-btn i {
    content: "\f185"; /* sun icon */
}

body.night-mode .night-mode-btn {
    color: var(--accent);
}

/* ===== Night Mode (Dark Mode) ===== */
body.night-mode {
    --bg-light: #1a1a1a;
    --bg-lighter: #222222;
    --card-bg: #2d2d2d;
    --card-border: #444444;
    --card-hover: #333333;
    --text-dark: #f0f0f0;
    --text-gray: #cccccc;
    --text-light: #ffffff;
    --primary: #3b82f6;
    --primary-light: #1e3a8a;
    --accent: #f472b6;
}

body.night-mode {
    background-color: var(--bg-lighter);
    color: var(--text-dark);
}

/* Backgrounds */
body.night-mode .navbar,
body.night-mode .sidebar,
body.night-mode .article-content-container,
body.night-mode .tracker-card,
body.night-mode .designer-card,
body.night-mode .tweet-card,
body.night-mode .timeline-card,
body.night-mode .modern-card,
body.night-mode .comments-wrapper {
    background-color: var(--card-bg);
    border-color: var(--card-border);
}

/* Forms */
body.night-mode .search-container input,
body.night-mode .form-control {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-color: var(--card-border);
}

/* Filters Sidebar - FIXED */
body.night-mode .filter-btn {
    background-color: var(--bg-light);
    color: var(--text-dark) !important;
    border-color: var(--card-border);
}

body.night-mode .filter-btn:hover {
    background-color: var(--primary-light);
    color: var(--text-light) !important;
}

body.night-mode .filter-btn.active {
    background-color: var(--primary-light);
    color: var(--text-light) !important;
    border-color: var(--primary);
}

body.night-mode .filter-group h4 {
    color: var(--text-gray) !important;
}

body.night-mode .sidebar h3 {
    color: var(--text-light) !important;
}

/* Article Tags */
body.night-mode .article-tag {
    background-color: var(--primary-light);
    color: var(--text-light) !important;
}

body.night-mode .tag-badge {
    background-color: var(--card-hover);
    color: var(--text-dark) !important;
}

/* Links */
body.night-mode a:not(.btn):not(.read-btn):not(.social-link) {
    color: var(--text-gray);
}

body.night-mode a:not(.btn):not(.read-btn):not(.social-link):hover {
    color: var(--primary);
}

/* Section Titles */
body.night-mode .section-title {
    color: var(--text-light) !important;
}

body.night-mode .section-title i {
    color: var(--primary);
}

body.night-mode .section-title::after {
    background: linear-gradient(to right, var(--primary), var(--accent));
}

body.night-mode .modern-articles-header h2 {
    color: var(--text-light) !important;
}

body.night-mode .modern-articles-header .subtitle {
    color: var(--text-gray) !important;
}

/* Overlay */
body.night-mode .modern-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
}

body.night-mode .modern-title {
    color: var(--text-light) !important;
}

body.night-mode .modern-author {
    color: var(--text-gray) !important;
}

/* Social Links */
body.night-mode .social-link {
    color: var(--text-gray);
}

body.night-mode .social-link:hover {
    color: var(--primary);
}

/* ===== Upcoming Releases Section - FIXED ===== */
body.night-mode .timeline-card {
    background-color: var(--card-bg);
    border-color: var(--card-border);
}

body.night-mode .timeline-title {
    color: var(--text-light) !important;
}

body.night-mode .timeline-title span {
    color: var(--text-gray) !important;
}

body.night-mode .timeline-date {
    background-color: var(--primary-light);
    color: var(--text-light) !important;
}

body.night-mode .timeline-description {
    color: var(--text-gray) !important;
}

body.night-mode .no-releases {
    color: var(--text-gray);
}

/* ===== Designer's Corner - FIXED ===== */
body.night-mode .designer-card {
    background-color: var(--card-bg);
    border-color: var(--card-border);
}

body.night-mode .designer-title {
    color: var(--text-light) !important;
}

body.night-mode .designer-name {
    color: var(--text-gray) !important;
}

body.night-mode .designer-info {
    background-color: var(--card-bg);
}

/* ===== Tweet Cards - FIXED ===== */
body.night-mode .tweet-card {
    background-color: var(--card-bg);
    border-color: var(--card-border);
}

body.night-mode .twitter-tweet {
    color: var(--text-dark) !important;
}

/* ===== Rumor Tracker - FIXED ===== */
body.night-mode .tracker-card {
    background-color: var(--card-bg);
    border-color: var(--card-border);
}

body.night-mode .card-title {
    color: var(--text-light) !important;
}

body.night-mode .card-meta {
    color: var(--text-gray) !important;
}

body.night-mode .card-status.accurate {
    color: #4ade80 !important;
}

body.night-mode .card-status.inaccurate {
    color: #f87171 !important;
}

body.night-mode .card-status.pending {
    color: #fbbf24 !important;
}

body.night-mode .stat-box {
    background-color: var(--card-bg);
    border-color: var(--card-border);
}

body.night-mode .stat-label {
    color: var(--text-gray) !important;
}

/* ===== Read More Button ===== */
body.night-mode .read-btn {
    background-color: var(--primary);
    color: var(--text-light) !important;
}

body.night-mode .read-btn:hover {
    background-color: var(--accent);
}

/* ===== See More Button ===== */
body.night-mode .see-more-btn {
    color: var(--primary) !important;
}

body.night-mode .see-more-btn:hover {
    color: var(--accent) !important;
}

/* ===== Footer (if you have one) ===== */
body.night-mode footer {
    background-color: var(--card-bg);
    color: var(--text-gray);
    border-color: var(--card-border);
}
/* ===== Night Mode Scrollbar Fix ===== */
body.night-mode .sidebar::-webkit-scrollbar {
    width: 8px;
    background-color: var(--card-bg);
}

body.night-mode .sidebar::-webkit-scrollbar-track {
    background: var(--card-hover);
    border-radius: 10px;
}

body.night-mode .sidebar::-webkit-scrollbar-thumb {
    background: var(--text-gray);
    border-radius: 10px;
    border: 2px solid var(--card-bg);
}

body.night-mode .sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* For Firefox */
body.night-mode .sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--text-gray) var(--card-hover);
}

/* Also fix any other scrollbars on the page */
body.night-mode ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: var(--bg-lighter);
}

body.night-mode ::-webkit-scrollbar-track {
    background: var(--card-hover);
    border-radius: 10px;
}

body.night-mode ::-webkit-scrollbar-thumb {
    background: var(--text-gray);
    border-radius: 10px;
    border: 2px solid var(--card-hover);
}

body.night-mode ::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
/* ===== Night Mode Sidebar Logos - Brand & League Only ===== */
/* Brand logos - turn white */
body.night-mode .filter-group .filter-btn img.brand-icon {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: filter 0.3s ease;
}

/* League logos - turn white */
body.night-mode .filter-group .filter-btn img.league-icon {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: filter 0.3s ease;
}

/* Hover effect for brand & league */
body.night-mode .filter-btn:hover img.brand-icon,
body.night-mode .filter-btn:hover img.league-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 3px var(--primary));
    opacity: 1;
}

/* Active state for brand & league */
body.night-mode .filter-btn.active img.brand-icon,
body.night-mode .filter-btn.active img.league-icon {
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* Club logos - NO CHANGES, keep original colors */
body.night-mode .filter-btn img.club-icon {
    filter: none !important;
    opacity: 1 !important;
}

/* ===== Night Mode Main Site Logo ===== */
body.night-mode .nav-logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: filter 0.3s ease;
}

body.night-mode .nav-logo:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--primary));
    opacity: 1;
}
/* ===== Night Mode Single Article Page ===== */
body.night-mode .article-content-container {
    background-color: var(--card-bg);
    color: var(--text-dark);
}

/* Article Title */
body.night-mode .article-title {
    color: var(--text-light) !important;
}

/* Article Content */
body.night-mode .article-content {
    color: var(--text-dark);
}

body.night-mode .article-content p {
    color: var(--text-dark);
}

body.night-mode .article-content h2,
body.night-mode .article-content h3,
body.night-mode .article-content h4 {
    color: var(--text-light) !important;
}

/* Article Sidebar */
body.night-mode .article-sidebar .sidebar-inner {
    background-color: var(--card-bg);
    border-color: var(--card-border);
}

body.night-mode .article-meta {
    color: var(--text-gray);
}

body.night-mode .article-meta span {
    color: var(--text-gray);
}

body.night-mode .article-meta i {
    color: var(--primary);
}

/* Tags Section */
body.night-mode .tags-section h4 {
    color: var(--text-light) !important;
}

body.night-mode .tags-container .article-tag {
    background-color: var(--primary-light);
    color: var(--text-light) !important;
    border: none;
}

/* Social Sharing */
body.night-mode .social-sharing h4 {
    color: var(--text-light) !important;
}

body.night-mode .social-button {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--card-border);
}

body.night-mode .social-button:hover {
    background-color: var(--primary-light);
    color: var(--text-light);
}

body.night-mode .social-button.twitter {
    background-color: #1DA1F2;
    color: white;
}

body.night-mode .social-button.facebook {
    background-color: #4267B2;
    color: white;
}

/* Comments Section */
body.night-mode .comments-wrapper {
    background-color: var(--card-bg);
    border-color: var(--card-border);
}

body.night-mode .comments-title {
    color: var(--text-light) !important;
}

body.night-mode .comment-list {
    color: var(--text-dark);
}

body.night-mode .comment-author {
    color: var(--text-light) !important;
}

body.night-mode .comment-metadata {
    color: var(--text-gray);
}

body.night-mode .comment-content {
    color: var(--text-dark);
}

body.night-mode .reply a {
    color: var(--primary);
}

/* Related Articles Section */
body.night-mode .related-articles-section .section-header h3 {
    color: var(--text-light) !important;
}

body.night-mode .related-articles-section .section-subtitle {
    color: var(--text-gray);
}

body.night-mode .related-article-card {
    background-color: var(--card-bg);
    border-color: var(--card-border);
}

body.night-mode .related-article-card h4 {
    color: var(--text-light) !important;
}

body.night-mode .related-article-meta {
    color: var(--text-gray);
}

body.night-mode .related-article-meta i {
    color: var(--primary);
}

body.night-mode .view-all-btn {
    background-color: var(--primary);
    color: white;
}

body.night-mode .view-all-btn:hover {
    background-color: var(--accent);
}

/* Article Actions Buttons */
body.night-mode .article-actions .btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-color: var(--card-border);
}

body.night-mode .article-actions .btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--text-light);
}

body.night-mode .article-actions .btn {
    background-color: var(--primary);
    color: white;
}

/* Floating Buttons */
body.night-mode .floating-btn {
    background-color: var(--card-bg);
    color: var(--text-light);
    border: 1px solid var(--card-border);
}

body.night-mode .floating-btn:hover {
    background-color: var(--primary);
    color: white;
}

/* Toast Notification */
body.night-mode .toast {
    background-color: var(--card-bg);
    color: var(--text-light);
    border-left-color: var(--primary);
}

/* Image Placeholder */
body.night-mode .image-placeholder {
    background-color: var(--card-hover);
    color: var(--text-gray);
}

/* Back to Top / Back buttons */
body.night-mode .btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-color: var(--card-border);
}

body.night-mode .btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--text-light);
}
/* ===== Infinite Scroll Section (3 Articles Per Row) ===== */
.infinite-scroll-section {
    margin: 4rem 0;
    padding: 2rem 0;
}

.infinite-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.infinite-article-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
    height: 100%;
    display: flex;
}

.infinite-article-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.infinite-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.infinite-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.infinite-article-card:hover .infinite-image {
    transform: scale(1.05);
}

.infinite-category {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.infinite-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.infinite-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    color: var(--text-dark);
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.infinite-article-card:hover .infinite-title {
    color: var(--primary);
}

.infinite-excerpt {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.infinite-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
    font-size: 0.7rem;
    color: var(--text-gray);
    border-top: 1px solid var(--card-border);
    padding-top: 0.8rem;
}

.infinite-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.infinite-meta i {
    color: var(--primary);
    font-size: 0.65rem;
}

.infinite-footer {
    margin-top: 0.3rem;
}

.infinite-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.3s ease;
}

.infinite-article-card:hover .infinite-read-more {
    gap: 0.6rem;
    color: var(--accent);
}

.infinite-read-more i {
    font-size: 0.7rem;
}

/* Loading and end indicators */
.infinite-load-more {
    text-align: center;
    margin: 2rem 0;
    min-height: 60px;
}

.infinite-spinner {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.infinite-spinner i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.infinite-end-message {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--bg-lighter);
    color: var(--text-gray);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--card-border);
}

.infinite-end-message i {
    margin-right: 0.5rem;
    color: var(--success);
}

/* Dark mode adjustments */
body.night-mode .infinite-article-card {
    background: var(--card-bg);
    border-color: var(--card-border);
}

body.night-mode .infinite-title {
    color: var(--text-light);
}

body.night-mode .infinite-excerpt {
    color: var(--text-gray);
}

body.night-mode .infinite-meta {
    border-top-color: var(--card-border);
    color: var(--text-gray);
}

body.night-mode .infinite-end-message {
    background: var(--card-bg);
    color: var(--text-gray);
    border-color: var(--card-border);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .infinite-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .infinite-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .infinite-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .infinite-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
}
/* Default club image fallback */
.club-logo[src$="default-club.png"] {
    opacity: 0.7;
    filter: grayscale(50%);
}
/* ===== Professional Clean Sidebar ===== */
.sidebar {
  width: 280px;
  min-width: 280px;
  background: white;
  padding: 2rem 1.25rem;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  overflow-x: hidden;
  transition: all 0.2s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
}

.sidebar-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-title {
  font-size: 0.85rem;  /* Slightly bigger */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
  display: block;
}

.filter-group {
  margin-bottom: 2rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;  /* Increased gap */
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}

.filter-group-header i {
  font-size: 1.1rem;  /* Increased from 0.8rem */
  color: #2563eb;
  width: 20px;  /* Increased from 16px */
  opacity: 0.8;
}

.filter-group-header span {
  font-size: 0.9rem;  /* Increased from 0.75rem */
  font-weight: 600;  /* Made bolder */
  text-transform: uppercase;
  letter-spacing: 0.4px;  /* Slightly increased */
  color: #475569;  /* Darker for better visibility */
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  min-width: 0;
  width: 100%;
}

.filter-btn:hover {
  background: #f8fafc;
  color: #2563eb;
}

.filter-btn.active {
  background: #f1f5f9;
  color: #2563eb;
  font-weight: 500;
}

.filter-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.filter-btn span {
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Dark Gray Mode (Professional Dark Theme) ===== */
body.night-mode {
  --bg-dark: #1a1a1a;
  --bg-darker: #121212;
  --bg-card: #242424;
  --bg-hover: #2a2a2a;
  --border-color: #333333;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent-gray: #404040;
  --accent-blue: #3b82f6;
  
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

body.night-mode .sidebar {
  background: var(--bg-darker);
  border-right-color: var(--border-color);
  scrollbar-color: #4a4a4a transparent;
}

body.night-mode .sidebar::-webkit-scrollbar-thumb {
  background: #4a4a4a;
}

body.night-mode .sidebar-header {
  border-bottom-color: var(--border-color);
}

body.night-mode .sidebar-title {
  color: var(--text-secondary);
}

body.night-mode .filter-group-header i {
  color: var(--accent-blue);
  opacity: 0.9;
  font-size: 1.1rem;  /* Match light mode size */
}

body.night-mode .filter-group-header span {
  color: #d1d5db;  /* Lighter for dark mode */
  font-size: 0.9rem;  /* Match light mode size */
}

body.night-mode .filter-btn {
  color: var(--text-secondary);
}

body.night-mode .filter-btn:hover {
  background: var(--bg-hover);
  color: #ffffff;
}

body.night-mode .filter-btn.active {
  background: var(--bg-hover);
  color: #ffffff;
  border-left: 2px solid var(--accent-blue);
}

/* Brand and league logos in night mode */
body.night-mode .filter-btn img[alt*="Nike"],
body.night-mode .filter-btn img[alt*="Adidas"],
body.night-mode .filter-btn img[alt*="Puma"],
body.night-mode .filter-btn img[alt*="Kappa"],
body.night-mode .filter-btn img[alt*="Umbro"],
body.night-mode .filter-btn img[alt*="Premier League"],
body.night-mode .filter-btn img[alt*="La Liga"],
body.night-mode .filter-btn img[alt*="Serie A"],
body.night-mode .filter-btn img[alt*="Ligue 1"],
body.night-mode .filter-btn img[alt*="Bundesliga"] {
  filter: brightness(0) invert(0.85);
  opacity: 0.9;
}

/* Club logos remain unchanged in night mode */
body.night-mode .filter-btn img[alt*="Inter"],
body.night-mode .filter-btn img[alt*="Real Madrid"],
body.night-mode .filter-btn img[alt*="Arsenal"],
body.night-mode .filter-btn img[alt*="Fenerbahçe"],
body.night-mode .filter-btn img[alt*="Galatasaray"] {
  filter: none;
  opacity: 1;
}
/* ===================== */
/* MOBILE HEADER - EXACTLY LIKE REFERENCE */
/* ===================== */

@media (max-width: 768px) {
  /* Hide desktop navbar on mobile */
  .navbar {
    display: none !important;
  }

  /* Show mobile header */
  .mobile-header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
  }

  .mobile-header-inner {
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
  }

  .mobile-header-left,
  .mobile-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-header-logo {
    display: flex;
    align-items: center;
  }

  .mobile-header-logo img {
    height: 28px;
    width: auto;
  }

  .mobile-header-icon {
    border: none;
    padding: 4px;
    display: flex;
    color: #666;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    background: none;
    font-size: 1.4rem;
    line-height: 1;
  }

  .mobile-header-icon:hover {
    color: #000;
  }

/* Mobile Sidebar - FULL WIDTH */
.sidebar {
  position: fixed !important;
  width: 100% !important;  /* ← CHANGED TO 100% */
  top: 60px !important;
  left: 0 !important;
  bottom: 0 !important;
  background-color: #ffffff !important;
  border-right: 1px solid #ddd !important;
  z-index: 999 !important;
  transform: translateX(-100%) !important;
  transition: transform 0.3s ease !important;
  height: calc(100% - 60px) !important;
  overflow-y: auto !important;
  padding: 12px 0 !important;
}

  .sidebar.visible {
    transform: translateX(0) !important;
  }

  /* Sidebar links - exactly like reference */
  .sidebar .filter-group {
    margin-bottom: 16px;
  }

  .sidebar .filter-group-header {
    padding: 8px 12px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .sidebar .filter-group-header i {
    font-size: 1.1rem;
    color: #2563eb;
    width: 24px;
  }

  .sidebar .filter-group-header span {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
  }

  .sidebar .filter-options {
    padding: 4px 0;
  }

  .sidebar .filter-btn {
    display: flex;
    padding: 12px 12px 12px 24px;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    border-radius: 0;
    transition: background-color 0.2s ease;
  }

  .sidebar .filter-btn:hover {
    background-color: #f5f5f5;
  }

  .sidebar .filter-btn.active {
    background-color: #f0f7ff;
    color: #2563eb;
  }

  .sidebar .filter-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .sidebar .filter-btn span {
    line-height: 1;
  }

  /* Overlay */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
  }

  .sidebar-overlay.active {
    display: block;
  }

  /* Main content adjustment */
  .layout {
    padding-top: 60px !important;
  }

  #content {
    padding: 16px !important;
  }

  /* ===== DARK MODE FOR MOBILE ===== */
  body.night-mode .mobile-header {
    background-color: #121212;
    border-bottom-color: #333;
  }

  body.night-mode .mobile-header-icon {
    color: #aaa;
  }

  body.night-mode .mobile-header-icon:hover {
    color: #fff;
  }

  body.night-mode .sidebar {
    background-color: #121212 !important;
    border-right-color: #333 !important;
  }

  body.night-mode .sidebar .filter-group-header {
    border-bottom-color: #333;
  }

  body.night-mode .sidebar .filter-group-header i {
    color: #3b82f6;
  }

  body.night-mode .sidebar .filter-group-header span {
    color: #999;
  }

  body.night-mode .sidebar .filter-btn {
    color: #ccc;
  }

  body.night-mode .sidebar .filter-btn:hover {
    background-color: #2a2a2a;
    color: #fff;
  }

  body.night-mode .sidebar .filter-btn.active {
    background-color: #1e2a3a;
    color: #3b82f6;
  }

  /* Brand and league logos in dark mode */
  body.night-mode .sidebar .filter-btn img[alt*="Nike"],
  body.night-mode .sidebar .filter-btn img[alt*="Adidas"],
  body.night-mode .sidebar .filter-btn img[alt*="Puma"],
  body.night-mode .sidebar .filter-btn img[alt*="Kappa"],
  body.night-mode .sidebar .filter-btn img[alt*="Umbro"],
  body.night-mode .sidebar .filter-btn img[alt*="Premier League"],
  body.night-mode .sidebar .filter-btn img[alt*="La Liga"],
  body.night-mode .sidebar .filter-btn img[alt*="Serie A"],
  body.night-mode .sidebar .filter-btn img[alt*="Ligue 1"],
  body.night-mode .sidebar .filter-btn img[alt*="Bundesliga"] {
    filter: brightness(0) invert(0.85);
  }

  /* Club logos unchanged */
  body.night-mode .sidebar .filter-btn img[alt*="Inter"],
  body.night-mode .sidebar .filter-btn img[alt*="Real Madrid"],
  body.night-mode .sidebar .filter-btn img[alt*="Arsenal"],
  body.night-mode .sidebar .filter-btn img[alt*="Fenerbahçe"],
  body.night-mode .sidebar .filter-btn img[alt*="Galatasaray"] {
    filter: none;
  }
}

/* Hide mobile header on desktop */
@media (min-width: 769px) {
  .mobile-header {
    display: none !important;
  }
}/* ===== IMPROVED MOBILE SIDEBAR ORGANIZATION ===== */
@media (max-width: 768px) {
  /* Better section headers */
  .sidebar .filter-group-header {
    padding: 16px 20px 8px 20px;
    margin: 0;
    border-bottom: 2px solid #f0f0f0;
    background: #fafafa;
  }

  .sidebar .filter-group-header i {
    font-size: 1.2rem;
    color: #2563eb;
    width: 28px;
  }

  .sidebar .filter-group-header span {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
  }

  /* Better organization for filter options */
  .sidebar .filter-options {
    padding: 8px 0;
    background: #ffffff;
  }

  /* Improved filter buttons */
  .sidebar .filter-btn {
    display: flex;
    padding: 14px 20px 14px 28px;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: #444;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    border-radius: 0;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
  }

  .sidebar .filter-btn:hover {
    background-color: #f5f9ff;
    color: #2563eb;
    border-left-color: #2563eb;
    padding-left: 28px;
  }

  .sidebar .filter-btn.active {
    background-color: #e8f0fe;
    color: #2563eb;
    font-weight: 600;
    border-left-color: #2563eb;
  }

  .sidebar .filter-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }

  /* Add subtle dividers between sections */
  .sidebar .filter-group {
    margin-bottom: 8px;
    border-bottom: 8px solid #f5f5f5;
  }

  .sidebar .filter-group:last-child {
    border-bottom: none;
  }

  /* Better sidebar title */
  .sidebar .sidebar-header {
    padding: 16px 20px;
    margin-bottom: 0;
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
  }

  .sidebar .sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 0.5px;
  }

  /* ===== DARK MODE IMPROVEMENTS ===== */
  body.night-mode .sidebar .filter-group-header {
    background: #1a1a1a;
    border-bottom-color: #333;
  }

  body.night-mode .sidebar .filter-group-header span {
    color: #e0e0e0;
  }

  body.night-mode .sidebar .filter-options {
    background: #121212;
  }

  body.night-mode .sidebar .filter-btn {
    color: #ccc;
  }

  body.night-mode .sidebar .filter-btn:hover {
    background-color: #1e2a3a;
    color: #3b82f6;
    border-left-color: #3b82f6;
  }

  body.night-mode .sidebar .filter-btn.active {
    background-color: #1e2a3a;
    color: #3b82f6;
    border-left-color: #3b82f6;
  }

  body.night-mode .sidebar .filter-group {
    border-bottom-color: #222;
  }

  body.night-mode .sidebar .sidebar-header {
    background: #121212;
    border-bottom-color: #333;
  }

  body.night-mode .sidebar .sidebar-title {
    color: #3b82f6;
  }
}
/* ===== SOCIAL MEDIA ICONS AT TOP OF MOBILE SIDEBAR ===== */
@media (max-width: 768px) {
  /* Social media section at the very top */
  .sidebar .mobile-social-section {
    padding: 20px 20px 15px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 5px;
  }

  .sidebar .mobile-social-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-bottom: 12px;
    font-weight: 600;
    display: block;
  }

  .sidebar .mobile-social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
  }

  .sidebar .mobile-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #444;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .sidebar .mobile-social-icon:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
  }

  .sidebar .mobile-social-icon.telegram:hover {
    background: #0088cc;
  }

  .sidebar .mobile-social-icon.twitter:hover {
    background: #000000;
  }

  .sidebar .mobile-social-icon.facebook:hover {
    background: #1877f2;
  }

  /* Adjust the first filter group to have less top padding */
  .sidebar .filter-group:first-of-type {
    margin-top: 0;
  }

  /* ===== DARK MODE FOR SOCIAL ICONS ===== */
  body.night-mode .sidebar .mobile-social-section {
    background: #121212;
    border-bottom-color: #333;
  }

  body.night-mode .sidebar .mobile-social-title {
    color: #666;
  }

  body.night-mode .sidebar .mobile-social-icon {
    background: #2a2a2a;
    color: #ccc;
  }

  body.night-mode .sidebar .mobile-social-icon:hover {
    color: white;
  }

  body.night-mode .sidebar .mobile-social-icon.telegram:hover {
    background: #0088cc;
  }

  body.night-mode .sidebar .mobile-social-icon.twitter:hover {
    background: #000000;
  }

  body.night-mode .sidebar .mobile-social-icon.facebook:hover {
    background: #1877f2;
  }
}
/* ===== FIX MOBILE HEADER GAP ===== */
@media (max-width: 768px) {
  /* Reduce the padding-top on the layout container */
  .layout {
    padding-top: 60px !important;
  }
  
  /* Further reduce spacing for the first section */
  .modern-articles {
    margin-top: 0.5rem !important;
  }
  
  /* Adjust the first section header spacing */
  .modern-articles-header {
    margin-bottom: 1.5rem !important;
  }
  
  .modern-articles-header h2 {
    font-size: 1.5rem !important;
    margin-top: 0 !important;
  }
  
  /* If there's a subtitle, reduce its margin too */
  .modern-articles-header .subtitle {
    margin-top: 0.25rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Also adjust the first grid to start closer to header */
  .modern-grid {
    margin-top: 0 !important;
  }
}

/* Even smaller screens */
@media (max-width: 480px) {
  .modern-articles {
    margin-top: 0.25rem !important;
  }
  
  .modern-articles-header {
    margin-bottom: 1rem !important;
  }
}
/* ===== FIX SPACING BETWEEN SECTIONS - PHONE ONLY ===== */
@media (max-width: 768px) {
  /* Add moderate spacing between See More button and Upcoming Releases */
  .see-more-wrapper {
    margin-bottom: 2rem !important;
  }
  
  /* Adjust the Upcoming Releases section */
  .timeline-section {
    margin-top: 1rem !important;
  }
}
/* ===== MOBILE SEARCH - HIDE ON DESKTOP ===== */
@media (min-width: 769px) {
  .mobile-search-btn,
  .mobile-search-overlay {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* Adjust mobile header spacing */
  .mobile-header-right {
    gap: 2px !important; /* Reduced gap between icons */
  }
  
  /* Make all mobile icons slightly smaller */
  .mobile-header-icon {
    font-size: 1.3rem !important; /* Reduced from 1.4rem */
    padding: 4px 3px !important; /* Reduced padding */
  }
  
  /* Specific adjustment for search icon */
  .mobile-search-btn {
    font-size: 1.3rem !important;
    padding: 4px 3px !important;
  }
  
  /* Ensure the logo doesn't get squished */
  .mobile-header-logo img {
    height: 32px !important; /* Slightly smaller logo */
    width: auto;
  }
  
  /* Adjust the left section spacing */
  .mobile-header-left {
    gap: 4px !important;
  }
  
  /* Add search icon to mobile header */
  .mobile-search-btn {
    border: none;
    display: flex;
    color: #666;
    align-items: center;
    cursor: pointer;
    background: none;
    line-height: 1;
  }
  
  .mobile-search-btn:hover {
    color: #000;
  }
  
  /* Search overlay */
  .mobile-search-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: white;
    padding: 12px 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1001;
    display: none;
    border-bottom: 1px solid #ddd;
  }
  
  .mobile-search-overlay.active {
    display: block;
  }
  
  .mobile-search-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
  }
  
  .mobile-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
    z-index: 2;
  }
  
  .mobile-search-input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 0.95rem;
    background: #f5f5f5;
    outline: none;
  }
  
  .mobile-search-input:focus {
    border-color: var(--primary);
    background: white;
  }
  
  .mobile-search-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 8px;
    z-index: 2;
  }
  
  .mobile-search-close:hover {
    color: #333;
  }
  
  /* Dark mode styles */
  body.night-mode .mobile-search-btn {
    color: #aaa;
  }
  
  body.night-mode .mobile-search-btn:hover {
    color: #fff;
  }
  
  body.night-mode .mobile-search-overlay {
    background: #121212;
    border-bottom-color: #333;
  }
  
  body.night-mode .mobile-search-input {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
  }
  
  body.night-mode .mobile-search-input:focus {
    background: #333;
    border-color: var(--primary);
  }
  
  body.night-mode .mobile-search-icon,
  body.night-mode .mobile-search-close {
    color: #aaa;
  }
  
  body.night-mode .mobile-search-close:hover {
    color: #fff;
  }
}
/* ===== MAKE LOGO WHITE IN DARK MODE ON PHONE ===== */
@media (max-width: 768px) {
  body.night-mode .mobile-header-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: filter 0.3s ease;
  }
  
  body.night-mode .mobile-header-logo img:hover {
    opacity: 1;
  }
}
/* ===== MAKE SIDEBAR "BROWSE" TEXT WHITE IN DARK MODE ON PHONE ===== */
@media (max-width: 768px) {
  body.night-mode .sidebar .sidebar-title {
    color: #ffffff !important;
  }
  
  /* Also make the section headers (Clubs, Brands, Leagues) lighter */
  body.night-mode .sidebar .filter-group-header span {
    color: #e0e0e0 !important;
  }
}
/* ===== PHONE ONLY EDITS - MORE ELEGANT TITLE ===== */
@media (max-width: 767px) {
  
  /* Make title slightly bigger */
  .post-item-title {
    font-size: 28px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 4px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  
  /* Add byline with author and date */
  .post-item-byline {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    font-size: 13px !important;
    color: #666 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    padding-bottom: 8px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  
  .post-item-byline__section {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
  }
  
  .post-item-byline__author {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
  }
  
  .post-item-byline__author i {
    color: #2563eb !important;
    font-size: 13px !important;
  }
  
  .post-item-byline__date {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
  }
  
  .post-item-byline__date i {
    color: #2563eb !important;
    font-size: 13px !important;
  }
  
  .post-item-byline__actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }
  
  .post-item-byline__share {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #2563eb !important;
    font-weight: 500 !important;
    cursor: pointer !important;
  }
  
  .post-item-byline__share i {
    font-size: 13px !important;
  }
  
  /* Remove corners from thumbnail image */
  .hero-image {
    border-radius: 0 !important;
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    width: calc(100% + 2rem) !important;
    max-height: 300px !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important; /* INCREASED from 4px to 24px for more space */
  }
  
  .hero-image img {
    border-radius: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  
  /* Ensure the image container has no radius */
  .article-image-container img,
  .article-image-full {
    border-radius: 0 !important;
  }
  
  /* Reduce any additional spacing around the hero section */
  .hero {
    margin-bottom: 0 !important;
    gap: 0 !important;
  }
  
  /* Add top margin to article content wrapper to create more space */
  .article-content-wrapper {
    margin-top: 12px !important; /* ADDED for extra spacing */
    padding-top: 0 !important;
  }
}

/* Dark mode adjustments for the new elements */
@media (max-width: 767px) {
  body.night-mode .post-item-byline {
    color: #aaa !important;
    border-bottom-color: rgba(255,255,255,0.05) !important;
  }
  
  body.night-mode .post-item-byline__share {
    color: #3b82f6 !important;
  }
  
  body.night-mode .post-item-byline__author i,
  body.night-mode .post-item-byline__date i {
    color: #3b82f6 !important;
  }
}
/* ===== MOBILE BYLINE - HIDE ON DESKTOP ===== */
@media (min-width: 768px) {
  .post-item-byline {
    display: none !important;
  }
}

/* ===== PHONE ONLY - SHOW MOBILE BYLINE ===== */
@media (max-width: 767px) {
  /* Your existing mobile byline styles remain, just make sure it's visible */
  .post-item-byline {
    display: flex !important; /* or whatever display value you want */
  }
}
/* ===== PHONE ONLY - MAKE ARTICLE TEXT WIDER (SINGLE ARTICLE PAGES ONLY) ===== */
@media (max-width: 767px) {
  /* Target the article content wrapper */
  .article-content-wrapper {
    padding-left: 4px !important;
    padding-right: 4px !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Target the actual article content */
  .article-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Target paragraphs */
  .article-content p {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  
  /* Target headings */
  .article-content h2,
  .article-content h3,
  .article-content h4 {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}
/* ===== PHONE ONLY - CURVED CORNERS FOR RELATED ARTICLES CARDS (RESPONSIVE FIX) ===== */
@media (max-width: 767px) {
  /* Fix the grid container */
  .related-articles-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Target the related article cards */
  .related-article-card {
    border-radius: 16px !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Make the images inside also curved */
  .related-article-image {
    border-radius: 16px 16px 0 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 180px !important;
  }
  
  .related-article-image img {
    border-radius: 16px 16px 0 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  
  /* Content area styling */
  .related-article-content {
    padding: 16px !important;
    width: 100% !important;
  }
  
  .related-article-content h4 {
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
  }
  
  .related-article-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    font-size: 0.85rem !important;
  }
}
/* ===== DESKTOP NAVBAR SOCIAL ICONS - CLOSER TOGETHER ===== */
@media (min-width: 769px) {
  .nav-right {
    display: flex;
    align-items: center;
    gap: 0.25rem !important; /* Reduced from the default gap */
  }
  
  .nav-right .social-link {
    margin-left: 0 !important; /* Remove any left margin */
    padding: 0.5rem 0.4rem !important; /* Adjust padding to your preference */
  }
  
  /* If you want them even tighter, you can use this */
  .nav-right .social-link i {
    font-size: 1.2rem; /* Slightly smaller icons if needed */
  }
  
  /* Night mode button spacing */
  .night-mode-btn {
    margin-right: 0.25rem !important;
  }
}
/* ===== Dark Blue Mode (Professional Dark Theme) - COMPLETELY UNIFORM ===== */
body.night-mode {
  --bg-primary: #0a1424;    /* Main background - very dark navy - EVERYTHING uses this */
  --bg-hover: #1a2940;       /* Hover state - subtle highlight only for interactive elements */
  --border-color: #1e2c3f;   /* Border - dark muted blue */
  --text-primary: #e6edf3;   /* Light text with blue tint */
  --text-secondary: #9bb1cc; /* Soft blue-gray for secondary text */
  --accent-blue: #3b82f6;    /* Keep accent blue */
  
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* MAIN CONTENT AREA - DARKEST BLUE */
body.night-mode #content,
body.night-mode main,
body.night-mode .layout #content,
body.night-mode .main-content {
    background-color: var(--bg-primary) !important;
}

/* ALL SECTIONS - NO BACKGROUND, let the main content show through */
body.night-mode .featured-section,
body.night-mode .modern-articles,
body.night-mode .timeline-section,
body.night-mode .designers-section,
body.night-mode .infinite-scroll-section,
body.night-mode .modern-articles-header,
body.night-mode .section-header,
body.night-mode .featured-carousel-container,
body.night-mode .horizontal-timeline {
    background-color: transparent !important;
}

/* ALL CONTAINERS - SAME DARK BLUE AS BACKGROUND */
body.night-mode .navbar,
body.night-mode .sidebar,
body.night-mode .article-content-container,
body.night-mode .comments-wrapper,
body.night-mode .mobile-header,
body.night-mode .post,
body.night-mode .article-card,
body.night-mode .infinite-article-card,
body.night-mode .related-article-card,
body.night-mode .stat-box,
body.night-mode .tracker-card,
body.night-mode .designer-card,
body.night-mode .tweet-card,
body.night-mode .timeline-card,
body.night-mode .modern-card,
body.night-mode .filter-btn {
    background-color: var(--bg-primary) !important;
}

/* Cards should have the SAME background as everything else */
body.night-mode .tracker-card,
body.night-mode .designer-card,
body.night-mode .tweet-card,
body.night-mode .timeline-card,
body.night-mode .modern-card,
body.night-mode .infinite-article-card,
body.night-mode .related-article-card,
body.night-mode .post,
body.night-mode .article-card {
    background-color: var(--bg-primary) !important;
    border: 1px solid var(--border-color);
}

/* Section titles - no extra backgrounds */
body.night-mode .section-title {
    color: var(--text-primary) !important;
    background-color: transparent !important;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

/* Featured Leaks carousel - remove any lighter background */
body.night-mode .featured-carousel-container {
    background-color: transparent !important;
}

body.night-mode .featured-slide {
    background-color: transparent !important;
}

/* Upcoming Releases cards */
body.night-mode .timeline-card {
    background-color: var(--bg-primary) !important;
    border: 1px solid var(--border-color);
    box-shadow: none;
}

/* Designer's Corner cards */
body.night-mode .designer-card {
    background-color: var(--bg-primary) !important;
    border: 1px solid var(--border-color);
}

/* More Articles cards */
body.night-mode .infinite-article-card {
    background-color: var(--bg-primary) !important;
    border: 1px solid var(--border-color);
}

/* Remove any light backgrounds from headers */
body.night-mode .modern-articles-header,
body.night-mode .section-header {
    background-color: transparent !important;
}

/* Borders - consistent dark */
body.night-mode .navbar,
body.night-mode .sidebar,
body.night-mode .card,
body.night-mode .post,
body.night-mode .filter-btn,
body.night-mode .search-container input,
body.night-mode .form-control,
body.night-mode .timeline-card,
body.night-mode .designer-card,
body.night-mode .tweet-card,
body.night-mode .infinite-article-card,
body.night-mode .related-article-card,
body.night-mode .stat-box,
body.night-mode .tracker-card,
body.night-mode .modern-card,
body.night-mode .comments-wrapper,
body.night-mode .sidebar-header {
    border-color: var(--border-color) !important;
    border-width: 1px;
    border-style: solid;
}

/* Text colors */
body.night-mode,
body.night-mode p,
body.night-mode span:not(.filter-btn span):not(.btn),
body.night-mode div:not(.filter-btn):not(.btn) {
    color: var(--text-primary);
}

body.night-mode .text-muted,
body.night-mode .text-gray,
body.night-mode .article-meta,
body.night-mode .post-meta,
body.night-mode .comment-date,
body.night-mode .modern-author,
body.night-mode .infinite-meta,
body.night-mode .related-article-meta,
body.night-mode .designer-name,
body.night-mode .subtitle,
body.night-mode .section-subtitle,
body.night-mode .infinite-excerpt,
body.night-mode .timeline-description,
body.night-mode .post-excerpt,
body.night-mode .comment-content {
    color: var(--text-secondary) !important;
}

/* Headings */
body.night-mode h1,
body.night-mode h2,
body.night-mode h3,
body.night-mode h4,
body.night-mode h5,
body.night-mode h6,
body.night-mode .article-title,
body.night-mode .post-title,
body.night-mode .sidebar-title,
body.night-mode .section-title,
body.night-mode .modern-title,
body.night-mode .infinite-title,
body.night-mode .card-title,
body.night-mode .designer-title,
body.night-mode .timeline-title,
body.night-mode .featured-content h3 {
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* Mobile specific - all consistent dark blue */
@media (max-width: 768px) {
    body.night-mode .mobile-header {
        background-color: var(--bg-primary) !important;
        border-bottom-color: var(--border-color) !important;
    }
    
    body.night-mode .sidebar {
        background-color: var(--bg-primary) !important;
    }
    
    body.night-mode .sidebar .filter-group-header {
        background-color: transparent !important;
        border-bottom-color: var(--border-color) !important;
    }
    
    body.night-mode .sidebar .filter-btn {
        color: var(--text-secondary);
        background-color: transparent !important;
    }
    
    body.night-mode .sidebar .filter-btn:hover {
        background-color: var(--bg-hover) !important;
        color: var(--text-primary);
    }
    
    body.night-mode .sidebar .filter-btn.active {
        background-color: var(--bg-hover) !important;
        color: var(--accent-blue);
    }
    
    body.night-mode #content,
    body.night-mode main,
    body.night-mode .layout #content {
        background-color: var(--bg-primary) !important;
    }
    
    /* Remove any light backgrounds from sections on mobile */
    body.night-mode .modern-articles,
    body.night-mode .timeline-section,
    body.night-mode .designers-section,
    body.night-mode .infinite-scroll-section,
    body.night-mode .featured-section {
        background-color: transparent !important;
    }
}
/* ===== DARK MODE - ALL ICONS WHITE ===== */
body.night-mode i,
body.night-mode .bi,
body.night-mode .fas,
body.night-mode .far,
body.night-mode .fab,
body.night-mode .icon,
body.night-mode [class*="bi-"],
body.night-mode [class*="fa-"],
body.night-mode .section-title i,
body.night-mode .filter-group-header i,
body.night-mode .post-meta i,
body.night-mode .article-meta i,
body.night-mode .infinite-meta i,
body.night-mode .related-article-meta i,
body.night-mode .social-link i,
body.night-mode .mobile-header-icon i,
body.night-mode .nav-right i,
body.night-mode .search-icon,
body.night-mode .carousel-controls i,
body.night-mode .read-btn i,
body.night-mode .infinite-read-more i,
body.night-mode .view-all-btn i,
body.night-mode .btn i,
body.night-mode .reaction-btn i,
body.night-mode .tweet-stats i,
body.night-mode .comment-actions i,
body.night-mode .floating-btn i,
body.night-mode .mobile-search-icon,
body.night-mode .mobile-search-close i {
    color: #ffffff !important;
}

/* See More Articles link - white */
body.night-mode .see-more-btn,
body.night-mode .see-more-wrapper .see-more-btn,
body.night-mode a.see-more-btn,
body.night-mode .see-more-btn i,
body.night-mode .see-more-wrapper a {
    color: #ffffff !important;
    text-decoration-color: #ffffff !important;
}

/* See More Articles hover state - keep white or add blue accent */
body.night-mode .see-more-btn:hover,
body.night-mode .see-more-wrapper .see-more-btn:hover {
    color: #ffffff !important;
    opacity: 0.9;
    text-decoration-color: var(--accent-blue) !important;
}

/* Social media icons in mobile sidebar */
body.night-mode .sidebar .mobile-social-icon,
body.night-mode .sidebar .mobile-social-icon i {
    color: #ffffff !important;
    background-color: transparent !important;
}

body.night-mode .sidebar .mobile-social-icon:hover {
    background-color: var(--bg-hover) !important;
}

/* Night mode toggle icons - ensure they're white too */
body.night-mode .night-mode-btn i,
body.night-mode #nightModeToggle i,
body.night-mode #nightModeToggleMobile i {
    color: #ffffff !important;
}

/* Pagination icons */
body.night-mode .pagination-btn i,
body.night-mode .pagination i {
    color: #ffffff !important;
}

/* Close button in mobile search */
body.night-mode .mobile-search-close i {
    color: #ffffff !important;
}

/* Toast notification icon */
body.night-mode .toast i {
    color: #ffffff !important;
}

/* Share buttons */
body.night-mode .share-btn i,
body.night-mode .social-button i {
    color: #ffffff !important;
}

/* Comments section icons */
body.night-mode .comment-actions i,
body.night-mode .reply i {
    color: #ffffff !important;
}

/* Featured section icons */
body.night-mode .featured-meta i,
body.night-mode .featured-tags i {
    color: #ffffff !important;
}

/* Ensure any icon inside buttons is white */
body.night-mode button i,
body.night-mode .btn i,
body.night-mode a i {
    color: #ffffff !important;
}

/* Loading spinner icon */
body.night-mode .infinite-spinner i,
body.night-mode .loading-spinner i {
    color: #ffffff !important;
}

/* End message icon */
body.night-mode .infinite-end-message i {
    color: #4ade80 !important; /* Keep success icon green for contrast */
}

/* Active filter button icons - keep white */
body.night-mode .filter-btn.active i,
body.night-mode .filter-btn.active [class*="bi-"],
body.night-mode .filter-btn.active [class*="fa-"] {
    color: #ffffff !important;
}

/* Hover states - icons stay white */
body.night-mode .filter-btn:hover i,
body.night-mode .social-link:hover i,
body.night-mode .mobile-header-icon:hover i,
body.night-mode .nav-right a:hover i {
    color: #ffffff !important;
}

/* Mobile specific icon adjustments */
@media (max-width: 768px) {
    body.night-mode .mobile-header-icon i,
    body.night-mode .mobile-search-btn i,
    body.night-mode .sidebar .filter-group-header i,
    body.night-mode .sidebar .mobile-social-icon i {
        color: #ffffff !important;
    }
    
    /* See More Articles on mobile */
    body.night-mode .see-more-btn,
    body.night-mode .see-more-wrapper .see-more-btn {
        color: #ffffff !important;
    }
}
/* ===== DARK MODE - SIDEBAR ON PHONE & SEARCH BAR FIX ===== */

/* DESKTOP SEARCH BAR - Fix dark gray */
body.night-mode .search-container input,
body.night-mode .nav-center .search-container input,
body.night-mode input#searchInput,
body.night-mode input[name="s"] {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.night-mode .search-container input::placeholder,
body.night-mode input#searchInput::placeholder,
body.night-mode input[name="s"]::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.8;
}

body.night-mode .search-container input:focus,
body.night-mode input#searchInput:focus {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Search icon in search bar */
body.night-mode .search-container .search-icon,
body.night-mode .nav-center .search-icon {
    color: #ffffff !important;
}

/* PHONE SIDEBAR - Fix dark gray to match dark blue */
@media (max-width: 768px) {
    /* Sidebar container */
    body.night-mode .sidebar,
    body.night-mode #sidebar,
    body.night-mode .sidebar.visible,
    body.night-mode .sidebar.active {
        background-color: var(--bg-primary) !important;
        border-right-color: var(--border-color) !important;
    }
    
    /* Sidebar header */
    body.night-mode .sidebar .sidebar-header,
    body.night-mode .sidebar-header {
        background-color: transparent !important;
        border-bottom-color: var(--border-color) !important;
    }
    
    body.night-mode .sidebar .sidebar-title,
    body.night-mode .sidebar-title {
        color: var(--text-primary) !important;
    }
    
    /* Filter groups */
    body.night-mode .sidebar .filter-group {
        background-color: transparent !important;
        border-bottom-color: var(--border-color) !important;
    }
    
    /* Filter group headers */
    body.night-mode .sidebar .filter-group-header,
    body.night-mode .filter-group-header {
        background-color: transparent !important;
        border-bottom-color: var(--border-color) !important;
    }
    
    body.night-mode .sidebar .filter-group-header i,
    body.night-mode .filter-group-header i {
        color: #ffffff !important;
    }
    
    body.night-mode .sidebar .filter-group-header span,
    body.night-mode .filter-group-header span {
        color: var(--text-primary) !important;
    }
    
    /* Filter options container */
    body.night-mode .sidebar .filter-options,
    body.night-mode .filter-options {
        background-color: transparent !important;
    }
    
    /* Filter buttons */
    body.night-mode .sidebar .filter-btn,
    body.night-mode .filter-btn {
        background-color: transparent !important;
        color: var(--text-secondary) !important;
        border: none !important;
    }
    
    body.night-mode .sidebar .filter-btn:hover,
    body.night-mode .filter-btn:hover {
        background-color: var(--bg-hover) !important;
        color: var(--text-primary) !important;
    }
    
    body.night-mode .sidebar .filter-btn.active,
    body.night-mode .filter-btn.active {
        background-color: var(--bg-hover) !important;
        color: var(--accent-blue) !important;
        border-left: 2px solid var(--accent-blue) !important;
    }
    
    /* Filter button icons */
    body.night-mode .sidebar .filter-btn i,
    body.night-mode .filter-btn i {
        color: #ffffff !important;
    }
    
    /* Filter button images */
    body.night-mode .sidebar .filter-btn img,
    body.night-mode .filter-btn img {
        filter: brightness(0.9);
    }
    
    /* Social media section in sidebar */
    body.night-mode .sidebar .mobile-social-section,
    body.night-mode .mobile-social-section {
        background-color: transparent !important;
        border-bottom-color: var(--border-color) !important;
    }
    
    body.night-mode .sidebar .mobile-social-title,
    body.night-mode .mobile-social-title {
        color: var(--text-secondary) !important;
    }
    
    body.night-mode .sidebar .mobile-social-icon,
    body.night-mode .mobile-social-icon {
        background-color: var(--bg-hover) !important;
        color: #ffffff !important;
    }
    
    body.night-mode .sidebar .mobile-social-icon:hover,
    body.night-mode .mobile-social-icon:hover {
        background-color: var(--accent-blue) !important;
    }
    
    /* Sidebar overlay */
    body.night-mode .sidebar-overlay {
        background-color: rgba(0, 0, 0, 0.7) !important;
    }
}

/* Mobile search overlay - fix to dark blue */
@media (max-width: 768px) {
    body.night-mode .mobile-search-overlay,
    body.night-mode #mobileSearchOverlay {
        background-color: var(--bg-primary) !important;
        border-bottom-color: var(--border-color) !important;
    }
    
    body.night-mode .mobile-search-input,
    body.night-mode #mobileSearchInput {
        background-color: var(--bg-secondary) !important;
        color: var(--text-primary) !important;
        border-color: var(--border-color) !important;
    }
    
    body.night-mode .mobile-search-input::placeholder,
    body.night-mode #mobileSearchInput::placeholder {
        color: var(--text-secondary) !important;
    }
    
    body.night-mode .mobile-search-input:focus,
    body.night-mode #mobileSearchInput:focus {
        border-color: var(--accent-blue) !important;
    }
    
    body.night-mode .mobile-search-icon,
    body.night-mode .mobile-search-close i {
        color: #ffffff !important;
    }
}
/* ===== DESIGNER'S CORNER ON PHONE - FIX TO DARK BLUE ===== */
@media (max-width: 768px) {
    /* Designer's Corner section container */
    body.night-mode .designers-section,
    body.night-mode section.designers-section {
        background-color: transparent !important;
    }
    
    /* Designer cards */
    body.night-mode .designer-card,
    body.night-mode .designers-section .designer-card {
        background-color: var(--bg-primary) !important;
        border-color: var(--border-color) !important;
    }
    
    /* Designer card images */
    body.night-mode .designer-image,
    body.night-mode .designers-section .designer-image {
        background-color: var(--bg-secondary) !important;
    }
    
    /* Designer info container */
    body.night-mode .designer-info,
    body.night-mode .designers-section .designer-info {
        background-color: transparent !important;
    }
    
    /* Designer title */
    body.night-mode .designer-title,
    body.night-mode .designers-section .designer-title {
        color: var(--text-primary) !important;
    }
    
    /* Designer name */
    body.night-mode .designer-name,
    body.night-mode .designers-section .designer-name {
        color: var(--text-secondary) !important;
    }
}

/* ===== ARTICLE RIGHT CONTAINER (META, AUTHOR, SHARING) - FIX ON PC & PHONE ===== */

/* Desktop article sidebar */
body.night-mode .article-sidebar,
body.night-mode .article-sidebar .sidebar-inner,
body.night-mode .article-meta-container,
body.night-mode .article-sidebar .article-meta,
body.night-mode .article-sidebar .tags-section,
body.night-mode .article-sidebar .social-sharing,
body.night-mode .article-sidebar .author-bio,
body.night-mode .single-post .article-sidebar,
body.night-mode .single-post .sidebar-inner {
    background-color: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
}

/* Article meta text */
body.night-mode .article-sidebar .article-meta,
body.night-mode .article-sidebar .article-meta span,
body.night-mode .article-sidebar .article-meta i,
body.night-mode .article-sidebar .tags-section h4,
body.night-mode .article-sidebar .social-sharing h4,
body.night-mode .article-sidebar .author-bio h4 {
    color: var(--text-primary) !important;
}

body.night-mode .article-sidebar .article-meta .text-muted,
body.night-mode .article-sidebar .article-meta .date,
body.night-mode .article-sidebar .article-meta .author-name {
    color: var(--text-secondary) !important;
}

/* Article sidebar icons */
body.night-mode .article-sidebar i,
body.night-mode .article-sidebar .article-meta i,
body.night-mode .article-sidebar .tags-section i,
body.night-mode .article-sidebar .social-sharing i,
body.night-mode .article-sidebar .author-bio i {
    color: #ffffff !important;
}

/* Tags in article sidebar */
body.night-mode .article-sidebar .tags-container .article-tag,
body.night-mode .article-sidebar .article-tag {
    background-color: var(--bg-hover) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

/* Social buttons in sidebar */
body.night-mode .article-sidebar .social-button,
body.night-mode .article-sidebar .social-sharing .social-button {
    background-color: var(--bg-hover) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

body.night-mode .article-sidebar .social-button:hover,
body.night-mode .article-sidebar .social-sharing .social-button:hover {
    background-color: var(--accent-blue) !important;
    color: #ffffff !important;
}

/* Phone specific fixes for article sidebar */
@media (max-width: 768px) {
    body.night-mode .article-sidebar,
    body.night-mode .article-sidebar .sidebar-inner,
    body.night-mode .single-post .article-sidebar,
    body.night-mode .single-post .sidebar-inner {
        background-color: var(--bg-primary) !important;
        border-color: var(--border-color) !important;
        border-top: 1px solid var(--border-color) !important;
    }
}

/* ===== BIG CONTAINER BEHIND ARTICLE - LIGHTER BLUE SHADE ON PC ===== */

/* Main article container on PC */
@media (min-width: 769px) {
    body.night-mode .article-content-container,
    body.night-mode .single-post .article-content-container,
    body.night-mode .post .article-content-container,
    body.night-mode .hentry .article-content-container {
        background-color: #13263e !important; /* Lighter blue shade */
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* Article content wrapper inside */
    body.night-mode .article-content-wrapper,
    body.night-mode .article-content,
    body.night-mode .entry-content {
        background-color: transparent !important;
    }
    
    /* Article title */
    body.night-mode .article-title,
    body.night-mode .entry-title {
        color: var(--text-primary) !important;
    }
    
    /* Article meta above title */
    body.night-mode .article-meta-top,
    body.night-mode .entry-meta {
        color: var(--text-secondary) !important;
    }
    
    /* Article body text */
    body.night-mode .article-content p,
    body.night-mode .entry-content p {
        color: var(--text-primary) !important;
    }
    
    /* Article headings */
    body.night-mode .article-content h2,
    body.night-mode .article-content h3,
    body.night-mode .article-content h4,
    body.night-mode .entry-content h2,
    body.night-mode .entry-content h3,
    body.night-mode .entry-content h4 {
        color: var(--text-primary) !important;
    }
    
    /* Featured image in article */
    body.night-mode .hero-image,
    body.night-mode .article-hero-image,
    body.night-mode .post-thumbnail {
        background-color: var(--bg-secondary) !important;
    }
}

/* Also fix the article container on phone to match */
@media (max-width: 768px) {
    body.night-mode .article-content-container,
    body.night-mode .single-post .article-content-container {
        background-color: var(--bg-primary) !important;
    }
}
/* ===== BIG CONTAINER BEHIND ARTICLE - MEDIUM BLUE SHADE ON PC ===== */
@media (min-width: 769px) {
    body.night-mode .article-content-container,
    body.night-mode .single-post .article-content-container,
    body.night-mode .post .article-content-container,
    body.night-mode .hentry .article-content-container {
        background-color: #1a2b40 !important; /* Medium blue shade - darker than before */
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }
}

/* ===== DESIGNER'S CORNER ON PC - FIX TO DARK BLUE ===== */
body.night-mode .designers-section,
body.night-mode section.designers-section {
    background-color: transparent !important;
}

body.night-mode .designer-card,
body.night-mode .designers-section .designer-card {
    background-color: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
}

body.night-mode .designer-image,
body.night-mode .designers-section .designer-image {
    background-color: var(--bg-secondary) !important;
}

body.night-mode .designer-info,
body.night-mode .designers-section .designer-info {
    background-color: transparent !important;
}

body.night-mode .designer-title,
body.night-mode .designers-section .designer-title {
    color: var(--text-primary) !important;
}

body.night-mode .designer-name,
body.night-mode .designers-section .designer-name {
    color: var(--text-secondary) !important;
}

/* ===== ARTICLE SIDEBAR - SHARE TEXT & ICONS WHITE ON PHONE ===== */
@media (max-width: 768px) {
    /* Share heading text */
    body.night-mode .article-sidebar .social-sharing h4,
    body.night-mode .article-sidebar .share-title,
    body.night-mode .article-sidebar .social-sharing span,
    body.night-mode .article-sidebar .social-sharing .share-text {
        color: #ffffff !important;
    }
    
    /* All icons in article sidebar */
    body.night-mode .article-sidebar i,
    body.night-mode .article-sidebar .article-meta i,
    body.night-mode .article-sidebar .tags-section i,
    body.night-mode .article-sidebar .social-sharing i,
    body.night-mode .article-sidebar .author-bio i,
    body.night-mode .article-sidebar .share-btn i,
    body.night-mode .article-sidebar .social-button i,
    body.night-mode .article-sidebar .reply i,
    body.night-mode .article-sidebar .comment-actions i {
        color: #ffffff !important;
    }
    
    /* Social buttons themselves */
    body.night-mode .article-sidebar .social-button,
    body.night-mode .article-sidebar .social-sharing .social-button {
        background-color: var(--bg-hover) !important;
        color: #ffffff !important;
        border: 1px solid var(--border-color) !important;
    }
    
    body.night-mode .article-sidebar .social-button span,
    body.night-mode .article-sidebar .social-sharing .social-button span {
        color: #ffffff !important;
    }
    
    /* Tags in sidebar */
    body.night-mode .article-sidebar .tags-section h4,
    body.night-mode .article-sidebar .tags-section .tags-title {
        color: #ffffff !important;
    }
    
    body.night-mode .article-sidebar .article-tag,
    body.night-mode .article-sidebar .tags-container .article-tag {
        background-color: var(--bg-hover) !important;
        color: #ffffff !important;
        border: 1px solid var(--border-color) !important;
    }
    
    /* Author bio section */
    body.night-mode .article-sidebar .author-bio h4,
    body.night-mode .article-sidebar .author-bio .author-name,
    body.night-mode .article-sidebar .author-bio span {
        color: #ffffff !important;
    }
}

/* ===== MORE ARTICLES CARDS - FIX THE GRAY LINE ===== */

/* The line/border in More Articles cards */
body.night-mode .infinite-meta,
body.night-mode .infinite-article-card .infinite-meta {
    border-top-color: var(--border-color) !important;
}

/* Any other borders in the cards */
body.night-mode .infinite-article-card,
body.night-mode .infinite-article-link {
    border-color: var(--border-color) !important;
}

/* The divider line between meta items if any */
body.night-mode .infinite-meta span + span::before,
body.night-mode .infinite-meta .separator {
    color: var(--border-color) !important;
}

/* Card borders */
body.night-mode .infinite-article-card {
    border: 1px solid var(--border-color) !important;
}

/* Image wrapper border if any */
body.night-mode .infinite-image-wrapper {
    border-bottom: 1px solid var(--border-color) !important;
}

/* ===== ADDITIONAL PHONE FIXES FOR ARTICLE SIDEBAR ===== */
@media (max-width: 768px) {
    /* Ensure the sidebar container is dark blue */
    body.night-mode .article-sidebar,
    body.night-mode .article-sidebar .sidebar-inner {
        background-color: var(--bg-primary) !important;
    }
    
    /* All text in sidebar should be white or light */
    body.night-mode .article-sidebar,
    body.night-mode .article-sidebar .article-meta,
    body.night-mode .article-sidebar .article-meta span,
    body.night-mode .article-sidebar .tags-section,
    body.night-mode .article-sidebar .social-sharing,
    body.night-mode .article-sidebar .author-bio,
    body.night-mode .article-sidebar p,
    body.night-mode .article-sidebar span:not(.article-tag) {
        color: #ffffff !important;
    }
    
    /* Meta icons */
    body.night-mode .article-sidebar .article-meta i {
        color: #ffffff !important;
    }
}
/* ===== BIG CONTAINER BEHIND ARTICLE - CUSTOM COLOR #0c172a ON PC ===== */
@media (min-width: 769px) {
    body.night-mode .article-content-container,
    body.night-mode .single-post .article-content-container,
    body.night-mode .post .article-content-container,
    body.night-mode .hentry .article-content-container {
        background-color: #0c172a !important; /* Your specified color */
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }
}
/* ===== READ MORE BUTTON - DARK BLUE WITH WHITE TEXT ===== */
body.night-mode .read-more-btn,
body.night-mode .read-btn,
body.night-mode .btn-read-more,
body.night-mode .article-card .read-more-btn,
body.night-mode .modern-card .read-btn,
body.night-mode .infinite-article-card .infinite-read-more,
body.night-mode .related-article-card .read-more-btn,
body.night-mode .post .read-more-btn {
    background-color: #0c172a !important; /* Dark blue background */
    color: #ffffff !important; /* White text */
    border: 1px solid var(--border-color) !important;
}

body.night-mode .read-more-btn i,
body.night-mode .read-btn i,
body.night-mode .btn-read-more i,
body.night-mode .infinite-read-more i {
    color: #ffffff !important; /* White icon */
}

body.night-mode .read-more-btn:hover,
body.night-mode .read-btn:hover,
body.night-mode .btn-read-more:hover,
body.night-mode .infinite-read-more:hover {
    background-color: #1a2b40 !important; /* Lighter blue on hover */
    color: #ffffff !important;
}

/* ===== BACK TO ARTICLES BUTTON - WHITE WITH DARK BLUE TEXT ===== */
body.night-mode .back-to-articles,
body.night-mode .btn-back,
body.night-mode .back-btn,
body.night-mode .article-navigation .back-to-articles,
body.night-mode .post-navigation .back-to-articles,
body.night-mode .nav-previous a,
body.night-mode .nav-next a,
body.night-mode .prev-article,
body.night-mode .next-article,
body.night-mode .article-actions .btn-secondary {
    background-color: #ffffff !important; /* White background */
    color: #0c172a !important; /* Dark blue text */
    border: 1px solid var(--border-color) !important;
}

body.night-mode .back-to-articles i,
body.night-mode .btn-back i,
body.night-mode .back-btn i,
body.night-mode .article-navigation i,
body.night-mode .nav-previous a i,
body.night-mode .nav-next a i,
body.night-mode .prev-article i,
body.night-mode .next-article i,
body.night-mode .article-actions .btn-secondary i {
    color: #0c172a !important; /* Dark blue icon */
}

body.night-mode .back-to-articles:hover,
body.night-mode .btn-back:hover,
body.night-mode .back-btn:hover,
body.night-mode .nav-previous a:hover,
body.night-mode .nav-next a:hover,
body.night-mode .prev-article:hover,
body.night-mode .next-article:hover,
body.night-mode .article-actions .btn-secondary:hover {
    background-color: #f0f4ff !important; /* Very light blue on hover */
    color: #0c172a !important;
}

/* ===== BACK TO TOP BUTTON - DARK BLUE WITH WHITE TEXT ===== */
body.night-mode .back-to-top,
body.night-mode .btn-top,
body.night-mode .floating-btn,
body.night-mode #back-to-top,
body.night-mode .to-top-btn {
    background-color: #0c172a !important; /* Dark blue background */
    color: #ffffff !important; /* White text */
    border: 1px solid var(--border-color) !important;
}

body.night-mode .back-to-top i,
body.night-mode .btn-top i,
body.night-mode .floating-btn i,
body.night-mode #back-to-top i,
body.night-mode .to-top-btn i {
    color: #ffffff !important; /* White icon */
}

body.night-mode .back-to-top:hover,
body.night-mode .btn-top:hover,
body.night-mode .floating-btn:hover,
body.night-mode #back-to-top:hover,
body.night-mode .to-top-btn:hover {
    background-color: #1a2b40 !important; /* Lighter blue on hover */
    color: #ffffff !important;
}

/* ===== PHONE SPECIFIC ADJUSTMENTS ===== */
@media (max-width: 768px) {
    /* Read More button on phone */
    body.night-mode .read-more-btn,
    body.night-mode .read-btn {
        background-color: #0c172a !important;
        color: #ffffff !important;
    }
    
    /* Back to Articles button on phone */
    body.night-mode .back-to-articles,
    body.night-mode .btn-back,
    body.night-mode .article-actions .btn-secondary {
        background-color: #ffffff !important;
        color: #0c172a !important;
    }
    
    body.night-mode .back-to-articles i,
    body.night-mode .btn-back i,
    body.night-mode .article-actions .btn-secondary i {
        color: #0c172a !important;
    }
    
    /* Back to Top button on phone */
    body.night-mode .back-to-top,
    body.night-mode .floating-btn {
        background-color: #0c172a !important;
        color: #ffffff !important;
    }
}
/* ===== BACK TO TOP BUTTON - DARK BLUE WITH WHITE TEXT ===== */
body.night-mode .back-to-top,
body.night-mode .btn-top,
body.night-mode .floating-btn,
body.night-mode #back-to-top,
body.night-mode .to-top-btn,
body.night-mode .scroll-top,
body.night-mode .go-to-top {
    background-color: #0c172a !important; /* Dark blue background */
    color: #ffffff !important; /* White text */
    border: 1px solid var(--border-color) !important;
}

body.night-mode .back-to-top i,
body.night-mode .btn-top i,
body.night-mode .floating-btn i,
body.night-mode #back-to-top i,
body.night-mode .to-top-btn i,
body.night-mode .scroll-top i,
body.night-mode .go-to-top i {
    color: #ffffff !important; /* White icon */
}

body.night-mode .back-to-top:hover,
body.night-mode .btn-top:hover,
body.night-mode .floating-btn:hover,
body.night-mode #back-to-top:hover,
body.night-mode .to-top-btn:hover,
body.night-mode .scroll-top:hover,
body.night-mode .go-to-top:hover {
    background-color: #1a2b40 !important; /* Lighter blue on hover */
    color: #ffffff !important;
}

/* ===== TAGS ON LATEST READS - FIX GRAY BACKGROUND ===== */

/* Post tags on modern cards (Latest Reads) */
body.night-mode .post-tags,
body.night-mode .modern-card .post-tags,
body.night-mode .article-card .post-tags {
    background-color: transparent !important;
}

body.night-mode .tag-badge,
body.night-mode .post-tags .tag-badge,
body.night-mode .modern-card .tag-badge,
body.night-mode .article-card .tag-badge,
body.night-mode .article-tag,
body.night-mode .tags-container .article-tag,
body.night-mode .modern-card .article-tag {
    background-color: #0c172a !important; /* Dark blue background */
    color: #ffffff !important; /* White text */
    border: 1px solid var(--border-color) !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
}

body.night-mode .tag-badge:hover,
body.night-mode .article-tag:hover {
    background-color: #1a2b40 !important; /* Lighter blue on hover */
    color: #ffffff !important;
}

/* Tags on infinite scroll cards (More Articles) */
body.night-mode .infinite-article-card .post-tags,
body.night-mode .infinite-article-card .tag-badge,
body.night-mode .infinite-category {
    background-color: #0c172a !important;
    color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
}

/* Tags on related articles */
body.night-mode .related-article-card .article-tag,
body.night-mode .related-article-card .tag-badge {
    background-color: #0c172a !important;
    color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
}

/* Tags on featured leaks */
body.night-mode .featured-tags .tag-badge,
body.night-mode .featured-slide .tag-badge {
    background-color: #0c172a !important;
    color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
}

/* Tags in article sidebar */
body.night-mode .article-sidebar .article-tag,
body.night-mode .article-sidebar .tag-badge {
    background-color: #0c172a !important;
    color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
}

/* ===== PHONE SPECIFIC ADJUSTMENTS ===== */
@media (max-width: 768px) {
    /* Back to Top button on phone */
    body.night-mode .back-to-top,
    body.night-mode .floating-btn,
    body.night-mode #back-to-top {
        background-color: #0c172a !important;
        color: #ffffff !important;
    }
    
    /* Tags on Latest Reads - phone */
    body.night-mode .tag-badge,
    body.night-mode .post-tags .tag-badge,
    body.night-mode .modern-card .tag-badge,
    body.night-mode .article-tag {
        background-color: #0c172a !important;
        color: #ffffff !important;
        border: 1px solid var(--border-color) !important;
    }
}
/* ===== NATIONAL KITS SEARCH RESULT - KIT CARDS ONLY ===== */
.team-kits-box {
    margin: 0 0 3.5rem 0;
    padding: 0 0 2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    max-width: 100%;
    animation: fadeIn 0.4s ease forwards;
}

.team-kits-header {
    margin-bottom: 3rem; /* Increased from 2rem for more space */
}

.team-kits-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    line-height: 1.2;
}

.team-kits-season {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-kits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

/* KIT CARD - ONLY for image and title */
.team-kit-card {
    display: block;
    text-decoration: none;
    width: 260px;
    background: white;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.team-kit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* Image container */
.team-kit-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    background: #f8fafc;
    display: block;
    border-bottom: 1px solid var(--card-border);
}

/* Title inside card - bold and centered */
.team-kit-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    padding: 1rem 0.5rem;
    margin: 0;
    background: white;
}

/* ===== DARK MODE ===== */
body.night-mode .team-kits-box {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .team-kits-title {
    color: var(--text-primary);
}

body.night-mode .team-kits-season {
    color: var(--accent-blue);
}

body.night-mode .team-kit-card {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

body.night-mode .team-kit-card img {
    background: var(--bg-secondary);
    border-bottom-color: var(--border-color);
}

body.night-mode .team-kit-label {
    background: var(--bg-primary);
    color: var(--text-primary);
}

body.night-mode .team-kit-card:hover {
    border-color: var(--accent-blue);
}

/* ===== RESPONSIVE WITH SLIDING CARDS ON PHONE ===== */
@media (max-width: 768px) {
    .team-kits-header {
        margin-bottom: 2rem; /* Slightly reduced on mobile but still spacious */
        padding: 0 1rem;
    }
    
    .team-kits-title {
        font-size: 2rem;
    }
    
    /* Horizontal scroll on mobile */
    .team-kits-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1.25rem;
        padding: 0.5rem 1rem 1.5rem 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        margin: 0;
    }
    
    .team-kit-card {
        flex: 0 0 220px; /* Fixed width for sliding */
        scroll-snap-align: start;
        width: auto;
    }
    
    .team-kit-card img {
        height: 240px;
    }
    
    /* Custom scrollbar */
    .team-kits-grid::-webkit-scrollbar {
        height: 4px;
    }
    
    .team-kits-grid::-webkit-scrollbar-track {
        background: var(--bg-lighter);
        border-radius: 10px;
    }
    
    .team-kits-grid::-webkit-scrollbar-thumb {
        background: var(--primary-light);
        border-radius: 10px;
    }
    
    .team-kits-grid::-webkit-scrollbar-thumb:hover {
        background: var(--primary);
    }
}

@media (max-width: 480px) {
    .team-kits-header {
        margin-bottom: 1.75rem;
        padding: 0 1rem;
    }
    
    .team-kits-title {
        font-size: 1.75rem;
    }
    
    .team-kits-season {
        font-size: 0.85rem;
    }
    
    .team-kits-grid {
        gap: 1rem;
        padding: 0.25rem 1rem 1.25rem 1rem;
    }
    
    .team-kit-card {
        flex: 0 0 180px; /* Slightly smaller cards on very small phones */
    }
    
    .team-kit-card img {
        height: 200px;
    }
    
    .team-kit-label {
        font-size: 0.9rem;
        padding: 0.75rem 0.5rem;
    }
}

/* ===== GRID VIEW FOR DESKTOP (if you want multiple rows) ===== */
.team-kits-grid.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.team-kits-grid.grid-view .team-kit-card {
    width: 100%;
}
/* ===== TEAM LOGO WITH TITLE ===== */
.team-title-with-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.team-kits-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.2;
}

/* Adjust header to accommodate logo */
.team-kits-header {
    margin-bottom: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-logo {
        width: 40px;
        height: 40px;
    }
    
    .team-title-with-logo {
        gap: 0.75rem;
    }
    
    .team-kits-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .team-logo {
        width: 32px;
        height: 32px;
    }
    
    .team-title-with-logo {
        gap: 0.5rem;
    }
    
    .team-kits-title {
        font-size: 1.75rem;
    }
}

/* Dark mode */
body.night-mode .team-logo {
    filter: brightness(0.9);
}
/* ===== NATIONAL KITS SEARCH RESULT - PROFESSIONAL EDITORIAL ===== */
.team-kits-box {
    margin: 0 0 2.5rem 0; /* Reduced bottom margin */
    padding: 0 0 2rem 0;
    border-bottom: 2px solid var(--primary-light);
    max-width: 100%;
    animation: fadeIn 0.4s ease forwards;
    position: relative;
}

/* Removed the small gradient line */

.team-kits-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.team-title-with-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.team-kits-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.2;
}

.team-kits-season {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.team-kits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

/* KIT CARD - ONLY for image and title */
.team-kit-card {
    display: block;
    text-decoration: none;
    width: 260px;
    background: white;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.team-kit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* Image container */
.team-kit-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    background: #f8fafc;
    display: block;
    border-bottom: 1px solid var(--card-border);
    transition: transform 0.5s ease;
}

.team-kit-card:hover img {
    transform: scale(1.03);
}

/* Title inside card - bold and centered */
.team-kit-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    padding: 1rem 0.5rem;
    margin: 0;
    background: white;
    letter-spacing: 0.3px;
}

/* ===== DARK MODE ===== */
body.night-mode .team-kits-box {
    border-bottom-color: rgba(59, 130, 246, 0.2);
}

body.night-mode .team-kits-header {
    border-bottom-color: var(--border-color);
}

body.night-mode .team-logo {
    filter: brightness(0.9);
}

body.night-mode .team-kits-title {
    color: var(--text-primary);
}

body.night-mode .team-kits-season {
    background: var(--bg-hover);
    color: var(--accent-blue);
}

body.night-mode .team-kit-card {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

body.night-mode .team-kit-card img {
    background: var(--bg-secondary);
    border-bottom-color: var(--border-color);
}

body.night-mode .team-kit-label {
    background: var(--bg-primary);
    color: var(--text-primary);
}

body.night-mode .team-kit-card:hover {
    border-color: var(--accent-blue);
}

/* ===== RESPONSIVE WITH SLIDING CARDS ON PHONE ===== */
@media (max-width: 768px) {
    .team-kits-box {
        margin-top: 0; /* Remove top margin */
        margin-bottom: 2rem;
        padding-top: 0; /* Remove top padding */
    }
    
    .team-kits-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem; /* Reduced gap */
        margin-bottom: 1.5rem;
        padding: 0 1rem 1rem 1rem;
    }
    
    .team-title-with-logo {
        width: 100%;
        gap: 0.75rem;
    }
    
    .team-logo {
        width: 36px;
        height: 36px;
    }
    
    .team-kits-title {
        font-size: 1.75rem;
    }
    
    .team-kits-season {
        align-self: flex-start;
        font-size: 0.85rem;
        padding: 0.3rem 1rem;
    }
    
    /* Horizontal scroll on mobile */
    .team-kits-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1.25rem;
        padding: 0.5rem 1rem 1.5rem 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        margin: 0;
    }
    
    .team-kit-card {
        flex: 0 0 220px;
        scroll-snap-align: start;
        width: auto;
    }
    
    .team-kit-card img {
        height: 240px;
    }
    
    /* Custom scrollbar */
    .team-kits-grid::-webkit-scrollbar {
        height: 4px;
    }
    
    .team-kits-grid::-webkit-scrollbar-track {
        background: var(--bg-lighter);
        border-radius: 10px;
    }
    
    .team-kits-grid::-webkit-scrollbar-thumb {
        background: var(--primary-light);
        border-radius: 10px;
    }
    
    .team-kits-grid::-webkit-scrollbar-thumb:hover {
        background: var(--primary);
    }
}

@media (max-width: 480px) {
    .team-kits-box {
        margin-bottom: 1.5rem;
    }
    
    .team-kits-header {
        padding: 0 1rem 0.75rem 1rem;
        margin-bottom: 1rem;
        gap: 0.5rem;
    }
    
    .team-logo {
        width: 32px;
        height: 32px;
    }
    
    .team-kits-title {
        font-size: 1.5rem;
    }
    
    .team-kits-season {
        font-size: 0.8rem;
        padding: 0.25rem 0.9rem;
    }
    
    .team-kits-grid {
        gap: 1rem;
        padding: 0.25rem 1rem 1.25rem 1rem;
    }
    
    .team-kit-card {
        flex: 0 0 180px;
    }
    
    .team-kit-card img {
        height: 200px;
    }
    
    .team-kit-label {
        font-size: 0.9rem;
        padding: 0.75rem 0.5rem;
    }
}

/* ===== GRID VIEW FOR DESKTOP ===== */
.team-kits-grid.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.team-kits-grid.grid-view .team-kit-card {
    width: 100%;
}
/* LIGHT MODE - Gray borders */
.team-kits-box {
    border-bottom: 2px solid #e2e8f0 !important; /* Light gray */
}

.team-kits-header {
    border-bottom: 1px solid #e2e8f0 !important; /* Light gray */
}

.team-kit-card {
    border: 1px solid #e2e8f0 !important; /* Light gray */
}

.team-kit-card:hover {
    border-color: #cbd5e0 !important; /* Medium gray on hover */
}

.team-kit-card img {
    border-bottom: 1px solid #e2e8f0 !important; /* Light gray */
}

/* DARK MODE - Gray borders */
body.night-mode .team-kits-box {
    border-bottom-color: #2d3748 !important; /* Dark gray */
}

body.night-mode .team-kits-header {
    border-bottom-color: #2d3748 !important; /* Dark gray */
}

body.night-mode .team-kit-card {
    border-color: #2d3748 !important; /* Dark gray */
}

body.night-mode .team-kit-card:hover {
    border-color: #4a5568 !important; /* Lighter gray on hover */
}

body.night-mode .team-kit-card img {
    border-bottom-color: #2d3748 !important; /* Dark gray */
}
/* ===== PHONE ONLY - HIDE "Latest Reads" TITLE AND MODERNIZE CARDS ===== */
@media (max-width: 768px) {
    /* Hide the Latest Reads title and subtitle on phone */
    .modern-articles-header {
        display: none !important;
    }
    
    /* Remove top margin from articles grid since header is hidden */
    .modern-grid {
        margin-top: 0 !important;
    }
}

/* ===== MODERNIZED ARTICLE CARDS - LESS ROUNDED, MORE PROFESSIONAL ===== */
.modern-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px !important; /* Reduced from var(--radius-xl) which was 16px */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.modern-image {
    width: 100%;
    height: 220px; /* Slightly reduced height for better proportion */
    object-fit: cover;
    display: block;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.modern-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.2rem;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.text-group {
    margin-bottom: 1rem;
}

.modern-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: white;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.modern-author {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.modern-author::before {
    content: '✎';
    font-size: 0.8rem;
    opacity: 0.7;
}

.read-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.3px;
}

.read-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.read-btn i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.read-btn:hover i {
    transform: translateX(4px);
}

/* Tags styling - cleaner and more minimal */
.post-tags {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    z-index: 10;
}

.tag-badge {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #111;
    padding: 0.2rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 20px;
    letter-spacing: 0.3px;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.tag-badge:hover {
    background: var(--primary);
    color: white;
}

/* ===== DARK MODE ADJUSTMENTS ===== */
body.night-mode .modern-card {
    background: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.night-mode .tag-badge {
    background: rgba(20, 30, 50, 0.9);
    color: #e0e0e0;
    border: 1px solid var(--border-color);
}

body.night-mode .tag-badge:hover {
    background: var(--primary);
    color: white;
}

/* ===== INFINITE SCROLL CARDS - ALSO LESS ROUNDED ===== */
.infinite-article-card {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.infinite-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.infinite-image-wrapper {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.infinite-image {
    transition: transform 0.5s ease;
}

.infinite-article-card:hover .infinite-image {
    transform: scale(1.03);
}

/* ===== PHONE SPECIFIC CARD ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .modern-grid {
        gap: 1.2rem;
    }
    
    .modern-image {
        height: 200px;
    }
    
    .modern-title {
        font-size: 1.2rem;
    }
    
    .read-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}
/* ===== Kits Breakdown Section ===== */

.kits-breakdown-section{
  margin:3rem 0;
  padding:2rem;
  background:var(--card-bg);
  border:1px solid var(--card-border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
}

/* Tabs */
.kits-categories{
  display:flex;
  gap:0.8rem;
  margin-bottom:1.8rem;
}

.kits-tab{
  padding:0.6rem 1.2rem;
  border-radius:var(--radius-full);
  border:1px solid var(--card-border);
  background:white;
  font-weight:600;
  font-size:0.9rem;
  cursor:pointer;
  transition:var(--transition);
  color:var(--text-dark);
}

.kits-tab:hover{
  background:var(--primary-light);
  border-color:var(--primary);
}

.kits-tab.active{
  background:var(--primary);
  color:white;
  border-color:var(--primary);
  box-shadow:var(--shadow-sm);
}

/* Content */
.kits-content{
  animation:fadeIn .4s ease;
}

.kits-tab-content{
  display:none;
}

.kits-tab-content.active{
  display:block;
}

/* League buttons */
.kits-leagues{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:1rem;
}

.kits-leagues a{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0.9rem 1rem;
  border-radius:var(--radius-md);
  background:var(--bg-lighter);
  border:1px solid var(--card-border);
  font-weight:600;
  color:var(--text-dark);
  text-decoration:none;
  transition:var(--transition);
  box-shadow:var(--shadow-sm);
}

.kits-leagues a:hover{
  background:var(--primary-light);
  border-color:var(--primary);
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}
/* ===== Kits Breakdown Archive ===== */

.kits-archive-page{
  width:100%;
}

.kits-archive-header{
  margin:2rem 0 2.5rem;
  padding:2rem;
  background:var(--card-bg);
  border:1px solid var(--card-border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
}

.kits-archive-meta{
  display:flex;
  flex-wrap:wrap;
  gap:0.75rem;
  margin:1rem 0 1.2rem;
}

.kits-archive-badge,
.kits-archive-league{
  display:inline-flex;
  align-items:center;
  padding:0.5rem 0.9rem;
  border-radius:var(--radius-full);
  font-size:0.85rem;
  font-weight:600;
  box-shadow:var(--shadow-sm);
}

.kits-archive-badge{
  background:var(--primary);
  color:#fff;
}

.kits-archive-league{
  background:var(--primary-light);
  color:var(--primary-dark);
}

.kits-team-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:1.5rem;
}

.kits-team-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:1.5rem;
  background:#fff;
  border:1px solid var(--card-border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
  text-decoration:none;
  transition:var(--transition);
}

.kits-team-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow-md);
  border-color:var(--primary);
  text-decoration:none;
}

.kits-team-logo-wrap{
  width:110px;
  height:110px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:1rem;
}

.kits-team-logo{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

.kits-team-logo-placeholder{
  width:100px;
  height:100px;
  border-radius:50%;
  background:var(--bg-lighter);
  color:var(--text-gray);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:2rem;
  border:1px solid var(--card-border);
}

.kits-team-name{
  font-size:1.1rem;
  margin-bottom:0.4rem;
  color:var(--text-dark);
}

.kits-team-season{
  font-size:0.9rem;
  color:var(--text-gray);
  margin:0;
}

.kits-archive-back{
  margin-top:1rem;
}

@media (max-width:768px){
  .kits-archive-header{
    padding:1.5rem;
  }

  .kits-team-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:1rem;
  }

  .kits-team-card{
    padding:1.2rem;
  }

  .kits-team-logo-wrap{
    width:90px;
    height:90px;
  }
}

@media (max-width:480px){
  .kits-team-grid{
    grid-template-columns:1fr;
  }
}
/* ===== Single Kit Page ===== */

.single-kit-page{
  width:100%;
}

.single-kit-header{
  margin:2rem 0;
  padding:2rem;
  background:var(--card-bg);
  border:1px solid var(--card-border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
}

.single-kit-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:1.5rem;
  flex-wrap:wrap;
}

.single-kit-brand{
  display:flex;
  align-items:center;
  gap:1.25rem;
}

.single-kit-logo{
  width:90px;
  height:90px;
  object-fit:contain;
}

.single-kit-title{
  margin-bottom:0.8rem;
}

.single-kit-meta{
  display:flex;
  flex-wrap:wrap;
  gap:0.75rem;
}

.single-kit-badge,
.single-kit-league,
.single-kit-season{
  display:inline-flex;
  align-items:center;
  padding:0.45rem 0.9rem;
  border-radius:var(--radius-full);
  font-size:0.85rem;
  font-weight:600;
  box-shadow:var(--shadow-sm);
}

.single-kit-badge{
  background:var(--primary);
  color:#fff;
}

.single-kit-league{
  background:var(--primary-light);
  color:var(--primary-dark);
}

.single-kit-season{
  background:var(--accent-light);
  color:var(--accent);
}

.single-kit-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:1.5rem;
  margin-bottom:2rem;
}

.single-kit-card{
  background:#fff;
  border:1px solid var(--card-border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
  padding:1.5rem;
}

.single-kit-card h2{
  margin-bottom:1rem;
  color:var(--text-dark);
}

.single-kit-image-wrap{
  background:var(--bg-lighter);
  border:1px solid var(--card-border);
  border-radius:var(--radius-md);
  padding:1rem;
}

.single-kit-image{
  width:100%;
  max-height:520px;
  object-fit:contain;
  margin:0 auto;
}

.single-kit-tweet-link{
  margin-top:1rem;
}

@media (max-width:768px){
  .single-kit-header{
    padding:1.5rem;
  }

  .single-kit-brand{
    align-items:flex-start;
  }

  .single-kit-logo{
    width:72px;
    height:72px;
  }

  .single-kit-grid{
    grid-template-columns:1fr;
  }
}
.single-kit-embed{
  margin-top:1.25rem;
  padding-top:1rem;
  border-top:1px solid var(--card-border);
}

.single-kit-embed iframe{
  max-width:100% !important;
}

.single-kit-fallback-link{
  margin-top:1rem;
}
/* ===== Kits Breakdown Redesign ===== */
.kits-breakdown-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.section-header-wrapper {
    margin-bottom: 2rem;
}

.section-header-wrapper .section-title {
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Tabs */
.kits-categories {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.kits-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--card-border);
    background: transparent;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

.kits-tab i {
    font-size: 1rem;
    color: var(--text-gray);
    transition: var(--transition);
}

.kits-tab:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.kits-tab:hover i {
    color: var(--primary);
}

.kits-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.kits-tab.active i {
    color: white;
}

/* League Circles Scroll */
.kits-leagues-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0 1.5rem 0;
    margin: 0 -0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.kits-leagues-scroll::-webkit-scrollbar {
    height: 4px;
}

.kits-leagues-scroll::-webkit-scrollbar-track {
    background: var(--bg-lighter);
    border-radius: 10px;
}

.kits-leagues-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.kits-leagues-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.kits-leagues-container {
    display: flex;
    gap: 1.5rem;
    padding: 0 0.5rem;
    min-width: min-content;
}

.kit-league-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 100px;
    transition: var(--transition);
}

.kit-league-item:hover {
    transform: translateY(-5px);
}

.kit-league-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.kit-league-item:hover .kit-league-circle {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.kit-league-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.kit-league-circle-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 2rem;
}

.kit-league-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.3;
    max-width: 100px;
}

.no-leagues {
    text-align: center;
    color: var(--text-gray);
    padding: 2rem;
}

.kits-view-all {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.view-all-link:hover {
    gap: 0.8rem;
    color: var(--primary-dark);
}

/* ===== Kits Archive Page ===== */
.kits-archive-main {
    flex: 1;
    padding: 2rem;
}

.kits-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.kits-breadcrumbs a {
    color: var(--text-gray);
    text-decoration: none;
}

.kits-breadcrumbs a:hover {
    color: var(--primary);
}

.kits-breadcrumbs i {
    font-size: 0.7rem;
    color: var(--text-gray);
}

.kits-breadcrumbs span {
    color: var(--text-dark);
    font-weight: 500;
}

.kits-archive-title-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.kits-archive-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.kits-league-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--primary);
}

.kits-category-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
}

.kits-category-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    transition: var(--transition);
}

.kits-category-tab i {
    font-size: 1rem;
}

.kits-category-tab:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.kits-category-tab.active {
    background: var(--primary);
    color: white;
}

.kits-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.kits-team-card {
    text-decoration: none;
    background: white;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.kits-team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.kits-team-card-inner {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    gap: 1rem;
}

.kits-team-logo-wrapper {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kits-team-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.kits-team-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 1.5rem;
}

.kits-team-info {
    flex: 1;
}

.kits-team-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    color: var(--text-dark);
}

.kits-team-season {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.3rem;
}

.kits-team-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.kits-kit-count i {
    color: var(--primary);
    margin-right: 0.3rem;
}

.kits-team-arrow {
    color: var(--text-gray);
    transition: var(--transition);
}

.kits-team-card:hover .kits-team-arrow {
    color: var(--primary);
    transform: translateX(5px);
}

.kits-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
}

.no-results-icon {
    font-size: 4rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.kits-no-results h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.kits-no-results p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* ===== Single Kit Page ===== */
.single-kit-main {
    flex: 1;
    padding: 2rem;
}

.kit-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    flex-wrap: wrap;
}

.kit-breadcrumbs a {
    color: var(--text-gray);
    text-decoration: none;
}

.kit-breadcrumbs a:hover {
    color: var(--primary);
}

.kit-breadcrumbs i {
    font-size: 0.7rem;
    color: var(--text-gray);
}

.kit-breadcrumbs span {
    color: var(--text-dark);
    font-weight: 500;
}

.kit-team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.kit-team-branding {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.kit-team-logo-large {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kit-team-logo-large img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.kit-team-title-section {
    max-width: 500px;
}

.kit-team-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    line-height: 1.2;
}

.kit-team-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.kit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--bg-lighter);
    color: var(--text-dark);
    border: 1px solid var(--card-border);
}

.kit-badge i {
    color: var(--primary);
    font-size: 0.8rem;
}

.kit-category-badge {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.kit-category-badge i {
    color: var(--primary);
}

.kit-league-badge {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}

.kit-league-badge i {
    color: var(--accent);
}

.kit-season-badge {
    background: var(--bg-lighter);
    color: var(--text-dark);
}

.kit-header-actions .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.kit-header-actions .btn-back:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.kits-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.kit-showcase-card {
    background: white;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.kit-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.kit-card-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--card-border);
    background: var(--bg-lighter);
}

.kit-card-header h2 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.kit-card-header h2 i {
    color: var(--primary);
}

.kit-image-wrapper {
    padding: 2rem;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.kit-image {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.kit-showcase-card:hover .kit-image {
    transform: scale(1.02);
}

.kit-tweet-embed {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--card-border);
}

.kit-tweet-fallback {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

.btn-tweet {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #1DA1F2;
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-tweet:hover {
    background: #0c85d0;
    transform: translateY(-2px);
}

.no-kits-message {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.no-kits-message i {
    font-size: 4rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.no-kits-message h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.no-kits-message p {
    color: var(--text-gray);
}

.kit-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.kit-nav-prev,
.kit-nav-next {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    max-width: 45%;
}

.kit-nav-prev:hover,
.kit-nav-next:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.kit-nav-prev span,
.kit-nav-next span {
    display: flex;
    flex-direction: column;
}

.kit-nav-prev small,
.kit-nav-next small {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.kit-nav-prev strong,
.kit-nav-next strong {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.kit-nav-prev i,
.kit-nav-next i {
    color: var(--primary);
    font-size: 1rem;
}

/* Dark mode adjustments */
body.night-mode .kit-league-circle {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

body.night-mode .kit-league-name {
    color: var(--text-primary);
}

body.night-mode .kit-badge {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.night-mode .kit-team-header,
body.night-mode .kit-showcase-card,
body.night-mode .kits-team-card,
body.night-mode .kit-nav-prev,
body.night-mode .kit-nav-next {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

body.night-mode .kit-card-header {
    background: var(--bg-hover);
    border-bottom-color: var(--border-color);
}

body.night-mode .kit-card-header h2 {
    color: var(--text-primary);
}

body.night-mode .kit-image-wrapper {
    background: var(--bg-primary);
}

body.night-mode .kit-team-title {
    color: var(--text-primary);
}

body.night-mode .kits-breadcrumbs span {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .kits-archive-title-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .kits-teams-grid {
        grid-template-columns: 1fr;
    }

    .kit-team-branding {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .kit-team-title {
        font-size: 2rem;
    }

    .kit-team-badges {
        justify-content: center;
    }

    .kits-showcase {
        grid-template-columns: 1fr;
    }

    .kit-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .kit-nav-prev,
    .kit-nav-next {
        max-width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .kits-archive-title {
        font-size: 1.8rem;
    }

    .kit-team-title {
        font-size: 1.8rem;
    }

    .kit-team-logo-large {
        width: 100px;
        height: 100px;
    }
}
/* ===== Kits Breakdown - Professional ===== */
.kits-breakdown {
    margin: 0 0 4rem 0;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #e9edf4;
    border-radius: 24px;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.06);
}

/* Center the header */
.modern-articles-header {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.modern-articles-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.modern-articles-header .subtitle {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Tabs */
.kits-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9edf4;
}

.kits-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 40px;
    color: #6b7a8f;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kits-tab-btn i {
    font-size: 1rem;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.kits-tab-btn:hover {
    color: #2563eb;
    background: #f1f5f9;
}

.kits-tab-btn:hover i {
    color: #2563eb;
}

.kits-tab-btn.active {
    color: #2563eb;
    background: #e9efff;
}

.kits-tab-btn.active i {
    color: #2563eb;
}

/* Panels */
.kits-tab-panel {
    display: none;
}

.kits-tab-panel.active {
    display: block;
}

/* Scroll area */
.kits-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0 1rem 0;
    margin: 0 -0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.kits-scroll::-webkit-scrollbar {
    height: 4px;
}

.kits-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.kits-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.kits-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.kits-track {
    display: flex;
    gap: 1.5rem;
    padding: 0 0.5rem;
    min-width: min-content;
}

/* League items - BIGGER CIRCLES */
.kits-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.kits-item:hover {
    transform: translateY(-4px);
}

.kits-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e9edf4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    padding: 1.2rem;
}

.kits-item:hover .kits-icon {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.2);
}

.kits-icon img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.kits-item:hover .kits-icon img {
    opacity: 1;
}

.kits-icon i {
    font-size: 2.5rem;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.kits-item:hover .kits-icon i {
    color: #2563eb;
}

.kits-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    text-align: center;
    line-height: 1.3;
    transition: color 0.2s ease;
    max-width: 120px;
}

.kits-item:hover .kits-name {
    color: #1e293b;
}

.kits-empty {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ===== Night Mode ===== */
body.night-mode .kits-breakdown {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4);
}

body.night-mode .kits-tabs {
    border-bottom-color: #1e293b;
}

body.night-mode .kits-tab-btn {
    color: #94a3b8;
}

body.night-mode .kits-tab-btn i {
    color: #475569;
}

body.night-mode .kits-tab-btn:hover {
    color: white;
    background: #1e293b;
}

body.night-mode .kits-tab-btn:hover i {
    color: #94a3b8;
}

body.night-mode .kits-tab-btn.active {
    color: white;
    background: #2563eb;
}

body.night-mode .kits-tab-btn.active i {
    color: white;
}

body.night-mode .kits-icon {
    background: #1a2639;
    border-color: #2d3a4f;
}

body.night-mode .kits-item:hover .kits-icon {
    border-color: #3b82f6;
    background: #1e293b;
    box-shadow: 0 8px 20px -8px rgba(59, 130, 246, 0.3);
}

/* Make logos white in dark mode */
body.night-mode .kits-icon img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

body.night-mode .kits-item:hover .kits-icon img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

body.night-mode .kits-icon i {
    color: #ffffff;
}

body.night-mode .kits-item:hover .kits-icon i {
    color: #ffffff;
}

body.night-mode .kits-name {
    color: #94a3b8;
}

body.night-mode .kits-item:hover .kits-name {
    color: #e2e8f0;
}

body.night-mode .kits-scroll::-webkit-scrollbar-track {
    background: #1a2639;
}

body.night-mode .kits-scroll::-webkit-scrollbar-thumb {
    background: #2d3a4f;
}

body.night-mode .kits-scroll::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* ===== Phone Specific ===== */
@media (max-width: 768px) {
    /* Ensure headers are visible on phone */
    .modern-articles-header {
        display: block !important;
        text-align: center;
        padding: 0 1rem;
        margin-bottom: 1.5rem !important;
    }
    
    .modern-articles-header h2 {
        font-size: 1.8rem;
    }
    
    .modern-articles-header .subtitle {
        font-size: 0.95rem;
    }
    
    .kits-breakdown {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .kits-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .kits-tab-btn {
        flex: 1;
        justify-content: center;
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Bigger circles on phone */
    .kits-item {
        width: 110px;
    }
    
    .kits-icon {
        width: 90px;
        height: 90px;
        padding: 1.1rem;
    }
    
    .kits-name {
        font-size: 0.85rem;
        max-width: 110px;
    }
    
    .kits-track {
        gap: 1.2rem;
    }
}

@media (max-width: 480px) {
    .modern-articles-header h2 {
        font-size: 1.6rem;
    }
    
    .modern-articles-header .subtitle {
        font-size: 0.9rem;
    }
    
    .kits-tab-btn {
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .kits-tab-btn i {
        font-size: 0.9rem;
    }
    
    /* Even bigger circles on very small phones */
    .kits-item {
        width: 100px;
    }
    
    .kits-icon {
        width: 85px;
        height: 85px;
        padding: 1rem;
    }
    
    .kits-name {
        font-size: 0.8rem;
        max-width: 100px;
    }
    
    .kits-track {
        gap: 1rem;
    }
}
/* ===== Kits Archive Page ===== */
.kits-archive-main {
    flex: 1;
    padding: 2rem;
}

/* Breadcrumbs */
.kits-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: #6b7a8f;
    flex-wrap: wrap;
}

.kits-breadcrumbs a {
    color: #6b7a8f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kits-breadcrumbs a:hover {
    color: #2563eb;
}

.kits-breadcrumbs i {
    font-size: 0.7rem;
    color: #94a3b8;
}

.kits-breadcrumbs span {
    color: #1e293b;
    font-weight: 500;
}

/* Archive Header */
.kits-archive-header {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #e9edf4;
    border-radius: 24px;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.06);
}

.kits-archive-title-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.kits-archive-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #2563eb 0%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.kits-league-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: #e9efff;
    color: #2563eb;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Category Tabs */
.kits-category-tabs {
    display: flex;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9edf4;
}

.kits-category-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    text-decoration: none;
    color: #6b7a8f;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.kits-category-tab i {
    font-size: 1rem;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.kits-category-tab:hover {
    color: #2563eb;
    background: #f1f5f9;
}

.kits-category-tab:hover i {
    color: #2563eb;
}

.kits-category-tab.active {
    color: #2563eb;
    background: #e9efff;
}

.kits-category-tab.active i {
    color: #2563eb;
}

/* Teams Grid */
.kits-teams-section {
    margin-top: 2rem;
}

.kits-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Team Cards - Matching the circle design */
.kits-team-card {
    display: block;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e9edf4;
    border-radius: 20px;
    padding: 1.2rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.kits-team-card:hover {
    transform: translateY(-4px);
    border-color: #2563eb;
    box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.15);
}

.kits-team-card-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Team Logo - Circle style */
.kits-team-logo-wrapper {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e9edf4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    transition: all 0.2s ease;
}

.kits-team-card:hover .kits-team-logo-wrapper {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.2);
}

.kits-team-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.kits-team-logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.8rem;
}

/* Team Info */
.kits-team-info {
    flex: 1;
    min-width: 0; /* Prevents text overflow */
}

.kits-team-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.2rem 0;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.kits-team-card:hover .kits-team-name {
    color: #2563eb;
}

.kits-team-season {
    font-size: 0.85rem;
    color: #6b7a8f;
    margin: 0;
}

/* Team Arrow - hidden on mobile */
.kits-team-arrow {
    color: #94a3b8;
    font-size: 1rem;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.kits-team-card:hover .kits-team-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #2563eb;
}

/* No Results */
.kits-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border: 1px solid #e9edf4;
    border-radius: 24px;
}

.no-results-icon {
    font-size: 4rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.kits-no-results h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.kits-no-results p {
    color: #6b7a8f;
    margin-bottom: 2rem;
}

.kits-no-results .btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #2563eb;
    color: white;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.kits-no-results .btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px #2563eb;
}

/* ===== Night Mode ===== */
body.night-mode .kits-archive-header,
body.night-mode .kits-team-card,
body.night-mode .kits-no-results {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4);
}

body.night-mode .kits-breadcrumbs {
    color: #94a3b8;
}

body.night-mode .kits-breadcrumbs a {
    color: #94a3b8;
}

body.night-mode .kits-breadcrumbs a:hover {
    color: #3b82f6;
}

body.night-mode .kits-breadcrumbs i {
    color: #475569;
}

body.night-mode .kits-breadcrumbs span {
    color: #e2e8f0;
}

body.night-mode .kits-league-badge {
    background: #1e293b;
    color: #3b82f6;
    border-color: #2d3a4f;
}

body.night-mode .kits-category-tabs {
    border-bottom-color: #1e293b;
}

body.night-mode .kits-category-tab {
    color: #94a3b8;
}

body.night-mode .kits-category-tab i {
    color: #475569;
}

body.night-mode .kits-category-tab:hover {
    color: white;
    background: #1e293b;
}

body.night-mode .kits-category-tab:hover i {
    color: #94a3b8;
}

body.night-mode .kits-category-tab.active {
    color: white;
    background: #2563eb;
}

body.night-mode .kits-category-tab.active i {
    color: white;
}

body.night-mode .kits-team-logo-wrapper {
    background: #1a2639;
    border-color: #2d3a4f;
}

body.night-mode .kits-team-card:hover .kits-team-logo-wrapper {
    border-color: #3b82f6;
    background: #1e293b;
    box-shadow: 0 8px 20px -8px rgba(59, 130, 246, 0.3);
}

/* Club logos keep their original colors in dark mode - NO FILTER */
body.night-mode .kits-team-logo {
    /* No filter - keeps original colors */
}

body.night-mode .kits-team-logo-placeholder i {
    color: #94a3b8;
}

body.night-mode .kits-team-name {
    color: #e2e8f0;
}

body.night-mode .kits-team-card:hover .kits-team-name {
    color: #3b82f6;
}

body.night-mode .kits-team-season {
    color: #94a3b8;
}

body.night-mode .kits-team-arrow {
    color: #475569;
}

body.night-mode .kits-team-card:hover .kits-team-arrow {
    color: #3b82f6;
}

body.night-mode .no-results-icon {
    color: #475569;
}

body.night-mode .kits-no-results h3 {
    color: #e2e8f0;
}

body.night-mode .kits-no-results p {
    color: #94a3b8;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .kits-archive-main {
        padding: 1rem;
    }
    
    .kits-archive-header {
        padding: 1.5rem;
    }
    
    .kits-archive-title-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .kits-archive-title {
        font-size: 1.8rem;
    }
    
    .kits-category-tabs {
        width: 100%;
    }
    
    .kits-category-tab {
        flex: 1;
        justify-content: center;
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .kits-teams-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .kits-team-card {
        padding: 1rem;
    }
    
    .kits-team-logo-wrapper {
        width: 60px;
        height: 60px;
        padding: 0.7rem;
    }
    
    .kits-team-name {
        font-size: 1rem;
    }
    
    .kits-team-season {
        font-size: 0.8rem;
    }
    
    /* Hide arrow on mobile */
    .kits-team-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .kits-archive-title {
        font-size: 1.6rem;
    }
    
    .kits-team-logo-wrapper {
        width: 55px;
        height: 55px;
        padding: 0.6rem;
    }
    
    .kits-team-name {
        font-size: 0.95rem;
    }
}

/* ===== Kit Cards - Search.php Style ===== */
.kit-showcase-card {
    background: #ffffff;
    border: 1px solid #e9edf4;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.kit-showcase-card:hover {
    transform: translateY(-4px);
    border-color: #2563eb;
    box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.15);
}

.kit-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9edf4;
    background: #f8fafc;
}

.kit-card-header h2 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e293b;
}

.kit-card-header h2 i {
    color: #2563eb;
}

.kit-image-link {
    display: block;
    text-decoration: none;
    position: relative;
}

.kit-image-wrapper {
    padding: 2rem;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.kit-image {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.kit-image-link:hover .kit-image {
    transform: scale(1.03);
}

.kit-label {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    padding: 1rem 0.5rem;
    margin: 0;
    background: #ffffff;
    border-top: 1px solid #e9edf4;
    letter-spacing: 0.3px;
}

/* Tweet Embed Styles */
.kit-tweet-embed {
    padding: 1.5rem;
    border-top: 1px solid #e9edf4;
    background: #f8fafc;
}

.kit-tweet-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 500;
}

.kit-tweet-header i {
    color: #000000;
    font-size: 1.2rem;
}

.twitter-embed-wrapper {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* X (Twitter) icon */
.fa-x-twitter:before {
    content: "\e61b";
    font-family: "Font Awesome 6 Brands";
}

/* Dark Mode Adjustments */
body.night-mode .kit-showcase-card {
    background: #0f172a;
    border-color: #1e293b;
}

body.night-mode .kit-card-header {
    background: #1a2639;
    border-bottom-color: #1e293b;
}

body.night-mode .kit-card-header h2 {
    color: #e2e8f0;
}

body.night-mode .kit-image-wrapper {
    background: #0f172a;
}

body.night-mode .kit-label {
    background: #0f172a;
    color: #e2e8f0;
    border-top-color: #1e293b;
}

body.night-mode .kit-tweet-embed {
    background: #1a2639;
    border-top-color: #1e293b;
}

body.night-mode .kit-tweet-header {
    color: #e2e8f0;
}

body.night-mode .kit-tweet-header i {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .kit-image-wrapper {
        min-height: 250px;
        padding: 1.5rem;
    }
    
    .kit-image {
        max-height: 280px;
    }
    
    .kit-label {
        font-size: 0.95rem;
        padding: 0.8rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .kit-image-wrapper {
        min-height: 200px;
        padding: 1rem;
    }
    
    .kit-image {
        max-height: 220px;
    }
    
    .kit-card-header {
        padding: 0.8rem 1rem;
    }
    
    .kit-card-header h2 {
        font-size: 1.1rem;
    }
    
    .kit-tweet-embed {
        padding: 1rem;
    }
}
/* ===== X (Twitter) Button Styles ===== */
.kit-tweet-button-wrapper {
    padding: 1.5rem;
    border-top: 1px solid #e9edf4;
    background: #f8fafc;
    text-align: center;
}

.kit-x-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.8rem;
    background: #000000;
    color: #ffffff;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    min-width: 180px;
}

.kit-x-button i {
    font-size: 1.2rem;
    color: #ffffff;
}

.kit-x-button:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-decoration: none;
}

/* Dark mode adjustments */
body.night-mode .kit-tweet-button-wrapper {
    background: #1a2639;
    border-top-color: #1e293b;
}

body.night-mode .kit-x-button {
    background: #ffffff;
    color: #000000;
}

body.night-mode .kit-x-button i {
    color: #000000;
}

body.night-mode .kit-x-button:hover {
    background: #e5e5e5;
}

/* Responsive */
@media (max-width: 768px) {
    .kit-x-button {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .kit-tweet-button-wrapper {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .kit-x-button {
        min-width: auto;
        padding: 0.7rem 1.2rem;
    }
}
/* ===== Fixed Kit Images - Remove White Background ===== */
.kit-image-wrapper {
    padding: 2rem;
    background: transparent !important; /* Force transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.kit-image {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    transition: transform 0.3s ease;
    mix-blend-mode: multiply; /* Helps remove white backgrounds */
}

/* Dark mode specific fix for images */
body.night-mode .kit-image {
    filter: brightness(0.9) contrast(1.1); /* Makes images pop in dark mode */
    mix-blend-mode: normal; /* Reset blend mode for dark mode */
}

/* For images with white background, this helps */
body.night-mode .kit-image[src*=".jpg"],
body.night-mode .kit-image[src*=".png"] {
    background: transparent !important;
}

/* ===== Fixed X Button with Bootstrap Icons ===== */
.kit-tweet-button-wrapper {
    padding: 1.5rem;
    border-top: 1px solid #e9edf4;
    background: #f8fafc;
    text-align: center;
}

.kit-x-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.8rem;
    background: #000000;
    color: #ffffff !important; /* Force white text */
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    min-width: 180px;
}

/* Bootstrap Icons X logo */
.kit-x-button i {
    font-size: 1.2rem;
    color: #ffffff !important; /* Force white icon */
}

/* If using Bootstrap Icons specifically */
.kit-x-button .bi-twitter-x {
    font-size: 1.2rem;
    color: #ffffff !important;
}

.kit-x-button:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
    text-decoration: none;
}

/* Dark mode button - completely different to ensure visibility */
body.night-mode .kit-tweet-button-wrapper {
    background: #1a2639;
    border-top-color: #1e293b;
}

body.night-mode .kit-x-button {
    background: #ffffff !important; /* White background */
    color: #000000 !important; /* Black text */
    border: 1px solid #333;
}

body.night-mode .kit-x-button i,
body.night-mode .kit-x-button .bi-twitter-x {
    color: #000000 !important; /* Black icon */
}

body.night-mode .kit-x-button:hover {
    background: #e5e5e5 !important;
    color: #000000 !important;
}

/* ===== Fixed Back to Kits Button ===== */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: #ffffff !important; /* Force white text */
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-back i,
.btn-back .bi-arrow-left {
    color: #ffffff !important; /* Force white icon */
}

.btn-back:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: #ffffff !important;
}

/* Dark mode back button */
body.night-mode .btn-back {
    background: #ffffff !important; /* White background */
    color: #000000 !important; /* Black text */
}

body.night-mode .btn-back i,
body.night-mode .btn-back .bi-arrow-left {
    color: #000000 !important; /* Black icon */
}

body.night-mode .btn-back:hover {
    background: #e5e5e5 !important;
    color: #000000 !important;
}

/* ===== Kit Card Fixes ===== */
.kit-showcase-card {
    background: #ffffff;
    border: 1px solid #e9edf4;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.kit-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9edf4;
    background: #f8fafc;
}

.kit-card-header h2 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e293b;
}

.kit-card-header h2 i,
.kit-card-header h2 .bi {
    color: #2563eb;
}

/* Dark mode card fixes */
body.night-mode .kit-showcase-card {
    background: #0f172a;
    border-color: #1e293b;
}

body.night-mode .kit-card-header {
    background: #1a2639;
    border-bottom-color: #1e293b;
}

body.night-mode .kit-card-header h2 {
    color: #e2e8f0;
}

body.night-mode .kit-card-header h2 i,
body.night-mode .kit-card-header h2 .bi {
    color: #3b82f6;
}

/* ===== Responsive fixes ===== */
@media (max-width: 768px) {
    .kit-image-wrapper {
        min-height: 250px;
        padding: 1.5rem;
    }
    
    .kit-image {
        max-height: 280px;
    }
    
    .kit-x-button {
        width: 100%;
        padding: 0.7rem 1rem;
    }
    
    .btn-back {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .kit-image-wrapper {
        min-height: 200px;
        padding: 1rem;
    }
    
    .kit-image {
        max-height: 220px;
    }
    
    .kit-card-header {
        padding: 0.8rem 1rem;
    }
    
    .kit-card-header h2 {
        font-size: 1.1rem;
    }
}
/* ===== FIX FOR BUTTON TEXT COLORS IN DARK MODE ===== */

/* Fix for X button text and icon */
body.night-mode .kit-x-button,
body.night-mode .kit-x-button span,
body.night-mode .kit-x-button i,
body.night-mode .kit-x-button .bi,
body.night-mode .kit-x-button .bi-twitter-x {
    color: #000000 !important; /* Black text and icon */
}

/* Fix for Back to Kits button text and icon */
body.night-mode .btn-back,
body.night-mode .btn-back span,
body.night-mode .btn-back i,
body.night-mode .btn-back .bi,
body.night-mode .btn-back .bi-arrow-left {
    color: #000000 !important; /* Black text and icon */
}

/* Ensure button backgrounds are white in dark mode */
body.night-mode .kit-x-button {
    background: #ffffff !important;
    border: 1px solid #333 !important;
}

body.night-mode .btn-back {
    background: #ffffff !important;
    border: 1px solid #333 !important;
}

/* Hover states */
body.night-mode .kit-x-button:hover,
body.night-mode .kit-x-button:hover span,
body.night-mode .kit-x-button:hover i,
body.night-mode .kit-x-button:hover .bi {
    color: #000000 !important;
    background: #e5e5e5 !important;
}

body.night-mode .btn-back:hover,
body.night-mode .btn-back:hover span,
body.night-mode .btn-back:hover i,
body.night-mode .btn-back:hover .bi {
    color: #000000 !important;
    background: #e5e5e5 !important;
}
/* =============================================================
   WORLD CUP 2026 — SECTION STYLES
   Append to the end of style.css
   ============================================================= */

/* ── Outer wrapper ─────────────────────────────────────────── */
.wc2026-wrapper {
    margin: 2rem 0 2.5rem;
}

/* ── Section header ────────────────────────────────────────── */
.wc2026-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 0 2px;
}

.wc2026-eyebrow {
    display: block;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c8102e;
    margin-bottom: 3px;
}

.wc2026-title {
    margin: 0 0 4px;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 0.35em;
    /* override the global h1 gradient */
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: unset !important;
}

.wc2026-title-world {
    color: var(--text-dark);
}

.wc2026-title-year {
    color: #c8102e;
    font-size: 0.72em;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.wc2026-subtitle {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-gray);
    letter-spacing: 0.03em;
}

/* Host nation flags top-right */
.wc2026-host-flags {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wc2026-host-flags img {
    width: 38px;
    height: 25px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    display: block;
}

/* ── Group navigation pills ────────────────────────────────── */
.wc2026-group-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 1.25rem;
}

.wc2026-nav-pill {
    padding: 3px 11px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    background: var(--card-bg);
    color: var(--text-dark);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    line-height: 1.8;
}

.wc2026-nav-pill:hover {
    background: #c8102e;
    color: #fff !important;
    border-color: #c8102e;
    text-decoration: none !important;
    transform: translateY(-1px);
}

/* ── Groups grid: 4 per row ────────────────────────────────── */
.wc2026-groups-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* ── Single group card ─────────────────────────────────────── */
.wc2026-group-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.wc2026-group-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Card header — red band */
.wc2026-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    background: linear-gradient(135deg, #c8102e 0%, #a00d26 100%);
}

.wc2026-group-letter {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

.wc2026-team-count {
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.04em;
}

/* ── Team list ─────────────────────────────────────────────── */
.wc2026-team-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wc2026-team-row {
    border-bottom: 1px solid var(--card-border);
    transition: background 0.15s ease;
}

.wc2026-team-row:last-child {
    border-bottom: none;
}

.wc2026-team-row:hover {
    background: var(--card-hover);
}

.wc2026-team-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    text-decoration: none !important;
    gap: 6px;
    cursor: pointer;
}

.wc2026-team-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1;
}

/* ── Flag / crest ──────────────────────────────────────────── */
.wc2026-crest-wrap {
    width: 30px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc2026-crest {
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: block;
}

.wc2026-crest-placeholder {
    width: 30px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-hover);
    border-radius: 2px;
    font-size: 0.65rem;
    color: var(--text-gray);
}

/* ── Team name ─────────────────────────────────────────────── */
.wc2026-team-name {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s;
}

.wc2026-team-row:hover .wc2026-team-name {
    color: var(--primary);
}

/* ── HOST badge ────────────────────────────────────────────── */
.wc2026-host-badge {
    display: inline-block;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    background: #c8102e;
    color: #fff;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
    flex-shrink: 0;
    line-height: 1.6;
}

/* ── Kit maker logo ────────────────────────────────────────── */
.wc2026-brand-wrap {
    flex-shrink: 0;
    width: 30px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.wc2026-brand-logo {
    max-width: 30px;
    max-height: 18px;
    object-fit: contain;
    opacity: 0.45;
    transition: opacity 0.15s;
    display: block;
}

.wc2026-team-row:hover .wc2026-brand-logo {
    opacity: 0.85;
}

/* ── Empty state ───────────────────────────────────────────── */
.wc2026-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-gray);
    background: var(--card-bg);
    border: 1px dashed var(--card-border);
    border-radius: var(--radius-lg);
}

.wc2026-empty i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.4;
}

.wc2026-empty p {
    font-size: 0.85rem;
    margin: 0;
}

/* =============================================================
   NIGHT MODE
   ============================================================= */
body.night-mode .wc2026-title-world {
    color: #f1f5f9;
}

body.night-mode .wc2026-subtitle {
    color: #94a3b8;
}

body.night-mode .wc2026-host-flags img {
    border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .wc2026-nav-pill {
    background: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}

body.night-mode .wc2026-nav-pill:hover {
    background: #c8102e;
    color: #fff !important;
    border-color: #c8102e;
}

body.night-mode .wc2026-group-card {
    background: #0f172a;
    border-color: #1e293b;
}

body.night-mode .wc2026-group-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

body.night-mode .wc2026-team-row {
    border-bottom-color: #1e293b;
}

body.night-mode .wc2026-team-row:hover {
    background: #1e293b;
}

body.night-mode .wc2026-team-name {
    color: #e2e8f0;
}

body.night-mode .wc2026-team-row:hover .wc2026-team-name {
    color: #60a5fa;
}

body.night-mode .wc2026-crest {
    border-color: rgba(255, 255, 255, 0.06);
}

body.night-mode .wc2026-crest-placeholder {
    background: #1e293b;
    color: #64748b;
}

body.night-mode .wc2026-brand-logo {
    /* invert dark logos so they show on dark bg */
    filter: invert(1) brightness(1.6);
    opacity: 0.4;
}

body.night-mode .wc2026-team-row:hover .wc2026-brand-logo {
    opacity: 0.8;
}

body.night-mode .wc2026-empty {
    background: #0f172a;
    border-color: #1e293b;
    color: #64748b;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* 3 columns on medium screens */
@media (max-width: 1200px) {
    .wc2026-groups-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2 columns on tablet */
@media (max-width: 860px) {
    .wc2026-groups-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .wc2026-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* 2 columns on mobile (stays readable) */
@media (max-width: 540px) {
    .wc2026-groups-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .wc2026-team-name {
        font-size: 0.7rem;
    }

    .wc2026-group-nav {
        gap: 4px;
    }

    .wc2026-nav-pill {
        font-size: 0.65rem;
        padding: 2px 9px;
    }
}
/* =============================================================
   WC2026 — SIZE FIX PATCH
   Paste this at the very end of style.css
   (after the existing WC2026 block you already added)
   ============================================================= */

/* ── Bigger flag / crest ───────────────────────────────────── */
.wc2026-crest-wrap {
    width: 42px;
    height: 28px;
}

.wc2026-crest {
    width: 42px;
    height: 28px;
    object-fit: cover;
    border-radius: 3px;
}

.wc2026-crest-placeholder {
    width: 42px;
    height: 28px;
    font-size: 0.8rem;
}

/* ── Bigger kit maker logo ─────────────────────────────────── */
.wc2026-brand-wrap {
    width: 42px;
    height: 26px;
}

.wc2026-brand-logo {
    max-width: 42px;
    max-height: 26px;
}

/* ── Slightly more padding per row so it breathes ─────────── */
.wc2026-team-link {
    padding: 10px 14px;
}

/* ── Slightly bigger team name text ───────────────────────── */
.wc2026-team-name {
    font-size: 0.82rem;
}
/* =============================================================
   WC2026 — CREST FIT FIX
   Paste at the very end of style.css
   ============================================================= */

.wc2026-crest {
    width: 38px;
    height: 28px;
    object-fit: contain;  /* show full flag, no cropping */
    border: none;         /* remove border that looks odd with contain */
    border-radius: 2px;
    background: transparent;
}

.wc2026-crest-wrap {
    width: 38px;
    height: 28px;
    flex-shrink: 0;
}

/* night mode — slight bg so transparent flags still read */
body.night-mode .wc2026-crest {
    background: transparent;
}
/* =============================================================
   WORLD CUP 2026 — CORRECTED FONTS + CLEAN STYLE
   Delete ALL previous wc2026 CSS blocks then paste this at end
   ============================================================= */

/* ── Font declarations ─────────────────────────────────────── */
@font-face {
    font-family: 'FIFA26';
    src: url('assets/fonts/fifa-26.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FWC2026NormalRegular';
    src: url('assets/fonts/FWC2026-NormalRegular.77c3c249.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FWC2026UltraBlack';
    src: url('assets/fonts/FWC2026-UltraCondensedBlack.8e6ba053.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ── Outer wrapper ─────────────────────────────────────────── */
.wc2026-wrapper {
    margin: 2rem 0 2.5rem;
}

/* ── Section header ─────────────────────────────────────────── */
.wc2026-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    /* NO border-bottom — removed */
}

.wc2026-eyebrow {
    display: block;
    font-family: 'FWC2026NormalRegular', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 4px;
}

/* FIFA-26 font — only for "World Cup 2026" */
.wc2026-title {
    font-family: 'FIFA26', sans-serif !important;
    font-weight: normal !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    line-height: 1 !important;
    text-transform: uppercase;
    margin: 0 0 6px !important;
    letter-spacing: -1px;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: unset !important;
}

.wc2026-title-world {
    color: var(--text-dark);
}

.wc2026-title-year {
    color: #1a3c6e;
}

body.night-mode .wc2026-title-world { color: #f0f0f0; }
body.night-mode .wc2026-title-year  { color: #4a90d9; }

.wc2026-subtitle {
    font-family: 'FWC2026NormalRegular', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-gray);
    margin: 0;
}

/* We Are 26 badge */
.wc2026-we-are {
    font-family: 'FWC2026UltraBlack', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    background: #1a3c6e;
    padding: 3px 10px;
    border-radius: 3px;
    display: inline-block;
    margin-top: 8px;
}

body.night-mode .wc2026-we-are {
    background: #2a5fa8;
}

/* Host flags */
.wc2026-host-flags {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wc2026-host-flags img {
    width: 42px;
    height: 28px;
    object-fit: contain;
    border-radius: 3px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    display: block;
}

/* ── Group nav pills ───────────────────────────────────────── */
.wc2026-group-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 1.25rem;
}

.wc2026-nav-pill {
    padding: 4px 13px;
    border-radius: var(--radius-full);
    font-family: 'FWC2026UltraBlack', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    background: var(--card-bg);
    color: var(--text-dark);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    line-height: 1.8;
}

.wc2026-nav-pill:hover {
    background: #1a3c6e;
    color: #fff !important;
    border-color: #1a3c6e;
    text-decoration: none !important;
    transform: translateY(-1px);
}

body.night-mode .wc2026-nav-pill {
    background: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}

body.night-mode .wc2026-nav-pill:hover {
    background: #2a5fa8;
    border-color: #2a5fa8;
    color: #fff !important;
}

/* ── Groups grid: 4 per row ────────────────────────────────── */
.wc2026-groups-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* ── Single group card ─────────────────────────────────────── */
.wc2026-group-card {
    background: #ffffff;
    border: 1px solid #dde1e9;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wc2026-group-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Dark card header */
.wc2026-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 13px;
    background: #1a1a2e;
}

.wc2026-group-letter {
    font-family: 'FWC2026UltraBlack', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
}

.wc2026-team-count {
    font-family: 'FWC2026NormalRegular', sans-serif;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── Team list ─────────────────────────────────────────────── */
.wc2026-team-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #ffffff;
}

.wc2026-team-row {
    border-bottom: 1px solid #eef0f4;
    transition: background 0.15s ease;
}

.wc2026-team-row:last-child {
    border-bottom: none;
}

.wc2026-team-row:hover {
    background: #f0f4ff;
}

.wc2026-team-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    text-decoration: none !important;
    gap: 6px;
}

.wc2026-team-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

/* Flag */
.wc2026-crest-wrap {
    width: 34px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc2026-crest {
    width: 34px;
    height: 24px;
    object-fit: contain;
    border-radius: 2px;
    display: block;
}

.wc2026-crest-placeholder {
    width: 34px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 2px;
    font-size: 0.7rem;
    color: #999;
}

/* Team name — FWC2026 Normal Regular, bigger */
.wc2026-team-name {
    font-family: 'FWC2026NormalRegular', sans-serif;
    font-weight: 400;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}

.wc2026-team-row:hover .wc2026-team-name {
    color: #1a3c6e;
}

/* HOST badge */
.wc2026-host-badge {
    font-family: 'FWC2026UltraBlack', sans-serif;
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    background: #1a3c6e;
    color: #fff;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    vertical-align: middle;
    flex-shrink: 0;
    line-height: 1.7;
}

/* Kit maker logo */
.wc2026-brand-wrap {
    flex-shrink: 0;
    width: 32px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.wc2026-brand-logo {
    max-width: 32px;
    max-height: 20px;
    object-fit: contain;
    opacity: 0.3;
    transition: opacity 0.15s;
    display: block;
}

.wc2026-team-row:hover .wc2026-brand-logo {
    opacity: 0.7;
}

/* ── Empty state ───────────────────────────────────────────── */
.wc2026-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-gray);
    background: var(--card-bg);
    border: 1px dashed var(--card-border);
    border-radius: var(--radius-lg);
    font-family: 'FWC2026NormalRegular', sans-serif;
}

.wc2026-empty i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.3;
}

/* =============================================================
   NIGHT MODE
   ============================================================= */
body.night-mode .wc2026-eyebrow     { color: #64748b; }
body.night-mode .wc2026-host-flags img { border-color: rgba(255,255,255,0.1); }

body.night-mode .wc2026-group-card {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.night-mode .wc2026-group-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

body.night-mode .wc2026-group-header {
    background: #020817;
}

body.night-mode .wc2026-team-list {
    background: #0f172a;
}

body.night-mode .wc2026-team-row {
    border-bottom-color: #1e293b;
}

body.night-mode .wc2026-team-row:hover {
    background: #1e293b;
}

body.night-mode .wc2026-team-name {
    color: #e2e8f0;
}

body.night-mode .wc2026-team-row:hover .wc2026-team-name {
    color: #60a5fa;
}

body.night-mode .wc2026-crest-placeholder {
    background: #1e293b;
    color: #64748b;
}

body.night-mode .wc2026-brand-logo {
    filter: invert(1) brightness(2);
    opacity: 0.25;
}

body.night-mode .wc2026-team-row:hover .wc2026-brand-logo {
    opacity: 0.7;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1200px) {
    .wc2026-groups-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .wc2026-groups-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .wc2026-section-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .wc2026-groups-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .wc2026-team-name   { font-size: 0.78rem; }
    .wc2026-nav-pill    { font-size: 0.65rem; padding: 3px 10px; }
}
/* =============================================================
   WC2026 — TITLE CENTER + SPACING PATCH
   Paste at the very end of style.css
   ============================================================= */

/* Center the whole header */
.wc2026-section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0;
}

.wc2026-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wc2026-eyebrow {
    text-align: center;
}

.wc2026-subtitle {
    text-align: center;
}

/* Host flags centered below subtitle */
.wc2026-host-flags {
    justify-content: center;
}

/* Tighten title size slightly */
.wc2026-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important;
    margin: 0 0 4px !important;
}

/* Tighten gap between header and nav pills */
.wc2026-group-nav {
    justify-content: center;
    margin-bottom: 1rem;
}

/* Slightly tighter card rows */
.wc2026-team-link {
    padding: 8px 12px;
}

/* Tighter grid gap */
.wc2026-groups-grid {
    gap: 8px;
}

/* Keep header row centered on mobile too */
@media (max-width: 860px) {
    .wc2026-section-header {
        align-items: center;
    }
}
/* =============================================================
   WC2026 — TITLE YEAR SIZE FIX
   Paste at the very end of style.css
   ============================================================= */

.wc2026-title-year {
    font-size: 1em !important;
    letter-spacing: -1px;
}
/* =============================================================
   WC2026 TEAM PREVIEW MODAL
   Paste at the very end of style.css
   ============================================================= */

/* ── Overlay ───────────────────────────────────────────────── */
.wc26-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.wc26-modal-overlay.wc26-modal-active {
    display: flex;
}

/* ── Modal box ─────────────────────────────────────────────── */
.wc26-modal {
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 580px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    animation: wc26ModalIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wc26ModalIn {
    from { opacity: 0; transform: scale(0.94) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Close button ──────────────────────────────────────────── */
.wc26-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: #333;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    z-index: 10;
}

.wc26-modal-close:hover {
    background: #1a1a2e;
    color: #fff;
}

/* ── Header ────────────────────────────────────────────────── */
.wc26-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 22px 18px;
    background: #1a1a2e;
    border-radius: 14px 14px 0 0;
}

.wc26-modal-flag-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc26-modal-flag {
    width: 64px;
    height: 44px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.wc26-modal-title-wrap {
    flex: 1;
    min-width: 0;
}

.wc26-modal-group-badge {
    font-family: 'FWC2026UltraBlack', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3px;
}

.wc26-modal-team-name {
    font-family: 'FWC2026NormalRegular', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin: 0 0 5px;
    line-height: 1.1;
    /* override global heading color */
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.wc26-modal-meta-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.wc26-modal-host-badge {
    font-family: 'FWC2026UltraBlack', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
    background: #c9a84c;
    color: #1a1a2e;
    display: inline-block;
}

.wc26-modal-brand-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.wc26-modal-brand {
    max-width: 52px;
    max-height: 32px;
    object-fit: contain;
    filter: invert(1) brightness(2);
    opacity: 0.7;
    display: block;
}

/* ── Body ──────────────────────────────────────────────────── */
.wc26-modal-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wc26-modal-section {
    /* each section */
}

.wc26-modal-section-title {
    font-family: 'FWC2026UltraBlack', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: #888 !important;
}

.wc26-modal-season {
    font-family: 'FWC2026NormalRegular', sans-serif;
    font-weight: 400;
    font-size: 0.65rem;
    color: #aaa;
    letter-spacing: 0.05em;
}

/* ── Kits grid ─────────────────────────────────────────────── */
.wc26-kits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.wc26-kit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.wc26-kit-card a {
    display: block;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #f8f8f8;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.wc26-kit-card a:hover {
    border-color: #1a1a2e;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wc26-kit-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 8px;
    display: block;
    mix-blend-mode: multiply;
}

.wc26-kit-label {
    font-family: 'FWC2026NormalRegular', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
    text-align: center;
}

/* No kits message */
.wc26-no-kits {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: #bbb;
    gap: 8px;
    border: 1px dashed #e0e0e0;
    border-radius: 8px;
}

.wc26-no-kits i { font-size: 1.5rem; opacity: 0.4; }
.wc26-no-kits p { margin: 0; font-size: 0.8rem; }

/* ── Stadium ───────────────────────────────────────────────── */
.wc26-stadium {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.wc26-stadium-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.wc26-stadium-name {
    font-family: 'FWC2026NormalRegular', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #333;
    padding: 10px 14px;
    margin: 0;
    background: #f8f8f8;
    border-top: 1px solid #eee;
}

/* ── Footer ────────────────────────────────────────────────── */
.wc26-modal-footer {
    display: flex;
    gap: 10px;
    padding: 0 22px 22px;
}

.wc26-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 6px;
    font-family: 'FWC2026UltraBlack', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: var(--transition);
    cursor: pointer;
}

.wc26-btn-search {
    background: #1a1a2e;
    color: #fff !important;
    flex: 1;
    justify-content: center;
}

.wc26-btn-search:hover {
    background: #2a2a4e;
    color: #fff !important;
    text-decoration: none !important;
}

.wc26-btn-kits {
    background: #f0f0f0;
    color: #1a1a2e !important;
    flex: 1;
    justify-content: center;
    border: 1px solid #ddd;
}

.wc26-btn-kits:hover {
    background: #e0e0e0;
    color: #1a1a2e !important;
    text-decoration: none !important;
}

/* =============================================================
   NIGHT MODE
   ============================================================= */
body.night-mode .wc26-modal {
    background: #0f172a;
}

body.night-mode .wc26-modal-close {
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
}

body.night-mode .wc26-modal-close:hover {
    background: #fff;
    color: #000;
}

body.night-mode .wc26-modal-header {
    background: #020817;
}

body.night-mode .wc26-modal-section-title {
    color: #64748b !important;
}

body.night-mode .wc26-kit-card a {
    border-color: #1e293b;
    background: #1e293b;
}

body.night-mode .wc26-kit-card a:hover {
    border-color: #60a5fa;
}

body.night-mode .wc26-kit-card img {
    mix-blend-mode: normal;
    filter: brightness(0.92);
}

body.night-mode .wc26-kit-label { color: #94a3b8; }

body.night-mode .wc26-no-kits {
    border-color: #1e293b;
    color: #475569;
}

body.night-mode .wc26-stadium {
    border-color: #1e293b;
}

body.night-mode .wc26-stadium-name {
    background: #1e293b;
    border-top-color: #1e293b;
    color: #cbd5e1;
}

body.night-mode .wc26-btn-search {
    background: #fff;
    color: #000 !important;
}

body.night-mode .wc26-btn-search:hover {
    background: #e2e8f0;
}

body.night-mode .wc26-btn-kits {
    background: #1e293b;
    color: #e2e8f0 !important;
    border-color: #334155;
}

body.night-mode .wc26-btn-kits:hover {
    background: #334155;
    color: #fff !important;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 540px) {
    .wc26-modal { border-radius: 12px; }
    .wc26-kits-grid { grid-template-columns: repeat(2, 1fr); }
    .wc26-modal-team-name { font-size: 1.1rem; }
    .wc26-modal-header { padding: 18px 16px; }
    .wc26-modal-body { padding: 16px; }
    .wc26-modal-footer { padding: 0 16px 16px; flex-direction: column; }
}
/* =============================================================
   WC2026 TEAM PREVIEW MODAL
   Paste at the very end of style.css
   ============================================================= */

/* ── Overlay ───────────────────────────────────────────────── */
.wc26-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.wc26-modal-overlay.wc26-modal-active {
    display: flex;
}

/* ── Modal box ─────────────────────────────────────────────── */
.wc26-modal {
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 580px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    animation: wc26ModalIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wc26ModalIn {
    from { opacity: 0; transform: scale(0.94) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Close button ──────────────────────────────────────────── */
.wc26-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: #333;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    z-index: 10;
}

.wc26-modal-close:hover {
    background: #1a1a2e;
    color: #fff;
}

/* ── Header ────────────────────────────────────────────────── */
.wc26-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 22px 18px;
    background: #1a1a2e;
    border-radius: 14px 14px 0 0;
}

.wc26-modal-flag-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc26-modal-flag {
    width: 64px;
    height: 44px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.wc26-modal-title-wrap {
    flex: 1;
    min-width: 0;
}

.wc26-modal-group-badge {
    font-family: 'FWC2026UltraBlack', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3px;
}

.wc26-modal-team-name {
    font-family: 'FWC2026NormalRegular', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin: 0 0 5px;
    line-height: 1.1;
    /* override global heading color */
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.wc26-modal-meta-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.wc26-modal-host-badge {
    font-family: 'FWC2026UltraBlack', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
    background: #c9a84c;
    color: #1a1a2e;
    display: inline-block;
}

.wc26-modal-brand-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.wc26-modal-brand {
    max-width: 52px;
    max-height: 32px;
    object-fit: contain;
    filter: invert(1) brightness(2);
    opacity: 0.7;
    display: block;
}

/* ── Body ──────────────────────────────────────────────────── */
.wc26-modal-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wc26-modal-section {
    /* each section */
}

.wc26-modal-section-title {
    font-family: 'FWC2026UltraBlack', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: #888 !important;
}

.wc26-modal-season {
    font-family: 'FWC2026NormalRegular', sans-serif;
    font-weight: 400;
    font-size: 0.65rem;
    color: #aaa;
    letter-spacing: 0.05em;
}

/* ── Kits grid ─────────────────────────────────────────────── */
.wc26-kits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.wc26-kit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.wc26-kit-card a {
    display: block;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #f8f8f8;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.wc26-kit-card a:hover {
    border-color: #1a1a2e;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wc26-kit-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 8px;
    display: block;
    mix-blend-mode: multiply;
}

.wc26-kit-label {
    font-family: 'FWC2026NormalRegular', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
    text-align: center;
}

/* No kits message */
.wc26-no-kits {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: #bbb;
    gap: 8px;
    border: 1px dashed #e0e0e0;
    border-radius: 8px;
}

.wc26-no-kits i { font-size: 1.5rem; opacity: 0.4; }
.wc26-no-kits p { margin: 0; font-size: 0.8rem; }

/* ── Stadium ───────────────────────────────────────────────── */
.wc26-stadium {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.wc26-stadium-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.wc26-stadium-name {
    font-family: 'FWC2026NormalRegular', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #333;
    padding: 10px 14px;
    margin: 0;
    background: #f8f8f8;
    border-top: 1px solid #eee;
}

/* ── Footer ────────────────────────────────────────────────── */
.wc26-modal-footer {
    display: flex;
    gap: 10px;
    padding: 0 22px 22px;
}

.wc26-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 6px;
    font-family: 'FWC2026UltraBlack', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: var(--transition);
    cursor: pointer;
}

.wc26-btn-search {
    background: #1a1a2e;
    color: #fff !important;
    flex: 1;
    justify-content: center;
}

.wc26-btn-search:hover {
    background: #2a2a4e;
    color: #fff !important;
    text-decoration: none !important;
}

.wc26-btn-kits {
    background: #f0f0f0;
    color: #1a1a2e !important;
    flex: 1;
    justify-content: center;
    border: 1px solid #ddd;
}

.wc26-btn-kits:hover {
    background: #e0e0e0;
    color: #1a1a2e !important;
    text-decoration: none !important;
}

/* =============================================================
   NIGHT MODE
   ============================================================= */
body.night-mode .wc26-modal {
    background: #0f172a;
}

body.night-mode .wc26-modal-close {
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
}

body.night-mode .wc26-modal-close:hover {
    background: #fff;
    color: #000;
}

body.night-mode .wc26-modal-header {
    background: #020817;
}

body.night-mode .wc26-modal-section-title {
    color: #64748b !important;
}

body.night-mode .wc26-kit-card a {
    border-color: #1e293b;
    background: #1e293b;
}

body.night-mode .wc26-kit-card a:hover {
    border-color: #60a5fa;
}

body.night-mode .wc26-kit-card img {
    mix-blend-mode: normal;
    filter: brightness(0.92);
}

body.night-mode .wc26-kit-label { color: #94a3b8; }

body.night-mode .wc26-no-kits {
    border-color: #1e293b;
    color: #475569;
}

body.night-mode .wc26-stadium {
    border-color: #1e293b;
}

body.night-mode .wc26-stadium-name {
    background: #1e293b;
    border-top-color: #1e293b;
    color: #cbd5e1;
}

body.night-mode .wc26-btn-search {
    background: #fff;
    color: #000 !important;
}

body.night-mode .wc26-btn-search:hover {
    background: #e2e8f0;
}

body.night-mode .wc26-btn-kits {
    background: #1e293b;
    color: #e2e8f0 !important;
    border-color: #334155;
}

body.night-mode .wc26-btn-kits:hover {
    background: #334155;
    color: #fff !important;
}

/* ── Fixtures ──────────────────────────────────────────────── */
.wc26-fixtures-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wc26-fixture-row {
    background: #f8f9fc;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.15s;
}

.wc26-fixture-row:hover {
    border-color: #1a1a2e;
}

.wc26-fx-teams {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'FWC2026NormalRegular', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wc26-fx-home,
.wc26-fx-away {
    color: #444;
    flex: 1;
}

.wc26-fx-home { text-align: right; }
.wc26-fx-away { text-align: left; }

/* Highlight the current team */
.wc26-fx-current {
    color: #1a1a2e;
    font-weight: 900;
}

.wc26-fx-vs {
    font-family: 'FWC2026UltraBlack', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: #999;
    background: #eee;
    padding: 2px 7px;
    border-radius: 3px;
    flex-shrink: 0;
}

.wc26-fx-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.wc26-fx-date,
.wc26-fx-time,
.wc26-fx-venue {
    font-family: 'FWC2026NormalRegular', sans-serif;
    font-size: 0.7rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.03em;
}

.wc26-fx-date i,
.wc26-fx-time i,
.wc26-fx-venue i {
    font-size: 0.65rem;
    color: #bbb;
}

/* Night mode fixtures */
body.night-mode .wc26-fixture-row {
    background: #1e293b;
    border-color: #334155;
}

body.night-mode .wc26-fixture-row:hover {
    border-color: #60a5fa;
}

body.night-mode .wc26-fx-home,
body.night-mode .wc26-fx-away { color: #94a3b8; }

body.night-mode .wc26-fx-current { color: #e2e8f0; }

body.night-mode .wc26-fx-vs {
    background: #334155;
    color: #64748b;
}

body.night-mode .wc26-fx-date,
body.night-mode .wc26-fx-time,
body.night-mode .wc26-fx-venue { color: #64748b; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 540px) {
    .wc26-modal { border-radius: 12px; }
    .wc26-kits-grid { grid-template-columns: repeat(2, 1fr); }
    .wc26-modal-team-name { font-size: 1.1rem; }
    .wc26-modal-header { padding: 18px 16px; }
    .wc26-modal-body { padding: 16px; }
    .wc26-modal-footer { padding: 0 16px 16px; flex-direction: column; }
}
/* =============================================================
   WC2026 — 2026 COLOR ANIMATION — CLEAN FINAL
   Must be ABSOLUTE LAST lines in style.css
   ============================================================= */

@keyframes wc26FinalCycle {
    0%   { color: #00c853 !important; }
    25%  { color: #d40102 !important; }
    50%  { color: #014c3b !important; }
    75%  { color: #711414 !important; }
    100% { color: #00c853 !important; }
}

h2.wc2026-title span.wc2026-title-year {
    animation: wc26FinalCycle 3s ease-in-out infinite !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: initial !important;
}
/* =============================================================
   WC2026 — STADIUM INSIDE FIXTURE ROW
   Paste at the very end of style.css
   ============================================================= */

.wc26-fx-stadium {
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.wc26-fx-stadium-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.wc26-fx-stadium-name {
    display: block;
    font-family: 'FWC2026UltraBlack', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: #0d1b3e;
    padding: 7px 12px;
}

/* Night mode */
body.night-mode .wc26-fx-stadium-name {
    background: #020817;
}
/* =============================================================
   WC2026 — BIGGER KIT IMAGES
   Paste at the very end of style.css
   ============================================================= */

.wc26-kits-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.wc26-kit-card img {
    aspect-ratio: 2 / 3;
    padding: 8px 4px;
}

/* When only 2 kits — make them larger */
.wc26-kits-grid:has(.wc26-kit-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

.wc26-kits-grid:has(.wc26-kit-card:nth-child(2):last-child) .wc26-kit-card img {
    aspect-ratio: 3 / 4;
    padding: 12px 8px;
}
/* =============================================================
   WC2026 — MOBILE TEAM NAME FIX
   Paste at the very end of style.css
   ============================================================= */

@media (max-width: 768px) {

    /* 2 columns on mobile */
    .wc2026-groups-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Tighter row padding */
    .wc2026-team-link {
        padding: 7px 8px;
        gap: 4px;
    }

    /* Smaller flag */
    .wc2026-crest-wrap {
        width: 26px;
        height: 18px;
        flex-shrink: 0;
    }

    .wc2026-crest {
        width: 26px;
        height: 18px;
    }

    /* Team name smaller, allow wrap on mobile */
    .wc2026-team-name {
        font-size: 0.68rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80px;
        display: block; /* block so ellipsis works cleanly */
    }

    /* Hide HOST badge on very small screens to save space */
    .wc2026-host-badge {
        display: none;
    }

    /* Smaller kit maker logo */
    .wc2026-brand-wrap {
        width: 22px;
        height: 14px;
        flex-shrink: 0;
    }

    .wc2026-brand-logo {
        max-width: 22px;
        max-height: 14px;
    }

    /* Tighter left gap */
    .wc2026-team-left {
        gap: 6px;
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }

    /* Group header smaller text */
    .wc2026-group-letter {
        font-size: 0.65rem;
    }

    .wc2026-team-count {
        font-size: 0.52rem;
    }
}
/* =============================================================
   MOBILE BOTTOM NAVBAR
   Paste at the very end of style.css
   ============================================================= */

.mobile-bottom-nav {
    display: none; /* hidden on desktop */
}

@media (max-width: 768px) {

    /* Spacer so content isn't hidden behind the nav */
    .mobile-bottom-nav-spacer {
        height: 64px;
    }

    /* The nav bar itself */
    .mobile-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        z-index: 999;
        padding: 0 4px;
        padding-bottom: env(safe-area-inset-bottom); /* iPhone notch support */
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        transition: transform 0.3s ease;
    }

    /* Hide on scroll down */
    .mobile-bottom-nav.mbn-hidden {
        transform: translateY(100%);
    }

    /* Each tab item */
    .mbn-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 1;
        height: 100%;
        text-decoration: none !important;
        color: #9ca3af;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px 4px;
        transition: color 0.15s;
        -webkit-tap-highlight-color: transparent;
        position: relative;
    }

    .mbn-item i {
        font-size: 1.3rem;
        line-height: 1;
        transition: transform 0.15s;
    }

    .mbn-item span {
        font-family: 'FWC2026NormalRegular', 'Inter', sans-serif;
        font-size: 0.58rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        line-height: 1;
    }

    /* Active state */
    .mbn-item.mbn-active {
        color: #111827;
    }

    .mbn-item.mbn-active i {
        transform: translateY(-1px);
    }

    /* Active dot indicator */
    .mbn-item.mbn-active::after {
        content: '';
        position: absolute;
        bottom: 6px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #111827;
    }

    /* Hover */
    .mbn-item:hover {
        color: #111827;
        text-decoration: none !important;
    }

    .mbn-item:active i {
        transform: scale(0.88) translateY(-1px);
    }

    /* WC 2026 tab — special gold color */
    .mbn-item:last-child {
        color: #9ca3af;
    }

    .mbn-item:last-child.mbn-active,
    .mbn-item:last-child:hover {
        color: #c9a84c;
    }

    .mbn-item:last-child.mbn-active::after {
        background: #c9a84c;
    }

    /* ── Night mode ──────────────────────────────────────────── */
    body.night-mode .mobile-bottom-nav {
        background: #0f172a;
        border-top-color: #1e293b;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    }

    body.night-mode .mbn-item {
        color: #475569;
    }

    body.night-mode .mbn-item.mbn-active,
    body.night-mode .mbn-item:hover {
        color: #e2e8f0;
    }

    body.night-mode .mbn-item.mbn-active::after {
        background: #e2e8f0;
    }

    body.night-mode .mbn-item:last-child.mbn-active,
    body.night-mode .mbn-item:last-child:hover {
        color: #c9a84c;
    }
}
/* =============================================================
   WC2026 PAGE — HERO + COUNTDOWN + STATS
   Paste at the very end of style.css
   ============================================================= */

.wc2026-page-main {
    padding: 0;
}

/* ── Hero ──────────────────────────────────────────────────── */
.wc2026-page-hero {
    background: #0d1b3e;
    border-radius: 16px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.wc2026-page-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2.5rem 2rem 2rem;
}

.wc2026-page-h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem) !important;
    margin-bottom: 8px !important;
}

.wc2026-page-hero .wc2026-eyebrow {
    color: rgba(255,255,255,0.4);
}

.wc2026-page-hero .wc2026-title-world {
    color: #ffffff !important;
}

.wc2026-page-hero .wc2026-subtitle {
    color: rgba(255,255,255,0.5);
}

.wc2026-page-hero .wc2026-host-flags img {
    border-color: rgba(255,255,255,0.15);
    width: 48px;
    height: 32px;
}

/* ── Countdown ─────────────────────────────────────────────── */
.wc2026-countdown {
    text-align: center;
}

.wc2026-countdown-label {
    font-family: 'FWC2026NormalRegular', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
}

.wc2026-countdown-blocks {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wc2026-cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 64px;
}

.wc2026-cd-num {
    font-family: 'FWC2026UltraBlack', sans-serif;
    font-size: 2rem;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -1px;
}

.wc2026-cd-unit {
    font-family: 'FWC2026NormalRegular', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
}

.wc2026-cd-sep {
    font-family: 'FWC2026UltraBlack', sans-serif;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.3);
    margin-bottom: 16px;
}

/* ── Stats bar ─────────────────────────────────────────────── */
.wc2026-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 14px 2rem;
    flex-wrap: wrap;
}

.wc2026-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
}

.wc2026-stat-num {
    font-family: 'FWC2026UltraBlack', sans-serif;
    font-size: 1.6rem;
    color: #c9a84c;
    line-height: 1;
    letter-spacing: -0.5px;
}

.wc2026-stat-label {
    font-family: 'FWC2026NormalRegular', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-top: 3px;
}

.wc2026-stat-div {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.1);
}

/* ── Section title ─────────────────────────────────────────── */
.wc2026-page-section-title {
    font-family: 'FWC2026UltraBlack', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-gray) !important;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.wc2026-page-groups-wrap {
    margin-bottom: 2rem;
}

/* ── Night mode ────────────────────────────────────────────── */
body.night-mode .wc2026-page-hero {
    background: #020817;
}

body.night-mode .wc2026-stats-bar {
    background: rgba(0,0,0,0.4);
    border-top-color: rgba(255,255,255,0.04);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .wc2026-page-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 1rem 1rem;
        gap: 1.5rem;
    }

    .wc2026-cd-block {
        min-width: 52px;
        padding: 10px 12px;
    }

    .wc2026-cd-num { font-size: 1.5rem; }

    .wc2026-stats-bar {
        gap: 0;
        padding: 12px 1rem;
    }

    .wc2026-stat { padding: 0 1rem; }
    .wc2026-stat-num { font-size: 1.2rem; }

    .wc2026-stat-div { height: 22px; }
}

@media (max-width: 480px) {
    .wc2026-countdown-blocks { gap: 4px; }
    .wc2026-cd-block { min-width: 44px; padding: 8px 8px; }
    .wc2026-cd-num { font-size: 1.25rem; }
    .wc2026-stat { padding: 0 0.6rem; }
    .wc2026-stat-num { font-size: 1rem; }
    .wc2026-stat-label { font-size: 0.5rem; }
}
/* =============================================================
   WC2026 PAGE — HERO MOBILE FIXES
   Paste at the very end of style.css
   ============================================================= */

/* Fix title staying on one line */
.wc2026-page-h1 {
    white-space: nowrap !important;
    font-size: clamp(1.4rem, 6vw, 3.5rem) !important;
}

/* Fix stats bar — all on one row, smaller */
.wc2026-stats-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding: 12px 1rem;
    justify-content: space-around;
    gap: 0;
}

.wc2026-stat {
    padding: 0 0.6rem;
    flex-shrink: 0;
}

.wc2026-stat-num {
    font-size: 1.1rem;
}

.wc2026-stat-label {
    font-size: 0.48rem;
    letter-spacing: 0.1em;
}

.wc2026-stat-div {
    height: 20px;
    flex-shrink: 0;
}

/* Fix countdown centered */
.wc2026-page-hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wc2026-page-title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wc2026-page-hero .wc2026-host-flags {
    justify-content: center;
}

/* Countdown blocks more compact on mobile */
@media (max-width: 480px) {
    .wc2026-cd-block {
        min-width: 58px;
        padding: 10px 10px;
    }
    .wc2026-cd-num {
        font-size: 1.6rem;
    }
    .wc2026-cd-sep {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
}
/* =============================================================
   WC2026 — NAVBAR + SIDEBAR BUTTON
   Paste at the very end of style.css
   ============================================================= */

/* ── Desktop navbar WC 2026 button ────────────────────────── */
.nav-wc2026-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #0d1b3e;
    color: #fff !important;
    border-radius: 20px;
    font-family: 'FWC2026UltraBlack', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nav-wc2026-btn i {
    color: #c9a84c;
    font-size: 0.75rem;
}

.nav-wc2026-btn:hover,
.nav-wc2026-btn.active {
    background: #c9a84c;
    color: #0d1b3e !important;
    text-decoration: none !important;
}

.nav-wc2026-btn:hover i,
.nav-wc2026-btn.active i {
    color: #0d1b3e;
}

/* Night mode */
body.night-mode .nav-wc2026-btn {
    background: #c9a84c;
    color: #0d1b3e !important;
}

body.night-mode .nav-wc2026-btn i {
    color: #0d1b3e;
}

body.night-mode .nav-wc2026-btn:hover {
    background: #e0c060;
}

/* ── Sidebar WC 2026 button ────────────────────────────────── */
.sidebar-wc2026-btn {
    background: linear-gradient(135deg, #0d1b3e 0%, #162850 100%) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(201,168,76,0.3) !important;
}

.sidebar-wc2026-btn span {
    color: #c9a84c !important;
    font-family: 'FWC2026UltraBlack', sans-serif !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.1em !important;
}

.sidebar-wc2026-btn img {
    filter: brightness(0) invert(1);
    opacity: 0.7;
    width: 20px !important;
    height: 20px !important;
}

.sidebar-wc2026-btn:hover {
    border-color: rgba(201,168,76,0.7) !important;
    background: linear-gradient(135deg, #162850 0%, #1e3a6e 100%) !important;
}
/* =============================================================
   WC2026 — NAVBAR + SIDEBAR BUTTON
   Paste at the very end of style.css
   ============================================================= */

/* ── Desktop navbar WC 2026 button ────────────────────────── */
.nav-wc2026-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #0d1b3e;
    color: #fff !important;
    border-radius: 20px;
    font-family: 'FWC2026NormalRegular', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nav-wc2026-btn i {
    color: #c9a84c;
    font-size: 0.75rem;
}

.nav-wc2026-btn:hover,
.nav-wc2026-btn.active {
    background: #c9a84c;
    color: #0d1b3e !important;
    text-decoration: none !important;
}

.nav-wc2026-btn:hover i,
.nav-wc2026-btn.active i {
    color: #0d1b3e;
}

/* Night mode */
body.night-mode .nav-wc2026-btn {
    background: #c9a84c;
    color: #0d1b3e !important;
}

body.night-mode .nav-wc2026-btn i {
    color: #0d1b3e;
}

body.night-mode .nav-wc2026-btn:hover {
    background: #e0c060;
}

/* ── Sidebar WC 2026 button ────────────────────────────────── */
.sidebar-wc2026-btn {
    background: linear-gradient(135deg, #0d1b3e 0%, #162850 100%) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(201,168,76,0.3) !important;
}

.sidebar-wc2026-btn span {
    color: #c9a84c !important;
    font-family: 'FWC2026NormalRegular', sans-serif !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

.sidebar-wc2026-btn img {
    filter: brightness(0) invert(1);
    opacity: 0.7;
    width: 20px !important;
    height: 20px !important;
}

.sidebar-wc2026-btn:hover {
    border-color: rgba(201,168,76,0.7) !important;
    background: linear-gradient(135deg, #162850 0%, #1e3a6e 100%) !important;
}
/* =============================================================
   UPCOMING RELEASES PAGE
   Paste at the very end of style.css
   ============================================================= */

.releases-page-main {
    padding: 0;
}

/* ── Page Header ───────────────────────────────────────────── */
.releases-page-header {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.releases-page-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    gap: 1rem;
}

.releases-page-eyebrow {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.releases-page-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 4px;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.releases-page-subtitle {
    font-size: 0.78rem;
    color: var(--text-gray);
    margin: 0;
}

.releases-page-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-lighter);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    flex-shrink: 0;
}

.releases-count-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.releases-count-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-top: 3px;
}

/* ── Section ───────────────────────────────────────────────── */
.releases-section {
    margin-bottom: 2rem;
}

.releases-section--past .release-card {
    opacity: 0.75;
}

.releases-section--past .release-card:hover {
    opacity: 1;
}

.releases-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-gray) !important;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.releases-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--card-hover);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-gray);
}

/* ── Grid ──────────────────────────────────────────────────── */
.releases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* ── Release Card ──────────────────────────────────────────── */
.release-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.release-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.release-card--upcoming {
    border-top: 3px solid var(--primary);
}

.release-card--past {
    border-top: 3px solid var(--card-border);
}

/* Card header */
.release-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 0;
}

.release-card-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: var(--bg-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
}

.release-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.release-card-logo--placeholder {
    color: var(--text-gray);
    font-size: 1.2rem;
}

/* Countdown badge */
.release-card-countdown {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    letter-spacing: 0.04em;
}

.release-card-countdown--today {
    background: #dcfce7;
    color: #16a34a;
    animation: pulse 1.5s infinite;
}

/* Released badge */
.release-card-released-badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    background: var(--card-hover);
    color: var(--text-gray);
    letter-spacing: 0.04em;
}

/* Card body */
.release-card-body {
    padding: 12px 16px;
    flex: 1;
}

.release-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.release-card-season {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-gray);
}

.release-card-date {
    font-size: 0.75rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.release-card-date i {
    color: var(--primary);
    font-size: 0.7rem;
}

.release-card-desc {
    font-size: 0.78rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

/* Card footer */
.release-card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--card-border);
}

.release-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: var(--transition);
    letter-spacing: 0.04em;
}

.release-card-btn:hover {
    background: var(--primary-dark);
    color: #fff !important;
    text-decoration: none !important;
}

.release-card-btn--secondary {
    background: var(--card-hover);
    color: var(--text-dark) !important;
}

.release-card-btn--secondary:hover {
    background: var(--card-border);
    color: var(--text-dark) !important;
}

/* ── Empty state ───────────────────────────────────────────── */
.releases-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-gray);
}

.releases-empty i {
    font-size: 3rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 1rem;
}

.releases-empty h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.releases-empty p {
    font-size: 0.85rem;
}

/* ── Night Mode ────────────────────────────────────────────── */
body.night-mode .releases-page-header,
body.night-mode .release-card {
    background: #0f172a;
    border-color: #1e293b;
}

body.night-mode .releases-page-title { color: #f1f5f9; }
body.night-mode .releases-page-eyebrow,
body.night-mode .releases-page-subtitle { color: #64748b; }

body.night-mode .releases-page-count {
    background: #1e293b;
    border-color: #334155;
}

body.night-mode .release-card-logo {
    background: #1e293b;
    border-color: #334155;
}

body.night-mode .release-card-title { color: #e2e8f0; }
body.night-mode .release-card-date  { color: #64748b; }
body.night-mode .release-card-desc  { color: #64748b; }

body.night-mode .release-card-footer {
    border-top-color: #1e293b;
}

body.night-mode .release-card-btn--secondary {
    background: #1e293b;
    color: #e2e8f0 !important;
}

body.night-mode .release-card-btn--secondary:hover {
    background: #334155;
}

body.night-mode .release-card-released-badge {
    background: #1e293b;
    color: #64748b;
}

body.night-mode .releases-section-count {
    background: #1e293b;
    color: #64748b;
}

body.night-mode .release-card--past {
    border-top-color: #334155;
}

body.night-mode .release-card:hover {
    border-color: #60a5fa;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .releases-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .releases-grid { grid-template-columns: 1fr; gap: 10px; }
    .releases-page-header-inner { flex-direction: column; align-items: flex-start; }
    .releases-page-count { flex-direction: row; gap: 8px; align-items: center; width: 100%; justify-content: center; }
}
/* =============================================================
   "NEW" BADGE — AUTO ON POSTS WITHIN 7 DAYS
   Paste at the very end of style.css
   ============================================================= */

/* ── Base badge ────────────────────────────────────────────── */
.new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px;
    background: #ef4444;
    color: #fff;
    line-height: 1;
    animation: newBadgePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes newBadgePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.7; }
}

/* ── On modern-card (homepage/articles grid) ───────────────── */
.modern-card {
    position: relative;
}

.modern-card > .new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    font-size: 0.6rem;
    padding: 4px 9px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}

/* ── On infinite scroll cards ──────────────────────────────── */
.new-badge--card {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}

/* ── On kits breakdown cards ───────────────────────────────── */
.kits-team-card-inner {
    position: relative;
}

.new-badge--kits {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}
/* =============================================================
   NEW BADGE — POSITION FIX
   Paste at the very end of style.css
   ============================================================= */

.modern-card {
    position: relative !important;
    overflow: hidden;
}

.modern-card > .new-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    bottom: auto !important;
    right: auto !important;
    z-index: 20;
}
/* =============================================================
   NEW BADGE — FINE TUNE
   Paste at the very end of style.css
   ============================================================= */

.modern-card > .new-badge {
    top: 12px !important;
    left: 12px !important;
    font-size: 0.58rem !important;
    padding: 4px 8px !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 10px rgba(239,68,68,0.5) !important;
    z-index: 20 !important;
}

/* Push tags down slightly so they don't overlap */
.modern-card .post-tags {
    top: 38px !important;
}
/* =============================================================
   NEW BADGE — TAGS POSITION REVERT
   Paste at the very end of style.css
   ============================================================= */

/* Revert tags to original position */
.modern-card .post-tags {
    top: 12px !important;
}

/* Keep NEW badge clean at top left */
.modern-card > .new-badge {
    top: 12px !important;
    left: 12px !important;
}

/* When NEW badge exists, push tags to the right */
.modern-card > .new-badge + .post-tags {
    left: 58px !important;
}
/* =============================================================
   NEW BADGE — REDESIGNED TO MATCH TAG PILLS
   Paste at the very end of style.css
   ============================================================= */

/* Reset previous badge styles */
.modern-card > .new-badge {
    position: static !important;
    display: inline-flex !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    right: auto !important;
    box-shadow: none !important;
    animation: none !important;
}

/* Revert tags */
.modern-card .post-tags {
    top: 12px !important;
    left: 12px !important;
}

/* NEW badge matches tag-badge style exactly — just different color */
.new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 9999px;
    background: #ef4444;
    color: #fff;
    line-height: 1.4;
    animation: newBadgePulse 2s ease-in-out infinite;
}

@keyframes newBadgePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.75; }
}

/* Sits inside post-tags row naturally */
.modern-card > .new-badge {
    vertical-align: middle;
}
/* =============================================================
   SINGLE ARTICLE PAGE — IMPROVEMENTS
   Paste at the very end of style.css
   ============================================================= */

/* ── Breadcrumb ────────────────────────────────────────────── */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.15s;
}

.article-breadcrumb a:hover {
    color: var(--primary);
}

.article-breadcrumb i {
    font-size: 0.55rem;
    opacity: 0.5;
}

.article-breadcrumb span {
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* ── Tags above title ──────────────────────────────────────── */
.article-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.article-hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    background: var(--card-hover);
    color: var(--text-gray);
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: var(--transition);
    letter-spacing: 0.04em;
}

.article-hero-tag:hover {
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none !important;
}

/* ── Reading time in byline ────────────────────────────────── */
.post-item-byline__reading {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* ── Sticky sidebar ────────────────────────────────────────── */
.sidebar-sticky {
    position: sticky;
    top: 80px;
}

/* ── Article meta card ─────────────────────────────────────── */
.article-meta-card {
    background: var(--bg-lighter);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: var(--text-gray);
}

.article-meta span i {
    color: var(--primary);
    width: 14px;
    text-align: center;
}

/* ── Share buttons improved ────────────────────────────────── */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    width: 100%;
}

.social-button.twitter {
    background: #000;
    color: #fff !important;
}

.social-button.twitter:hover {
    background: #333;
}

.social-button.facebook {
    background: #1877f2;
    color: #fff !important;
}

.social-button.facebook:hover {
    background: #166fe5;
}

.social-button.telegram {
    background: #229ed9;
    color: #fff !important;
}

.social-button.telegram:hover {
    background: #1a8bbf;
}

.social-button.copy-link {
    background: var(--card-hover);
    color: var(--text-dark) !important;
    justify-content: center;
}

.social-button.copy-link:hover {
    background: var(--card-border);
}

/* ── Night mode ────────────────────────────────────────────── */
body.night-mode .article-meta-card {
    background: #1e293b;
    border-color: #334155;
}

body.night-mode .article-meta span {
    color: #64748b;
}

body.night-mode .article-hero-tag {
    background: #1e293b;
    color: #64748b;
}

body.night-mode .article-hero-tag:hover {
    background: #1e3a5f;
    color: #60a5fa;
}

body.night-mode .article-breadcrumb a {
    color: #475569;
}

body.night-mode .article-breadcrumb span {
    color: #e2e8f0;
}

body.night-mode .social-button.copy-link {
    background: #1e293b;
    color: #e2e8f0 !important;
}

body.night-mode .social-button.copy-link:hover {
    background: #334155;
}
