/*
Theme Name: GTA 6 Gaming Pro - Fixed Version
Theme URI: https://yoursite.com
Author: Mujeeb Awan
Description: Modern trending gaming news theme. Fixed sticky header, horizontal menu, optimized widgets.
Version: 4.1 Fixed
License: GPL v2
Tags: gaming, gta6, dark, responsive
*/

:root {
  --primary: #ff1744;
  --secondary: #00bcd4;
  --dark: #0a0e27;
  --darker: #101225;
  --surface: #1a1f3a;
  --surface-light: #242d48;
  --border: #2d3748;
  --text-light: #f5f7fa;
  --text-gray: #b0b9c3;
  --text-dark: #7a8694;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--dark); color: var(--text-light); font-family: 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; transition: 0.3s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }

/* ============ HEADER ============ */
.site-header {
  background: var(--darker);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.single-post .site-header {
  position: relative;
}

.header-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
  max-width: none;
}

.nav-menu li a {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-gray);
  border-radius: 6px;
  transition: all 0.3s;
  display: inline-block;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  background: rgba(255, 23, 68, 0.15);
  color: var(--primary);
  box-shadow: inset 0 0 20px rgba(255, 23, 68, 0.1);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  flex-shrink: 0;
  transition: all 0.3s;
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.15);
}

.search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-light);
  font-size: 13px;
  width: 180px;
}

.search-bar input::placeholder { color: var(--text-dark); }

/* ============ MAIN CONTAINER ============ */
.page-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

/* ============ HERO BANNER ============ */
.hero-banner {
  background: linear-gradient(135deg, rgba(255,23,68,0.1) 0%, rgba(0,188,212,0.1) 100%);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero-content h1 {
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.6;
}

/* ============ ARTICLES GRID ============ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.article-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.article-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(255, 23, 68, 0.2), 0 16px 48px rgba(0,0,0,0.4);
}

.article-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  position: relative;
}

.article-thumb::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.article-body {
  padding: 20px;
}

.article-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  padding: 4px 10px;
  background: rgba(255, 23, 68, 0.15);
  border-radius: 4px;
  margin-bottom: 10px;
}

.article-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
  color: var(--text-light);
}

.article-card:hover .article-title { color: var(--primary); }

.article-desc {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dark);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ============ FEATURED CAROUSEL ============ */
.featured-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
}

.section-title::before {
  content: '';
  width: 5px;
  height: 28px;
  background: var(--primary);
  border-radius: 2px;
}

.carousel-wrapper {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 380px;
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

.carousel-item.active { opacity: 1; }

.carousel-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.carousel-content {
  position: relative;
  z-index: 2;
}

.carousel-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}

.carousel-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.carousel-date {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.carousel-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* ============ SIDEBAR ============ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.widget:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.1);
}

.widget-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.widget ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget li a {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-gray);
  transition: all 0.3s;
  border-bottom: 1px solid var(--border);
}

.widget li:last-child a { border-bottom: none; }

.widget li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.badge-count {
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 23, 68, 0.2);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.info-widget {
  background: linear-gradient(135deg, rgba(255,23,68,0.15) 0%, rgba(0,188,212,0.15) 100%);
  border: 2px solid var(--primary);
}

.info-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-label {
  font-size: 11px;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.info-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

/* ============ PAGINATION ============ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  min-width: 42px;
  text-align: center;
  transition: all 0.3s;
}

.pagination a:hover {
  border-color: var(--primary);
  background: rgba(255, 23, 68, 0.15);
  color: var(--primary);
}

.pagination .current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============ SINGLE POST ============ */
.single-post {
  grid-column: 1 / -1;
}

.post-hero {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

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

.post-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  padding: 6px 12px;
  background: rgba(255, 23, 68, 0.15);
  border-radius: 6px;
}

.post-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.post-meta {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-gray);
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}

.post-content {
  margin-bottom: 40px;
  line-height: 1.8;
  font-size: 16px;
}

.post-content p { margin-bottom: 18px; }

.post-content h2 {
  margin: 32px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  color: var(--primary);
}

.post-content a {
  color: var(--secondary);
  font-weight: 700;
}

.post-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--darker);
  border-top: 2px solid var(--border);
  margin-top: 60px;
  padding: 48px 24px;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h3 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-gray);
}

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

.footer-bottom {
  border-top: 2px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dark);
}

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

  .nav-menu { max-width: 100%; }
  .search-bar input { width: 120px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-container { padding: 12px 16px; gap: 12px; }
  .logo { font-size: 20px; }
  .nav-menu { display: flex; gap: 8px; flex-wrap: wrap; }
  .search-bar { flex: 1; }
  .search-bar input { width: 100%; }

  .page-container { padding: 16px 12px; }
  .articles-grid { grid-template-columns: 1fr; }
  .post-title { font-size: 28px; }
  .post-hero { height: 320px; }
  .carousel-wrapper { height: 300px; }
}

@media (max-width: 480px) {
  .header-container { padding: 10px 12px; }
  .logo { font-size: 18px; }
  .page-container { padding: 12px 10px; }
  .nav-menu { gap: 6px; }
  .post-title { font-size: 22px; }
  .carousel-wrapper { height: 250px; }
}

.comments-section, #comments, .comment-form { display: none !important; }
