/* Shared styles for individual blog post pages */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg-dark: #08050D;
  --bg-section: #0E0914;
  --bg-card: #160F20;
  --bg-card-hover: #1E152B;
  --purple-deep: #6B1D6E;
  --purple-mid: #8B2A8E;
  --purple-light: #B44DB8;
  --purple-glow: rgba(139, 42, 142, 0.4);
  --gold: #D4931A;
  --gold-light: #F0B84A;
  --gold-dim: rgba(212, 147, 26, 0.15);
  --magenta: #C23C6E;
  --blue-glow: #4FC3F7;
  --blue-glow-rgb: 79, 195, 247;
  --text-primary: #F0EAF5;
  --text-secondary: #C7BDD5;
  --text-dim: #9A8FAE;
  --border-subtle: rgba(139, 42, 142, 0.2);
  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Cormorant Garamond', serif;
  --max-width: 1200px;
  --nav-height: 90px;
  --swirl-height: 5px;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-dark);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(107, 29, 110, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 9999;
}

/* NAV */
.nav { position: fixed; top: var(--swirl-height); left: 0; right: 0; height: var(--nav-height); z-index: 1000; background: rgba(8, 5, 13, 0.95); backdrop-filter: blur(20px); box-shadow: 0 2px 30px rgba(107, 29, 110, 0.3); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 75px; width: auto; filter: drop-shadow(0 0 8px rgba(107, 29, 110, 0.5)); transition: filter 0.4s ease; }
.nav-logo:hover img { filter: drop-shadow(0 0 10px rgba(79, 195, 247, 0.7)) drop-shadow(0 0 25px rgba(79, 195, 247, 0.5)) drop-shadow(0 0 45px rgba(79, 195, 247, 0.3)); }
@property --border-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.border-snake { position: fixed; inset: 0; z-index: 9998; pointer-events: none; padding: 4px; background: conic-gradient(from var(--border-angle), #6B1D6E 0%, #8B2A8E 12%, #4FC3F7 25%, #B44DB8 37%, #D4931A 50%, #F0B84A 55%, #8B2A8E 67%, #4FC3F7 80%, #C23C6E 90%, #6B1D6E 100%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; animation: snake-rotate 5s linear infinite; }
@keyframes snake-rotate { to { --border-angle: 360deg; } }
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a { font-family: var(--font-heading); font-weight: 600; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-secondary); padding: 8px 16px; border-radius: 4px; transition: color 0.3s, text-shadow 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue-glow); text-shadow: 0 0 8px rgba(var(--blue-glow-rgb), 0.8), 0 0 20px rgba(var(--blue-glow-rgb), 0.5), 0 0 40px rgba(var(--blue-glow-rgb), 0.25); }
.nav-links a.active { background: rgba(var(--blue-glow-rgb), 0.08); }
.nav-contact { font-family: var(--font-heading); font-weight: 600; font-size: 13px; color: var(--gold); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.nav-contact a { color: var(--gold); transition: text-shadow 0.3s, color 0.3s; display: flex; align-items: center; gap: 6px; }
.nav-contact a:hover { text-shadow: 0 0 10px rgba(212, 147, 26, 0.6); }
.nav-contact .nav-email { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.nav-contact .nav-email:hover { color: var(--blue-glow); text-shadow: 0 0 8px rgba(var(--blue-glow-rgb), 0.5); }
.nav-contact svg { flex-shrink: 0; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; padding: 8px; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* POST HERO */
.post-hero {
  padding: 160px 0 70px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0b1f 0%, var(--purple-deep) 100%);
}
.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 30% 40%, rgba(212, 147, 26, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(79, 195, 247, 0.12) 0%, transparent 65%);
  pointer-events: none;
}
.post-hero > .container { position: relative; z-index: 1; }
.breadcrumb {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--gold); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: var(--text-primary); }
.post-hero-cat {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.post-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: 2px;
  line-height: 1.1;
  max-width: 900px;
  margin-bottom: 24px;
}
.post-hero-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-secondary);
}
.post-hero-meta strong { color: var(--gold-light); font-weight: 700; }

