/* ==========================================================================
   STREAT EATS — UNIFIED BLOG & MULTI-PAGE STYLESHEET
   ========================================================================== */

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

:root {
  --pri: #FF6B35;
  --pri-dark: #E55A2B;
  --pri-light: #FFF0E8;
  --pri-glow: rgba(255, 107, 53, 0.25);
  --bg: #FFF8F0;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text2: #3D3D3D;
  --muted: #6B7280;
  --border: #E5E7EB;
  --grad: linear-gradient(135deg, #FF6B35 0%, #FF8C42 50%, #FFa857 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --fh: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --fb: 'DM Sans', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
  font-family: var(--fb);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   UNIFIED NAVBAR (Identical to Landing Page)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--grad);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--pri-glow);
}

.nav-acts {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-acts.desktop {
  display: flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--fh);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-pri {
  background: var(--grad);
  color: #FFF;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
}

.btn-pri:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
}

.btn-out {
  background: transparent;
  color: var(--text2);
  border: 1.5px solid var(--border);
}

.btn-out:hover {
  border-color: var(--pri);
  color: var(--pri);
  background: var(--pri-light);
}

/* Mobile Hamburger Menu */
.mob-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--text);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.mob-btn.active .hamburger span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.mob-btn.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.mob-btn.active .hamburger span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mob-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.mob-menu.active {
  display: flex;
}

@media(max-width: 768px) {
  .nav-acts.desktop {
    display: none;
  }
  .mob-btn {
    display: block;
  }
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumbs {
  padding: 24px 0 10px;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--pri);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   ARTICLE HEADER
   ========================================================================== */
.article-header {
  padding: 16px 0 32px;
}

.article-tag {
  display: inline-block;
  font-family: var(--fh);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--pri);
  background: var(--pri-light);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}

.article-tag.tag-hindi {
  color: #166534;
  background: #DCFCE7;
}

.article-tag.tag-food {
  color: #C2410C;
  background: #FFEDD5;
}

.article-title {
  font-family: var(--fh);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.author-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pri);
}

.author-name {
  font-weight: 700;
  color: var(--text);
}

/* Featured Cover Image */
.featured-cover {
  width: 100%;
  max-height: 520px;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin: 32px 0 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  background: #F3F4F6;
}

.featured-cover img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.featured-caption {
  padding: 12px 18px;
  background: rgba(26, 26, 26, 0.88);
  color: #FFF;
  font-size: 0.85rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   ARTICLE LAYOUT & SIDEBAR (FIXED STICKY OVERLAP ISSUE)
   ========================================================================== */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 48px;
  margin-bottom: 60px;
  align-items: start;
}

/* Fix for sidebar overlapping content on scroll */
.article-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: flex-start;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  position: static; /* Important: prevents child overlapping */
}

.sidebar-title {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.founder-profile-card {
  text-align: center;
}

.founder-profile-card img {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--pri);
  box-shadow: var(--shadow-sm);
}

.founder-profile-card h3 {
  font-family: var(--fh);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.founder-profile-card .founder-role {
  font-size: 0.82rem;
  color: var(--pri);
  font-weight: 700;
  margin-bottom: 14px;
}

.founder-profile-card p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
}

.social-btn:hover {
  background: var(--pri-light);
  border-color: var(--pri);
  color: var(--pri);
}

/* ==========================================================================
   ARTICLE CONTENT & TYPOGRAPHY
   ========================================================================== */
.article-content {
  font-size: 1.08rem;
  color: var(--text2);
  line-height: 1.88;
}

.article-content p {
  margin-bottom: 22px;
}

.article-content h2 {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--text);
  margin: 40px 0 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  margin: 32px 0 14px;
  line-height: 1.3;
}

.article-content strong {
  color: var(--text);
  font-weight: 700;
}

.article-content ul,
.article-content ol {
  margin: 18px 0 26px 24px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content blockquote {
  border-left: 4px solid var(--pri);
  background: var(--pri-light);
  padding: 22px 26px;
  margin: 32px 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.12rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.75;
}

/* Inline Images */
.inline-img-box {
  margin: 36px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

.inline-img-box img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.inline-img-caption {
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* Key Takeaway Box */
.key-takeaway {
  background: linear-gradient(135deg, #FFF0E8 0%, #FFE5D6 100%);
  border: 2px solid rgba(255, 107, 53, 0.3);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  margin: 34px 0;
}

.key-takeaway h4 {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--pri-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Food Item Box */
.food-item-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.food-item-meta {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.food-badge {
  background: var(--pri-light);
  color: var(--pri-dark);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
}

/* Author Bio Box */
.author-bio-box {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  margin: 48px 0;
}

.author-bio-img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--pri);
}

.author-bio-text h4 {
  font-family: var(--fh);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.author-bio-text p {
  font-size: 0.92rem;
  color: var(--text2);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   RELATED ARTICLES SECTION
   ========================================================================== */
.related-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0;
  margin-top: 40px;
}

.related-title {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 32px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  background: var(--bg);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--pri);
}

.related-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

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

.related-card h4 {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text);
}

.related-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: auto;
}

/* ==========================================================================
   UNIFIED 4-COLUMN FOOTER (Identical to Landing Page)
   ========================================================================== */
.footer {
  background: #1A1A1A;
  color: #9CA3AF;
  padding: 60px 0 32px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 1.4rem;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #9CA3AF;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFF;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: var(--pri);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #2D3748;
  color: #6B7280;
  font-size: 0.84rem;
}

@media(max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media(max-width: 860px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .author-bio-box {
    flex-direction: column;
    text-align: center;
  }
}

@media(max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
