/*
Theme Name: Rajesh Goli
Description: Dark editorial theme matching rajeshgo.li portfolio
Version: 1.0
Author: Rajesh Goli
*/

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #e8e8e8;
  background: #09090D;
  -webkit-font-smoothing: antialiased;
}

a { color: #5EE7FF; text-decoration: none; transition: color 0.2s; }
a:hover { color: #93c5fd; }
strong { font-weight: 600; }
img { max-width: 100%; height: auto; border-radius: 6px; }
blockquote {
  border-left: 3px solid #3b82f6;
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: #999;
  font-style: italic;
  background: rgba(255,255,255,0.02);
  border-radius: 0 6px 6px 0;
}
code, pre {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.88rem;
}
code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: #5EE7FF;
}
pre {
  background: #121219;
  border: 1px solid #2B2B37;
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.5;
}
pre code { background: none; padding: 0; color: #e8e8e8; }
hr {
  border: none;
  border-top: 1px solid #2B2B37;
  margin: 2.5rem 0;
}
table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; }
th, td {
  padding: 0.6rem 1rem;
  border: 1px solid #2B2B37;
  text-align: left;
  font-size: 0.9rem;
}
th { background: #121219; color: #ADB2C2; font-weight: 600; }

/* --- Layout --- */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Hero (Blog Home) --- */
.blog-hero {
  padding: 6rem 0 3rem;
  border-bottom: 1px solid #2B2B37;
}
.blog-hero h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 0.75rem;
}
.blog-hero p {
  font-size: 1.05rem;
  color: #777C8B;
  max-width: 540px;
}

/* --- Wider Container --- */
.container-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Category Filter Pills --- */
.cat-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.cat-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #2B2B37;
  color: #ADB2C2;
  transition: all 0.2s;
}
.cat-pill:hover {
  border-color: rgba(94,231,255,0.3);
  color: #5EE7FF;
}
.cat-pill-active {
  background: rgba(94,231,255,0.15);
  border-color: rgba(94,231,255,0.3);
  color: #5EE7FF;
}

/* --- Shared Post Meta --- */
.post-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.post-date {
  font-size: 0.7rem;
  color: #777C8B;
  font-family: ui-monospace, monospace;
}
.post-category {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5EE7FF;
  background: rgba(94,231,255,0.1);
  padding: 2px 8px;
  border-radius: 4px;
}
.post-excerpt {
  font-size: 0.88rem;
  color: #ADB2C2;
  line-height: 1.6;
}
.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #5EE7FF;
}

/* --- Featured Post (first post, full width) --- */
.featured-post {
  padding: 2rem 0;
  border-bottom: 1px solid #2B2B37;
}
.featured-card {
  display: block;
  background: #121219;
  border: 1px solid #2B2B37;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
  color: inherit;
}
.featured-card:hover {
  border-color: rgba(94,231,255,0.25);
  background: #181820;
}
.featured-banner {
  height: 8px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}
.featured-content {
  padding: 2.5rem;
}
.featured-card h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #F5F7FA;
  margin-bottom: 0.75rem;
}
.featured-card .post-excerpt {
  font-size: 1rem;
  max-width: 640px;
}

/* --- Post Card Grid --- */
.post-grid-section {
  padding: 2rem 0 3rem;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #121219;
  border: 1px solid #2B2B37;
  border-radius: 14px;
  padding: 0;
  transition: border-color 0.2s, background 0.2s;
  color: inherit;
  min-height: 220px;
  overflow: hidden;
}
.post-card:hover {
  border-color: rgba(94,231,255,0.25);
  background: #181820;
}
.post-card-banner {
  height: 6px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}
.post-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex; flex-direction: column; flex: 1;
}

/* Category-specific banner gradients */
.banner-short-stories { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.banner-travelogue { background: linear-gradient(135deg, #22c55e, #0ea5e9); }
.banner-opinion { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.banner-academic { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.banner-miscellaneous { background: linear-gradient(135deg, #6366f1, #a78bfa); }
.banner-tech { background: linear-gradient(135deg, #14b8a6, #22d3ee); }
.banner-telecom { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.banner-aiml { background: linear-gradient(135deg, #f43f5e, #fb923c); }

/* Reading time badge */
.read-time {
  font-size: 0.6rem; font-weight: 600; color: #555;
  font-family: ui-monospace, monospace;
  margin-left: auto;
}
.post-card h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #F5F7FA;
  margin-bottom: 0.6rem;
  flex-shrink: 0;
}
.post-card .post-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}
.post-card .read-more {
  margin-top: auto;
  font-size: 0.8rem;
}

/* --- Single Post --- */
.single-header {
  padding: 6rem 0 2rem;
  border-bottom: 1px solid #2B2B37;
}
.single-header h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1rem;
}
.archive-notice {
  margin-top: 1.25rem;
  max-width: 720px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  color: #d1d5db;
  font-size: 0.9rem;
  line-height: 1.5;
}
.archive-notice strong {
  color: #fbbf24;
}
.single-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.post-content {
  padding: 3rem 0 4rem;
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #F5F7FA;
  margin: 2rem 0 0.75rem;
}
.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.35rem; }
.post-content h4 { font-size: 1.1rem; }
.post-content p {
  margin-bottom: 1.25rem;
  color: #d1d5db;
}
.post-content ul,
.post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: #d1d5db;
}
.post-content li { margin-bottom: 0.4rem; }
.post-content figure {
  margin: 2rem 0;
}
.post-content figcaption {
  font-size: 0.8rem;
  color: #777C8B;
  text-align: center;
  margin-top: 0.5rem;
}

/* --- Post Navigation --- */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid #2B2B37;
}
.post-nav-next { text-align: right; }
.post-nav a {
  font-size: 0.85rem;
  color: #ADB2C2;
}
.post-nav a:hover { color: #5EE7FF; }
.post-nav .nav-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #777C8B;
  display: block;
  margin-bottom: 0.25rem;
}

/* --- Tags --- */
.tag-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.tag-link {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #2B2B37;
  color: #ADB2C2;
}
.tag-link:hover {
  border-color: rgba(94,231,255,0.3);
  color: #5EE7FF;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.pagination a, .pagination span {
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 6px;
}
.pagination a {
  color: #ADB2C2;
  background: rgba(255,255,255,0.04);
  border: 1px solid #2B2B37;
}
.pagination a:hover {
  border-color: #5EE7FF;
  color: #5EE7FF;
}
.pagination .current {
  background: rgba(94,231,255,0.15);
  color: #5EE7FF;
  border: 1px solid rgba(94,231,255,0.3);
}

/* --- Footer (matches main page) --- */
.footer {
  padding: 1.5rem 0; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #0f0f0f;
}
.footer p { font-size: 0.8rem; color: #555; }
.footer a { color: #777C8B; }
.footer a:hover { color: #5EE7FF; }

/* --- Responsive --- */
@media (max-width: 767px) {
  .blog-hero { padding: 5rem 0 2rem; }
  .blog-hero h1 { font-size: 2rem; }
  .single-header { padding: 5rem 0 1.5rem; }
  .single-header h1 { font-size: 1.75rem; }
  .post-item h2 { font-size: 1.25rem; }
  .post-nav { flex-direction: column; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { min-height: auto; }
  .featured-card { padding: 1.5rem; }
  .featured-card h2 { font-size: 1.5rem; }
}
