/* ==========================================================================
   GAMEHOOD UK - EDITORIAL BLOG & GUIDES DESIGN SYSTEM
   Modern gaming magazine aesthetic, Bento Split Hero, interactive filters,
   fluid typography, responsive data tables, and cyber neon accents.
   ========================================================================== */

:root {
  --blog-bg-surface: #151726;
  --blog-bg-surface-hover: #1c1e32;
  --blog-border: rgba(255, 255, 255, 0.08);
  --blog-border-hover: rgba(0, 245, 255, 0.35);
  --blog-text-title: #ffffff;
  --blog-text-body: #94a3b8;
  --blog-text-dim: #64748b;
  --blog-accent-orange: #ff5722;
  --blog-accent-cyan: #00f5ff;
  --blog-accent-purple: #a855f7;
  --blog-accent-green: #10b981;
}

.blog-index-viewport {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 28px 80px;
}

/* --------------------------------------------------------------------------
   1. EDITORIAL HEADER & TITLE STRIP
   -------------------------------------------------------------------------- */
.blog-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.blog-header-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 87, 34, 0.3);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ff784e;
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  background: #ff5722;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff5722;
  animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.blog-count-badge {
  font-size: 0.88rem;
  color: #94a3b8;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   2. BENTO SPLIT HERO SECTION (Modern Magazine Layout)
   -------------------------------------------------------------------------- */
.blog-bento-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(22, 23, 38, 0.95) 0%, rgba(13, 14, 23, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  margin-bottom: 32px;
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-bento-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.blog-bento-hero:hover {
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 245, 255, 0.15);
}

.hero-left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

.hero-pill-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.2), rgba(0, 245, 255, 0.2));
  border: 1px solid rgba(0, 245, 255, 0.4);
  color: #00f5ff;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 9999px;
}

.hero-article-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0;
  transition: color 0.2s ease;
}

.blog-bento-hero:hover .hero-article-title {
  color: #00f5ff;
}

.hero-article-desc {
  font-size: 1.02rem;
  line-height: 1.6;
  color: #a0aec0;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.88rem;
  color: #94a3b8;
  margin-top: 4px;
}

.hero-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #f1f5f9;
}

.hero-author-avatar {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #ff5722, #00f5ff);
  color: #000;
  font-weight: 900;
  font-size: 0.72rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 9999px;
  align-self: flex-start;
  margin-top: 10px;
  box-shadow: 0 4px 18px rgba(255, 87, 34, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 87, 34, 0.6);
}

.hero-right-col {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: #0c0d14;
}

.hero-right-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.blog-bento-hero:hover .hero-right-col img {
  transform: scale(1.05);
}

.hero-floating-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(12, 13, 20, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 87, 34, 0.5);
  color: #ff784e;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   3. STATS HIGHLIGHT STRIP
   -------------------------------------------------------------------------- */
.blog-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.stat-card {
  background: rgba(22, 23, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  background: rgba(28, 30, 48, 0.85);
  border-color: rgba(0, 245, 255, 0.25);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.stat-info h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.1;
}

.stat-info p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 3px 0 0;
}

/* --------------------------------------------------------------------------
   4. INTERACTIVE TOOLBAR (Filters & Search)
   -------------------------------------------------------------------------- */
.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.blog-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.blog-filter-btn.active {
  background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
  color: #ffffff;
  border-color: #ff5722;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
}

.blog-search-box {
  position: relative;
  min-width: 280px;
  flex-grow: 1;
  max-width: 380px;
}

.blog-search-box input {
  width: 100%;
  background: #161726;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 18px 10px 42px;
  border-radius: 9999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-search-box input:focus {
  border-color: #00f5ff;
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

.blog-search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #64748b;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   5. MODERN CARD GRID & CARDS
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}

.blog-card {
  background: #161726;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 245, 255, 0.12);
}

.blog-card-media-link {
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.blog-card-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #0a0d14;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.06);
}

.blog-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.badge-gta5 { background: rgba(234, 179, 8, 0.9); color: #000; }
.badge-gtavc { background: rgba(244, 63, 94, 0.9); color: #fff; }
.badge-gta6 { background: rgba(0, 245, 255, 0.9); color: #000; }
.badge-school { background: rgba(16, 185, 129, 0.9); color: #000; }
.badge-retro { background: rgba(255, 87, 34, 0.9); color: #fff; }
.badge-arcade { background: rgba(168, 85, 247, 0.9); color: #fff; }

.blog-card-wordcount {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(12, 13, 20, 0.85);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-card-content {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin: 0 0 10px;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title a {
  color: #00f5ff;
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: #64748b;
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #94a3b8;
  font-weight: 600;
}

.blog-card-author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #334155;
  color: #e2e8f0;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-read-link {
  color: #ff5722;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.blog-card:hover .blog-card-read-link {
  color: #00f5ff;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   6. ARTICLE PAGE STYLES (Single Post View)
   -------------------------------------------------------------------------- */
.article-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 24px;
}

.article-breadcrumbs a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-breadcrumbs a:hover {
  color: #00f5ff;
}

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

.article-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 14px 0 16px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: #94a3b8;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-featured-banner {
  aspect-ratio: 16 / 9;
  max-height: 480px;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  margin: 28px 0 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: #0c0d14;
}

.article-featured-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #cbd5e1;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body strong {
  color: #ffffff;
}

.article-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  margin: 44px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.article-body h2::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #ff5722, #00f5ff);
}

.article-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 32px 0 14px;
}

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

.article-body li {
  margin-bottom: 10px;
  color: #cbd5e1;
}

.article-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 32px 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111322;
}

.article-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}

.article-table-wrap th {
  background: #181b30;
  color: #00f5ff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.article-table-wrap td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.article-table-wrap tr:last-child td {
  border-bottom: none;
}

.article-table-wrap tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Callout Box */
.article-callout {
  background: rgba(22, 23, 38, 0.8);
  border-left: 4px solid #00f5ff;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.article-callout h4 {
  color: #00f5ff;
  font-size: 1.05rem;
  margin: 0 0 8px;
  font-weight: 700;
}

.article-callout p {
  margin: 0;
  font-size: 0.95rem;
  color: #cbd5e1;
}

/* FAQ Accordion Item */
.article-faq-item {
  background: #151726;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.article-faq-q {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}

.article-faq-a {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #94a3b8;
  margin: 0;
}

/* Empty search state */
.no-results-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: rgba(22, 23, 38, 0.5);
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.no-results-box h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 8px;
}

.no-results-box p {
  color: #94a3b8;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   7. PROFESSIONAL PAGINATION COMPONENT
   -------------------------------------------------------------------------- */
.blog-pagination-wrapper {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-pagination-meta {
  font-size: 0.92rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pagination-badge {
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.25);
  color: #00f5ff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 9999px;
}

.blog-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  background: #161726;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  background: #1f2238;
  border-color: rgba(0, 245, 255, 0.4);
  color: #00f5ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.pagination-btn.active {
  background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
  border-color: #ff5722;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(255, 87, 34, 0.4);
  cursor: default;
}

.pagination-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.05);
}

.pagination-nav-btn {
  padding: 0 20px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .blog-bento-hero {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
  .hero-right-col {
    max-height: 240px;
  }
  .blog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .blog-search-box {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .blog-index-viewport {
    padding: 16px 14px 60px;
  }
  .hero-article-title {
    font-size: 1.4rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .pagination-nav-btn span.nav-text {
    display: none;
  }
  .pagination-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 0.85rem;
  }
}

