/* ============================================================
   GK Bytes Theme — Mobile-First Stylesheet
   gkbytes.in | Red · Black · White
   ============================================================ */

:root {
  --red: #D10000;
  --dark-red: #A00000;
  --black: #0A0A0A;
  --white: #FFFFFF;
  --mid-gray: #888;
  --card-bg: #141414;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Helvetica Now Display', 'Helvetica Neue', 'Helvetica', Arial, sans-serif;
  overflow-x: hidden;
}

/* ══════════════════════════════════════════
   TICKER
══════════════════════════════════════════ */
.topbar {
  background: var(--red);
  padding: 5px 0;
  overflow: hidden;
}
.ticker-wrap { display: flex; align-items: center; }
.ticker-label {
  background: var(--black);
  color: var(--red);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 4px 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-track {
  display: flex;
  animation: ticker 8s linear infinite;
  white-space: nowrap;
}
.ticker-track span {
  font-size: 12px;
  font-weight: 600;
  padding: 0 28px;
  color: var(--white);
}
.ticker-track span::before {
  content: '●';
  margin-right: 10px;
  font-size: 7px;
  opacity: 0.7;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
header {
  background: var(--black);
  border-bottom: 3px solid var(--red);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-text-brand {
  display: flex;
  align-items: baseline;
  line-height: 1;
}
.logo-gk, .logo-in {
  font-weight: 900;
  font-size: 38px;
  color: var(--white);
  letter-spacing: -2px;
  text-transform: lowercase;
}
.logo-dot {
  font-weight: 900;
  font-size: 38px;
  color: var(--red);
  line-height: 1;
  margin: 0 -1px;
}
.logo-block .logo-tagline {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--mid-gray);
  text-transform: uppercase;
  margin-top: 6px;
  text-align: center;
}
.header-meta { display: block; text-align: right; }
.header-meta .date {
  font-size: 10px;
  color: var(--mid-gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ══════════════════════════════════════════
   NAV — ALWAYS HORIZONTAL, NO EXCEPTIONS
   Mobile: 3 items visible | Desktop: all 6
══════════════════════════════════════════ */
nav,
nav *,
nav a,
.nav-inner,
.nav-menu,
.nav-menu a {
  box-sizing: border-box;
}

nav {
  background: #111 !important;
  border-bottom: 2px solid var(--red) !important;
  position: relative;
  overflow: visible;
  width: 100%;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  padding: 0;
  width: 100%;
}

/* Hamburger — NEVER shown */
.nav-toggle,
#navToggle,
button.nav-toggle { display: none !important; visibility: hidden !important; }
.nav-brand-label  { display: none !important; }

/* Nav menu — ALWAYS a horizontal flex row */
.nav-menu,
#navMenu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  list-style: none !important;
  width: 100% !important;
  position: static !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* WP nav walker li wrapper — strip it */
.nav-menu li,
#navMenu li {
  display: contents !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* All nav items equal-width horizontal pills */
.nav-menu a,
#navMenu a,
.nav-menu > a,
#navMenu > a {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mid-gray);
  text-decoration: none !important;
  padding: 13px 8px;
  border-bottom: 3px solid transparent;
  border-left: none !important;
  border-top: none;
  border-right: none;
  transition: color 0.2s, border-color 0.2s;
  display: flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex: 1;
  text-align: center;
  background: none !important;
  float: none !important;
  clear: none !important;
  width: auto !important;
}
.nav-menu a:hover,
.nav-menu a.active,
#navMenu a:hover,
#navMenu a.active {
  color: var(--white) !important;
  border-bottom-color: var(--red) !important;
  background: none !important;
}
.nav-menu a.active,
#navMenu a.active { color: var(--red) !important; }

/* Hide extra items on mobile — show only 3 */
.nav-menu a.hide-mobile,
#navMenu a.hide-mobile { display: none !important; }

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
}

/* ══════════════════════════════════════════
   CATEGORY TAG
══════════════════════════════════════════ */
.category-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 8px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ══════════════════════════════════════════
   HERO — MOBILE FIRST
══════════════════════════════════════════ */
.hero {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #1a1a1a;
}
.hero-main {
  background: var(--card-bg);
  overflow: hidden;
  cursor: pointer;
  min-height: 240px;
  position: relative;
}
.hero-img-placeholder {
  width: 100%;
  min-height: 240px;
  background: linear-gradient(135deg, #1a0000 0%, #3a0000 40%, #0a0a0a 100%);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.big-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  font-size: 60px;
  opacity: 0.06;
}
.hero-content {
  padding: 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.98) 70%, transparent);
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 10px;
}
.hero-excerpt { display: none; }
.meta-line {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  color: var(--mid-gray);
  letter-spacing: 1px;
  flex-wrap: wrap;
}
.meta-line .author { color: var(--red); font-weight: 700; }