/* ARTICLE / PROSE */
.post-article {
  padding: 80px 0;
  background: var(--bg-dark);
}
.post-prose {
  max-width: 760px;
  margin: 0 auto;
}
.post-prose .lede {
  font-family: var(--font-body);
  font-size: 22px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 36px;
  padding-left: 24px;
  border-left: 3px solid var(--gold);
}
.post-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: 2px;
  color: var(--text-primary);
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.post-prose h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin: 32px 0 12px;
}
.post-prose p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 22px;
}
.post-prose p strong { color: var(--text-primary); }
.post-prose ul, .post-prose ol {
  color: var(--text-secondary);
  margin: 0 0 22px 28px;
  padding-left: 4px;
}
.post-prose li {
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: 18px;
}
.post-prose li strong { color: var(--gold-light); }
.post-prose blockquote {
  border-left: 3px solid var(--purple-mid);
  padding: 8px 0 8px 24px;
  margin: 28px 0;
  font-style: italic;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.55;
}

/* RELATED POSTS */
.related-wrap {
  max-width: 760px;
  margin: 70px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}
.related-wrap h3 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.related-card {
  display: block;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.related-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}
.related-cat {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.related-card strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.3;
  display: block;
}

/* BUTTONS */
.btn { font-family: var(--font-heading); font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; padding: 16px 36px; border-radius: 4px; transition: all 0.35s ease; display: inline-block; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #0A0510; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212, 147, 26, 0.4); }
.btn-outline { border: 2px solid var(--purple-mid); color: var(--text-primary); background: transparent; }
.btn-outline:hover { border-color: var(--blue-glow); color: var(--blue-glow); box-shadow: 0 0 20px rgba(var(--blue-glow-rgb), 0.2); transform: translateY(-2px); }

.gold-line { width: 60px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); margin: 16px auto 24px; border-radius: 2px; }

.cta-section { text-align: center; padding: 100px 0; position: relative; overflow: hidden; background: var(--bg-section); }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(107, 29, 110, 0.15) 0%, transparent 70%); }
.cta-section h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); letter-spacing: 2px; position: relative; margin-bottom: 16px; }
.cta-section p { font-size: 18px; color: var(--text-secondary); font-style: italic; margin-bottom: 32px; position: relative; }
.cta-section .btn { position: relative; }

/* FOOTER */
.footer { background: #060310; border-top: 1px solid var(--border-subtle); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-family: var(--font-heading); font-weight: 700; font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-primary); margin-bottom: 20px; }
.footer-col p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-family: var(--font-heading); font-size: 14px; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.5px; transition: color 0.3s, text-shadow 0.3s, padding-left 0.3s; }
.footer-col ul a:hover { color: var(--blue-glow); text-shadow: 0 0 8px rgba(var(--blue-glow-rgb), 0.5); padding-left: 6px; }
.footer-contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 15px; color: var(--text-secondary); }
.footer-contact-item svg { flex-shrink: 0; margin-top: 4px; color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-family: var(--font-heading); font-size: 13px; color: var(--text-dim); letter-spacing: 0.5px; }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border-subtle); color: var(--text-secondary); transition: all 0.3s; }
.footer-socials a:hover { border-color: var(--blue-glow); color: var(--blue-glow); box-shadow: 0 0 12px rgba(var(--blue-glow-rgb), 0.3); }

/* SOCIAL SIDEBAR */
.social-sidebar { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 9997; display: flex; flex-direction: column; gap: 10px; }
.social-sidebar a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: #fff; transition: all 0.35s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.3); position: relative; }
.social-sidebar a:hover { transform: scale(1.15) translateX(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.social-sidebar .social-fb { background: #1877F2; }
.social-sidebar .social-ig { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF, #515BD4); }
.social-sidebar .social-tt { background: #010101; border: 1px solid rgba(255,255,255,0.15); }
.social-sidebar a::before { content: attr(aria-label); position: absolute; right: calc(100% + 10px); background: var(--bg-card); border: 1px solid var(--border-subtle); color: var(--text-primary); font-family: var(--font-heading); font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 6px 12px; border-radius: 6px; white-space: nowrap; opacity: 0; transform: translateX(8px); transition: opacity 0.3s, transform 0.3s; pointer-events: none; }
.social-sidebar a:hover::before { opacity: 1; transform: translateX(0); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: calc(var(--nav-height) + var(--swirl-height)); left: 0; right: 0; bottom: 0; background: rgba(8, 5, 13, 0.98); flex-direction: column; align-items: center; justify-content: center; gap: 12px; overflow-y: auto; padding: 20px 0; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 18px; padding: 10px 24px; }
  .nav-toggle { display: flex; }
  .nav-contact { display: none; }
  .post-hero { padding: 130px 0 50px; }
  .post-prose { padding: 0 4px; }
  .post-prose .lede { font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .social-sidebar { display: none; }
}
