/* ==========================================================================
   pramodsown.com — Custom Theme Stylesheet
   Translated from React prototype (blog-prototype.jsx)
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --accent: #D4A04A;
  --bg-deep: #121212;
  --bg-card: #1A1A1A;
  --bg-hover: #222222;
  --text-primary: #F0ECE6;
  --text-muted: #8A8580;
  --text-dim: #5A5753;
  --border: #2A2826;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: 'Inter', Helvetica, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ---------- Selection & Scrollbar ---------- */
::selection {
  background: rgba(212, 160, 74, 0.19);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* ---------- Decorative Overlays ---------- */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.25;
}

.ambient-glow {
  position: fixed;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 160, 74, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: linear-gradient(to bottom, var(--bg-deep) 60%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  transition: opacity 0.3s;
}

.site-brand:hover {
  opacity: 0.8;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.brand-own {
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: var(--font-ui);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 13px;
  font-family: var(--font-ui);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Main Content ---------- */
.site-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
  padding-top: 100px;
  position: relative;
  z-index: 1;
}

/* ---------- Hero Section ---------- */
.hero {
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero-eyebrow {
  font-size: 11px;
  font-family: var(--font-ui);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 28px 0;
  letter-spacing: -2px;
  color: var(--text-primary);
}

.text-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0;
}

/* ---------- Section Divider ---------- */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(212, 160, 74, 0.25), var(--border), transparent);
  margin-bottom: 48px;
}

/* ---------- Category Filters ---------- */
.category-filters {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.cat-filter {
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-ui);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  user-select: none;
}

.cat-filter:hover {
  color: var(--text-muted);
}

.cat-filter.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Post List ---------- */
.post-item {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
  transition: padding-left 0.4s, border-left-color 0.4s;
}

.post-item:hover {
  padding-left: 16px;
  border-left-color: var(--accent);
}

.post-item-link {
  display: block;
}

.post-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.meta-category {
  font-size: 11px;
  font-family: var(--font-ui);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-dim);
  display: inline-block;
  flex-shrink: 0;
}

.meta-date,
.meta-readtime {
  font-size: 12px;
  font-family: var(--font-ui);
  color: var(--text-dim);
}

.post-item-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  margin: 0 0 14px 0;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text-primary);
}

.post-item-excerpt {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  max-width: 680px;
}

/* ---------- Single Post ---------- */
.post-single {
  padding-top: 40px;
  padding-bottom: 120px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-ui);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 60px;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--accent);
}

.back-arrow {
  font-size: 16px;
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 48px 0;
  letter-spacing: -2px;
  color: var(--text-primary);
  max-width: 700px;
}

.accent-line {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 48px;
}

.post-content {
  max-width: 640px;
}

.post-content p {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  letter-spacing: 0.2px;
}

.post-content p.refrain {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.5px;
  line-height: 1.8;
}

.post-content blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin: 28px 0;
}

.post-content blockquote p {
  color: var(--text-muted);
  font-style: italic;
}

.post-author-footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.written-by-label {
  font-size: 11px;
  font-family: var(--font-ui);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.written-by-name {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-primary);
}

/* ---------- About Page ---------- */
.about-page {
  padding-top: 60px;
  padding-bottom: 120px;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 48px 0;
  letter-spacing: -1.5px;
  color: var(--text-primary);
}

.about-content {
  max-width: 580px;
}

.about-content p {
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.about-content p.refrain {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  line-height: 1.6;
}

/* ---------- List Page ---------- */
.list-page {
  padding-top: 60px;
  padding-bottom: 120px;
}

.list-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 48px 0;
  letter-spacing: -1.5px;
  color: var(--text-primary);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright,
.footer-domain {
  font-size: 12px;
  font-family: var(--font-ui);
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-up-stagger {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--stagger-delay, 0ms);
}

.fade-up-stagger.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .site-main {
    padding: 0 20px;
    padding-top: 80px;
  }

  .nav-container {
    padding: 0 20px;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .post-item {
    padding: 28px 0;
  }

  .post-single {
    padding-bottom: 80px;
  }

  .back-link {
    margin-bottom: 40px;
  }

  .post-title {
    margin-bottom: 32px;
  }

  .accent-line {
    margin-bottom: 32px;
  }

  .footer-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