/* Hero sidebar — vertical on mobile */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-side-card {
  background: var(--card-bg);
  padding: 14px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.hero-side-card:hover { background: #1e1e1e; }
.hero-side-card .category-tag { margin-bottom: 0; flex-shrink: 0; }
.side-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
}
.side-meta {
  font-size: 10px;
  color: var(--mid-gray);
  margin-top: 4px;
}
.side-number { display: none; }

/* ══════════════════════════════════════════
   SECTION HEADING
══════════════════════════════════════════ */
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
}
.section-heading h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
}
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #222;
}

/* ══════════════════════════════════════════
   ARTICLE CARDS — MOBILE FIRST (list style)
══════════════════════════════════════════ */
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.article-card {
  background: var(--card-bg);
  padding: 14px;
  cursor: pointer;
  transition: background 0.2s;
  border-left: 3px solid transparent;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  background: #1a1a1a;
  border-left-color: var(--red);
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
  margin: 8px 0 6px;
}
.card-excerpt { display: none; }
.read-more {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--red);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}
.read-more::after { content: '→'; transition: transform 0.2s; }
.article-card:hover .read-more::after { transform: translateX(3px); }

/* ══════════════════════════════════════════
   TWO COL — SINGLE COL ON MOBILE
══════════════════════════════════════════ */
.two-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}

/* ══════════════════════════════════════════
   FEATURED LIST
══════════════════════════════════════════ */
.featured-list {}
.featured-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #1e1e1e;
  cursor: pointer;
  align-items: flex-start;
}
.featured-item:last-child { border-bottom: none; }
.featured-item:hover .featured-item-title { color: var(--red); }
.item-number {
  font-size: 22px;
  font-weight: 900;
  color: var(--red);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
}
.featured-item-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 4px;
  transition: color 0.2s;
}
.featured-item-meta {
  font-size: 10px;
  color: var(--mid-gray);
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
.sidebar { margin-top: 2px; }
.sidebar-widget {
  background: var(--card-bg);
  padding: 16px;
  margin-bottom: 2px;
}
.widget-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #222;
}

