/* ===================================================================
   Taruyash — shared site stylesheet
   This file is intentionally additive: it does NOT redeclare the
   per-page design tokens/colours that already live inline on each
   article (those were left untouched to avoid visual regressions).
   It supplies things that were missing site-wide: an accessible
   skip-link, visible keyboard focus states, and the new navigation
   components (breadcrumbs, related-articles, prev/next) used across
   every page.
   =================================================================== */

/* ---------- Base / reset (safe, matches existing inline resets) ---------- */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- Article hero images (converted from CSS-background divs to
   real <img> elements so they are eligible for Google Images / Discover
   and can carry proper alt text). The parent keeps its existing frame
   (radius/border/height) from each page's own inline <style>; this just
   makes the <img> fill that frame. ---------- */
.hero-image img,
.hero-img img,
.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* ---------- Accessibility: skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: #fff;
  color: #0f172a;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Accessibility: visible focus for keyboard users ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb-nav {
  max-width: 900px;
  margin: 110px auto 0;
  padding: 0 20px;
}
.breadcrumb-nav ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  color: #8b93ac;
}
.breadcrumb-nav li { display: flex; align-items: center; gap: 6px; }
.breadcrumb-nav li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #4b5468;
}
.breadcrumb-nav a { color: #8b93ac; text-decoration: none; }
.breadcrumb-nav a:hover { color: #fff; text-decoration: underline; }
.breadcrumb-nav li[aria-current="page"] { color: #cbd5e1; }

@media (max-width: 640px) {
  .breadcrumb-nav { margin-top: 90px; }
}

/* ---------- Related Articles ---------- */
.related-section {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 20px;
}
.related-section h2 {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.related-card {
  display: block;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.related-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(255,255,255,0.05);
  transform: translateY(-3px);
}
.related-card .related-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 8px;
}
.related-card h3 {
  font-size: 15.5px;
  line-height: 1.4;
  color: #f1f5f9;
  font-weight: 600;
  margin: 0;
}

/* ---------- Prev / Next article navigation ---------- */
.prevnext-nav {
  max-width: 900px;
  margin: 0 auto 20px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.prevnext-nav a {
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: #f1f5f9;
  transition: border-color 0.25s, background 0.25s;
}
.prevnext-nav a:hover { border-color: rgba(56,189,248,0.5); background: rgba(255,255,255,0.03); }
.prevnext-nav .dir-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b93ac;
  margin-bottom: 6px;
}
.prevnext-nav .next-link { text-align: right; }
@media (max-width: 640px) {
  .prevnext-nav { grid-template-columns: 1fr; }
  .prevnext-nav .next-link { text-align: left; }
}

/* ---------- Category pill badges reused on homepage cards ---------- */
.taxo-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.taxo-bulandshahr { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.taxo-up { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.taxo-india { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.taxo-guides, .taxo-business { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.taxo-technical { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.taxo-comparison { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.taxo-company { background: rgba(167, 139, 250, 0.15); color: #a78bfa; }

/* ---------- Lightweight toast (reused across pages for the newsletter form) ---------- */
.tv-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #10141f;
  border: 1px solid rgba(255,255,255,0.12);
  color: #f1f5f9;
  padding: 14px 22px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 5000;
  max-width: 90vw;
}
.tv-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.tv-toast .tv-toast-icon { color: #34d399; font-weight: 700; }

/* ====================================================================
   Shared navigation (previously duplicated inline inside navbar.html
   on every page load — moved here so it ships once and is cached)
   ==================================================================== */
  /* Floating Wrapper */
  .premium-nav-wrapper {
    position: fixed;
    top: 24px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
    transition: all 0.4s ease;
  }

  /* The Pill Navigation */
  .pill-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
    height: 64px;
    padding: 0 12px 0 24px;
    background: rgba(10, 14, 30, 0.55);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  /* Brand / Logo */
  .nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Georgia', serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
  }
  .nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #a997ff, #6257e8);
    box-shadow: 0 0 20px rgba(138, 124, 255, 0.4);
    transform: rotate(10deg);
  }
  .nav-logo::after {
    content: "✦";
    color: white;
    transform: rotate(-10deg);
    font-size: 16px;
  }

  /* Desktop Links */
  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .nav-link {
    color: #8b93ac;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
  }
  .nav-link:hover, .nav-link.active {
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  }
  
  /* Desktop Actions */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .search-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: 0.3s;
  }
  .search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }
  .subscribe-btn {
    background: linear-gradient(105deg, #8a7cff, #38bdf8);
    color: #fff;
    border: none;
    padding: 0 24px;
    height: 42px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(138, 124, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(138, 124, 255, 0.45);
  }

  /* Hamburger Menu (Hidden on Desktop) */
  .hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
  }
  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
  }

  /* Mobile Overlay Actions */
  .mobile-actions {
    display: none;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .mobile-actions .subscribe-btn {
    width: 100%;
  }

  /* Responsive Mobile Design */
  @media (max-width: 768px) {
    .premium-nav-wrapper { top: 12px; }
    .pill-nav { height: 60px; padding: 0 16px; }
    .nav-actions { display: none; } /* Hide desktop actions */
    .hamburger { display: block; }
    
    /* Mobile Dropdown Menu Design */
    .nav-links {
      position: fixed;
      top: 80px;
      left: 50%;
      transform: translateX(-50%) scale(0.95);
      width: calc(100% - 40px);
      background: rgba(12, 16, 32, 0.95);
      backdrop-filter: blur(25px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 24px;
      padding: 30px 24px;
      flex-direction: column;
      gap: 20px;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
      box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    }
    
    .nav-links.active {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) scale(1);
    }
    
    .nav-link { font-size: 16px; width: 100%; text-align: left; }
    .mobile-actions { display: block; }

    /* Hamburger Animation to 'X' */
    .hamburger.active span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }
  }

/* ====================================================================
   Shared footer (previously duplicated inline inside footer.html)
   ==================================================================== */
  .site-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #0a0d18;
    padding: 60px 20px 30px;
    margin-top: 80px;
  }
  .site-footer .footer-inner {
    max-width: 1140px;
    margin: 0 auto;
  }
  .site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .site-footer .footer-brand {
    font-family: Georgia, serif;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }
  .site-footer .footer-brand .mark {
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, #a997ff, #6257e8);
    display: grid; place-items: center; font-size: 14px; color: #fff;
    transform: rotate(10deg);
  }
  .site-footer .footer-about {
    color: #8b93ac;
    font-size: 13.5px;
    line-height: 1.7;
    max-width: 320px;
  }
  .site-footer h4 {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    font-weight: 700;
  }
  .site-footer ul { list-style: none; margin: 0; padding: 0; }
  .site-footer li { margin-bottom: 10px; }
  .site-footer a.footer-link {
    color: #8b93ac;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
  }
  .site-footer a.footer-link:hover { color: #fff; }
  .site-footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    color: #64748b;
    font-size: 12.5px;
  }
  .site-footer .footer-bottom a { color: #64748b; text-decoration: none; }
  .site-footer .footer-bottom a:hover { color: #cbd5e1; }
  .site-footer .footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }

  @media (max-width: 900px) {
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 560px) {
    .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
  }
