/* ==========================================================================
   GAMIO ARTICLES & BUZZ HUB - MOBILE FIRST STYLESHEET
   Sci-Fi Dark Theme, Responsive Reading Layout, Neon Accents & Glassmorphism
   ========================================================================== */

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

:root {
  --bg-primary: #060913;
  --bg-secondary: #0d1222;
  --bg-card: rgba(13, 20, 38, 0.7);
  --accent-green: #00ff88;
  --accent-green-glow: rgba(0, 255, 136, 0.4);
  --accent-orange: #ff7700;
  --accent-orange-glow: rgba(255, 119, 0, 0.4);
  --accent-blue: #00d2ff;
  --accent-blue-glow: rgba(0, 210, 255, 0.3);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --glass-bg: rgba(13, 20, 38, 0.65);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-border-hover: rgba(0, 255, 136, 0.35);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --transition-fast: all 0.2s ease;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

body {
  background-color: #ffffff;
  color: #0f172a;
  font-family: var(--font-body);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Reading Progress Bar */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1000;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
  box-shadow: 0 0 10px var(--accent-green-glow);
  transition: width 0.1s linear;
}

/* Articles Top Header Navigation */
.articles-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(6, 9, 19, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 16px;
}

.articles-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.articles-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
}

.articles-brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.articles-brand span.badge-buzz {
  background: linear-gradient(135deg, var(--accent-orange), #ff0055);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 8px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  font-size: 0.82rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 12px;
  transition: var(--transition-fast);
}

.lang-switch a.active {
  background: var(--accent-green);
  color: #000;
}

/* Main Hub Hero & Controls */
.hub-hero {
  padding: 30px 16px 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hub-hero h1 {
  font-size: 1.8rem;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.hub-hero p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Trending Ticker */
.trending-ticker {
  max-width: 1100px;
  margin: 10px auto 20px;
  padding: 10px 16px;
  background: rgba(255, 119, 0, 0.08);
  border: 1px solid rgba(255, 119, 0, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  overflow: hidden;
}

.trending-badge {
  background: var(--accent-orange);
  color: #000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  text-transform: uppercase;
}

.trending-text {
  color: var(--text-primary);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.trending-text a {
  color: var(--accent-orange);
  text-decoration: underline;
  font-weight: 600;
}

/* Search & Categories Filter */
.filter-section {
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 0 16px;
}

.search-box {
  position: relative;
  margin-bottom: 16px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: rgba(13, 20, 38, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 12px var(--accent-green-glow);
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cat-tab:hover, .cat-tab.active {
  background: var(--accent-green);
  color: #000;
  border-color: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green-glow);
}

/* Article Cards Grid */
.articles-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .article-card.featured-card {
    grid-column: span 2;
  }
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.15);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--accent-green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}

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

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 700;
}

.card-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 600;
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #000;
  font-weight: 800;
}

.read-more-link {
  color: var(--accent-green);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Single Article Layout */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 16px 100px;
  background: #ffffff;
  color: #0f172a;
}

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

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

.article-breadcrumbs a {
  color: #0284c7;
  font-weight: 600;
}

.article-title-main {
  font-size: 1.75rem;
  line-height: 1.28;
  margin-bottom: 14px;
  color: #0f172a !important;
  font-weight: 800;
}

@media (min-width: 768px) {
  .article-title-main {
    font-size: 2.3rem;
  }
}

.article-submeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: #475569 !important;
}

.article-submeta strong {
  color: #0f172a !important;
}

.article-featured-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 20px 0 28px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Article Content Body */
.article-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #1e293b !important;
}

.article-content p {
  color: #1e293b !important;
  margin-bottom: 20px;
}

.article-content h2 {
  font-size: 1.4rem;
  margin: 34px 0 16px;
  color: #0f172a !important;
  border-left: 4px solid var(--accent-orange);
  padding-left: 12px;
}

.article-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
  color: #0f172a !important;
}

.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
  color: #1e293b !important;
}

.article-content li {
  margin-bottom: 8px;
  color: #1e293b !important;
}

.article-content strong {
  color: #0f172a !important;
}

/* Highlight / Quote Box */
.buzz-quote-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 6px solid var(--accent-orange);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
  font-style: italic;
  font-size: 1.05rem;
  color: #0f172a !important;
}

/* Game In-Article Promo Box (High Conversion) */
.game-cta-banner {
  background: linear-gradient(135deg, #0d172e 0%, #060913 100%);
  border: 2px solid var(--accent-green);
  box-shadow: 0 0 25px var(--accent-green-glow);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 36px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.game-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.game-cta-badge {
  display: inline-block;
  background: var(--accent-orange);
  color: #000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.game-cta-banner h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 8px;
}

.game-cta-banner p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.game-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

@media (min-width: 520px) {
  .game-cta-buttons {
    flex-direction: row;
  }
}

.btn-cta-primary {
  background: linear-gradient(135deg, var(--accent-orange), #ff4500);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px var(--accent-orange-glow);
  transition: var(--transition-smooth);
  width: 100%;
  justify-content: center;
}

@media (min-width: 520px) {
  .btn-cta-primary { width: auto; }
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 119, 0, 0.6);
}

.btn-cta-secondary {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  width: 100%;
  justify-content: center;
}

@media (min-width: 520px) {
  .btn-cta-secondary { width: auto; }
}

.btn-cta-secondary:hover {
  background: var(--accent-green);
  color: #000;
}

/* Reaction & Share Bar */
.share-reaction-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  margin: 30px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.reaction-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reaction-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.reaction-btn:hover, .reaction-btn.voted {
  background: var(--accent-green);
  color: #000;
  border-color: var(--accent-green);
}

.share-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.share-btn:hover {
  background: var(--accent-blue);
  color: #000;
}

/* Mobile Sticky Bottom Install Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(6, 9, 19, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--accent-green);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.sticky-game-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sticky-game-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.sticky-text-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sticky-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-subtitle {
  font-size: 0.72rem;
  color: var(--accent-green);
}

.sticky-install-btn {
  background: linear-gradient(135deg, var(--accent-orange), #ff4500);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 10px var(--accent-orange-glow);
}

/* Internal Related Articles & Next Read Navigation */
.related-articles-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
}

.related-section-title {
  font-size: 1.25rem;
  color: #0f172a !important;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.related-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: var(--transition-fast);
  text-decoration: none;
}

.related-card:hover {
  border-color: var(--accent-orange);
  box-shadow: 0 4px 15px rgba(255, 119, 0, 0.15);
  transform: translateY(-2px);
}

.related-card img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.related-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.related-card-tag {
  font-size: 0.68rem;
  color: var(--accent-orange);
  font-weight: 700;
  text-transform: uppercase;
}

.related-card-title {
  font-size: 0.9rem;
  color: #0f172a !important;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-meta {
  font-size: 0.75rem;
  color: #64748b;
}

/* Footer Article Styling */
.articles-footer {
  text-align: center;
  padding: 40px 16px 100px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.articles-footer a {
  color: var(--accent-blue);
}