/* ══════════════════════════════════════════
   INSTAGRAM / YOUTUBE CTA
══════════════════════════════════════════ */
.insta-cta {
  background: linear-gradient(135deg, #1a0000, #000);
  border: 1px solid var(--red);
  padding: 20px 16px;
  text-align: center;
  margin-bottom: 2px;
}
.insta-handle {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.insta-handle span { color: var(--red); }
.insta-desc {
  font-size: 12px;
  color: var(--mid-gray);
  margin-bottom: 16px;
  line-height: 1.5;
}
.insta-btn {
  display: block;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 11px 16px;
  transition: background 0.2s;
  margin-bottom: 8px;
  text-align: center;
}
.insta-btn:last-child { margin-bottom: 0; }
.insta-btn:hover { background: var(--dark-red); }
.insta-btn.yt { background: var(--card-bg); border: 1px solid #333; }
.insta-btn.yt:hover { background: #1a1a1a; }

/* ══════════════════════════════════════════
   QUICK BYTES
══════════════════════════════════════════ */
.quick-byte {
  padding: 10px 0;
  border-bottom: 1px solid #1e1e1e;
  cursor: pointer;
}
.quick-byte:last-child { border-bottom: none; }
.quick-byte-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.quick-byte-title {
  font-size: 12px;
  color: #ccc;
  line-height: 1.4;
}

/* ══════════════════════════════════════════
   POST CONTENT
══════════════════════════════════════════ */
.post-content p  { margin-bottom: 18px; font-size: 15px; line-height: 1.8; }
.post-content h2 { font-size: 20px; font-weight: 900; color: var(--white); margin: 28px 0 14px; }
.post-content h3 { font-size: 17px; font-weight: 700; color: var(--white); margin: 20px 0 10px; }
.post-content a  { color: var(--red); }
.post-content ul, .post-content ol { margin: 0 0 18px 20px; }
.post-content li { margin-bottom: 6px; font-size: 15px; }
.post-content blockquote {
  border-left: 3px solid var(--red);
  padding: 10px 16px;
  margin: 20px 0;
  background: #1a1a1a;
  color: #ccc;
  font-style: italic;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: #050505;
  border-top: 3px solid var(--red);
  margin-top: 32px;
}
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-brand p {
  font-size: 12px;
  color: var(--mid-gray);
  line-height: 1.7;
  margin-top: 10px;
}
.logo-text-footer .logo-gk,
.logo-text-footer .logo-in { font-size: 24px; }
.logo-text-footer .logo-dot { font-size: 28px; }
.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
  padding: 5px 0;
  border-bottom: 1px solid #111;
}
.footer-col ul li a {
  font-size: 13px;
  color: var(--mid-gray);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--red); }
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.footer-bottom {
  border-top: 1px solid #111;
  padding: 14px 16px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.footer-bottom p { font-size: 11px; color: #444; letter-spacing: 1px; margin-bottom: 4px; }
.footer-bottom span { color: var(--red); }

/* ══════════════════════════════════════════
   RED RULE
══════════════════════════════════════════ */
.red-rule {
  height: 1px;
  background: linear-gradient(to right, var(--red), transparent);
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-main, .article-card { animation: fadeUp 0.4s ease forwards; }

/* ══════════════════════════════════════════
   TABLET (min 640px)
══════════════════════════════════════════ */
@media (min-width: 640px) {
  .articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }
  .article-card { padding: 18px; }
  .card-title   { font-size: 15px; }
  .hero-title   { font-size: 22px; }
  .hero-sidebar { flex-direction: row; }
  .hero-side-card {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .hero-side-card .category-tag { margin-bottom: 8px; }
  .side-number { display: block; font-size: 48px; opacity: 0.08;
    position: absolute; bottom: 10px; right: 14px; color: var(--red); }
}

/* ══════════════════════════════════════════
   DESKTOP (min 1024px)
══════════════════════════════════════════ */
@media (min-width: 1024px) {

  /* Header */
  .header-inner { padding: 20px 24px; }
  .logo-gk, .logo-in { font-size: 48px; letter-spacing: -2px; }
  .logo-dot           { font-size: 52px; }
  .header-meta        { display: block; text-align: right; }
  .header-meta .date  { font-size: 12px; color: var(--mid-gray); letter-spacing: 2px; text-transform: uppercase; }

  /* Nav — desktop: show all 6 items, larger font */
  .nav-inner { padding: 0 24px; }
  .nav-menu a,
  #navMenu a {
    font-size: 12px;
    letter-spacing: 1.5px;
    padding: 14px 16px;
    flex: none;
    text-align: center;
  }
  .nav-menu a.hide-mobile,
  #navMenu a.hide-mobile { display: flex !important; }

  /* Container */
  .container { padding: 0 24px; }

  /* Hero — side by side */
  .hero {
    flex-direction: row;
    padding: 0;
  }
  .hero-main        { flex: 2; min-height: 460px; }
  .hero-img-placeholder { min-height: 460px; }
  .hero-title       { font-size: 30px; }
  .hero-content     { padding: 28px; }
  .hero-excerpt     { display: block; font-size: 14px; color: #444; line-height: 1.6; margin-bottom: 16px; }
  .big-icon         { font-size: 120px; }
  .hero-sidebar     { flex: 1; flex-direction: column; }
  .hero-side-card   { flex: 1; flex-direction: column; }

  /* Article grid — 3 col */
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
  .card-title    { font-size: 17px; }
  .card-excerpt  { display: block; font-size: 13px; color: #999; line-height: 1.6; margin-bottom: 12px; }

  /* Two col layout */
  .two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }

  /* Footer grid */
  .footer-top {
    flex-direction: row;
    padding: 48px 24px 32px;
    gap: 48px;
    align-items: flex-start;
  }
  .footer-brand { flex: 2; }
  .footer-cols  { flex: 1; grid-template-columns: 1fr 1fr; }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 20px 24px;
  }
  .footer-bottom p { margin-bottom: 0; }

  /* Logo sizes */
  .logo-text-footer .logo-gk,
  .logo-text-footer .logo-in { font-size: 36px; }
  .logo-text-footer .logo-dot { font-size: 40px; }

  /* Section heading */
  .section-heading { margin: 40px 0 24px; }
  .section-heading h2 { font-size: 13px; }

  /* Featured item */
  .featured-item { padding: 16px 0; gap: 16px; }
  .item-number   { font-size: 32px; width: 36px; }
  .featured-item-title { font-size: 16px; }
  .featured-item-meta  { font-size: 11px; }

  /* Sidebar */
  .sidebar        { margin-top: 0; }
  .sidebar-widget { padding: 24px; }
  .insta-cta      { padding: 28px 24px; }
  .insta-handle   { font-size: 22px; }
  .insta-desc     { font-size: 13px; }
  .quick-byte-title { font-size: 13px; }
}
