/* VibeMonies.com - Modern Blog Design 2026 */

/* ========== CSS VARIABLES ========== */
:root {
  /* Typography - Optimized for Fintech/Trading/Coding */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Courier New', monospace;

  /* Colors */
  --bg: #fafbfc;
  --bg-white: #ffffff;
  --bg-dark: #0f172a;
  --text: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Category Colors */
  --prediction-green: #10b981;
  --prediction-green-light: #d1fae5;
  --prediction-green-dark: #065f46;

  --vibe-purple: #8b5cf6;
  --vibe-purple-light: #ede9fe;
  --vibe-purple-dark: #5b21b6;

  --money-amber: #f59e0b;
  --money-amber-light: #fef3c7;
  --money-amber-dark: #92400e;

  /* Accent */
  --accent: #6366f1;
  --accent-light: #eef2ff;

  /* Borders & Shadows */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --gradient-prediction: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-vibe: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --gradient-money: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-mesh: radial-gradient(at 40% 20%, hsla(240, 100%, 74%, 0.15) 0px, transparent 50%),
                   radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.1) 0px, transparent 50%),
                   radial-gradient(at 0% 50%, hsla(355, 85%, 63%, 0.1) 0px, transparent 50%),
                   radial-gradient(at 80% 50%, hsla(267, 100%, 76%, 0.1) 0px, transparent 50%),
                   radial-gradient(at 0% 100%, hsla(22, 100%, 77%, 0.1) 0px, transparent 50%);

  /* Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Apply display font to all headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--vibe-purple);
}

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

/* ========== HEADER ========== */
header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.logo span {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

nav a:hover {
  color: var(--text);
  background: var(--border-light);
}

/* ========== MAIN LAYOUT ========== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ========== HERO SECTION ========== */
.hero {
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  margin-bottom: 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Decorative shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  position: relative;
  z-index: 1;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

/* ========== CATEGORY PILLS ========== */
.category-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.category-nav a {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.category-nav a.all {
  background: var(--bg-dark);
  color: white;
}

.category-nav a.all:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.category-nav a.prediction-markets {
  background: var(--prediction-green-light);
  color: var(--prediction-green-dark);
  border-color: var(--prediction-green-light);
}

.category-nav a.prediction-markets:hover {
  background: var(--prediction-green);
  color: white;
  border-color: var(--prediction-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.category-nav a.vibe-coding {
  background: var(--vibe-purple-light);
  color: var(--vibe-purple-dark);
  border-color: var(--vibe-purple-light);
}

.category-nav a.vibe-coding:hover {
  background: var(--vibe-purple);
  color: white;
  border-color: var(--vibe-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.category-nav a.making-money {
  background: var(--money-amber-light);
  color: var(--money-amber-dark);
  border-color: var(--money-amber-light);
}

.category-nav a.making-money:hover {
  background: var(--money-amber);
  color: white;
  border-color: var(--money-amber);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* ========== SECTION STYLING ========== */
.section {
  margin-bottom: 4rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-light);
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-header h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--gradient-hero);
  border-radius: 2px;
}

.section-header a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.section-header a:hover {
  gap: 0.5rem;
}

/* ========== FEATURED POST ========== */
.featured-post {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.featured-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.featured-post .post-card-image {
  height: 100%;
  min-height: 350px;
  position: relative;
  overflow: hidden;
}

.featured-post .post-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.8) 100%);
  z-index: 1;
}

.featured-post .post-card-image .category-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.featured-post .post-card-image .category-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.featured-post .post-card-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-post .featured-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.featured-post .featured-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.featured-post h3 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text);
}

.featured-post h3 a {
  color: inherit;
}

.featured-post h3 a:hover {
  color: var(--accent);
}

.featured-post .post-excerpt {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.featured-post .post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.featured-post .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-dark);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.featured-post .read-more:hover {
  background: var(--accent);
  transform: translateX(4px);
}

/* ========== POSTS GRID ========== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ========== POST CARDS ========== */
.post-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: relative;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.post-card-image {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
}

/* Category-specific gradients for card images */
.post-card[data-category="prediction-markets"] .post-card-image,
.post-card .post-card-image.prediction-markets {
  background: var(--gradient-prediction);
}

.post-card[data-category="vibe-coding"] .post-card-image,
.post-card .post-card-image.vibe-coding {
  background: var(--gradient-vibe);
}

.post-card[data-category="making-money"] .post-card-image,
.post-card .post-card-image.making-money {
  background: var(--gradient-money);
}

.post-card-image {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.08);
}

/* Placeholder icon styling */
.post-card-image .placeholder-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  color: rgba(255,255,255,0.5);
}

/* Decorative shapes on cards */
.post-card-image::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.post-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.post-card h3 a {
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card h3 a:hover {
  color: var(--accent);
}

.post-card .post-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-light);
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* ========== CATEGORY TAGS ========== */
.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.category-tag.prediction-markets {
  background: var(--prediction-green-light);
  color: var(--prediction-green-dark);
}

.category-tag.vibe-coding {
  background: var(--vibe-purple-light);
  color: var(--vibe-purple-dark);
}

.category-tag.making-money {
  background: var(--money-amber-light);
  color: var(--money-amber-dark);
}

/* ========== CATEGORY SECTIONS ON HOMEPAGE ========== */
.category-section {
  margin-bottom: 4rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.category-section.prediction-markets {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.category-section.vibe-coding {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.category-section.making-money {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.1);
}

.category-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, currentColor 0%, transparent 70%);
  opacity: 0.03;
  pointer-events: none;
}

.category-section .section-header {
  border-bottom-color: rgba(0,0,0,0.05);
}

.category-section.prediction-markets .section-header h2::before {
  background: var(--gradient-prediction);
}

.category-section.vibe-coding .section-header h2::before {
  background: var(--gradient-vibe);
}

.category-section.making-money .section-header h2::before {
  background: var(--gradient-money);
}

/* ========== NEWSLETTER SECTION ========== */
.newsletter {
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 4rem 0;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.5;
}

.newsletter h3 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  position: relative;
}

.newsletter p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 450px;
  margin: 0 auto;
  position: relative;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  font-size: 1rem;
  background: rgba(255,255,255,0.05);
  color: white;
  transition: all 0.2s;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.1);
}

.newsletter-form button {
  background: white;
  color: var(--bg-dark);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}

/* ========== BROWSE SECTION ========== */
.browse-section {
  text-align: center;
  padding: 3rem;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  margin-top: 2rem;
}

.browse-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.browse-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.browse-links a {
  padding: 1rem 2rem;
  background: var(--bg);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 600;
  transition: all 0.25s;
  border: 2px solid var(--border);
}

.browse-links a:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ========== STATS BAR ========== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card .stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== ARTICLE PAGE ========== */
article {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}

article h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
  letter-spacing: -0.5px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-featured-image {
  width: calc(100% + 6rem);
  margin: -3rem -3rem 2rem -3rem;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-featured-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--bg-white), transparent);
}

article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text);
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
}

article h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

article p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

article ul, article ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

article li {
  margin-bottom: 0.5rem;
}

article strong {
  color: var(--text);
  font-weight: 600;
}

article blockquote {
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 1.1rem;
}

article code {
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: var(--font-mono);
  color: var(--vibe-purple);
}

article pre {
  background: var(--bg-dark);
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}

article pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ========== CTA BOX ========== */
.cta-box {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--vibe-purple-light) 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.1;
}

.cta-box h3 {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
}

.cta-box p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  position: relative;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  position: relative;
}

.cta-button:hover {
  background: var(--vibe-purple);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  color: white;
}

/* ========== CATEGORY PAGE ========== */
.category-header {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.category-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background: var(--gradient-mesh);
  opacity: 0.5;
}

.category-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text);
  position: relative;
}

.category-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  position: relative;
}

/* ========== SUBCATEGORY TAGS ========== */
.subcategory-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.subcategory-nav a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  transition: all 0.2s;
}

.subcategory-nav a:hover,
.subcategory-nav a.active {
  background: var(--accent);
  color: white;
}

/* ========== TABLE STYLING ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--bg);
}

/* ========== FOOTER ========== */
footer {
  background: var(--bg-dark);
  color: white;
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-hero);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  opacity: 0.7;
  font-size: 0.9rem;
}

footer nav {
  display: flex;
  gap: 1.5rem;
}

footer nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

footer nav a:hover {
  color: white;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post .post-card-image {
    min-height: 250px;
  }

  .stats-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  main {
    padding: 1rem;
  }

  article {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }

  article h1 {
    font-size: 1.75rem;
  }

  .article-featured-image {
    width: calc(100% + 3rem);
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    height: 250px;
  }

  .category-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .newsletter {
    padding: 2rem 1.5rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .category-section {
    padding: 1.5rem;
  }

  .browse-section {
    padding: 2rem 1.5rem;
  }
}

/* ========== LOADING STATES ========== */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.loading {
  background: linear-gradient(90deg, var(--bg) 0%, var(--border-light) 50%, var(--bg) 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-hero);
  z-index: 1001;
  transition: width 0.1s;
}

/* ========== READING PROGRESS BAR ========== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--gradient-hero);
  z-index: 1002;
  transition: width 0.1s ease-out;
}

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .separator {
  color: var(--text-light);
}

.breadcrumbs .current {
  color: var(--text-muted);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== ENHANCED ARTICLE META ========== */
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-light);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-meta svg {
  opacity: 0.6;
}

.meta-divider {
  color: var(--text-light);
}

.meta-updated {
  color: var(--prediction-green);
}

/* ========== TABLE OF CONTENTS ========== */
.toc-wrapper {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  overflow: hidden;
}

.toc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
}

.toc-toggle:hover {
  background: var(--border-light);
}

.toc-toggle .chevron {
  margin-left: auto;
  transition: transform 0.3s;
}

.toc-wrapper.open .toc-toggle .chevron {
  transform: rotate(180deg);
}

.toc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.toc-wrapper.open .toc-content {
  max-height: 500px;
}

.toc-content nav {
  padding: 0 1.25rem 1.25rem;
}

.toc-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc-content li {
  margin: 0;
  padding: 0;
}

.toc-content a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s;
}

.toc-content a:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

.toc-content ul ul {
  padding-left: 1rem;
}

.toc-content ul ul a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== SOCIAL SHARING ========== */
.social-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.share-label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.share-btn.twitter:hover {
  background: #000;
  color: white;
  border-color: #000;
}

.share-btn.linkedin:hover {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

.share-btn.facebook:hover {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
}

.share-btn.copy-link:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.share-btn.copied {
  background: var(--prediction-green) !important;
  color: white !important;
  border-color: var(--prediction-green) !important;
}

/* ========== AUTHOR BIO ========== */
.author-bio {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--vibe-purple-light) 100%);
  border-radius: var(--radius);
  margin: 2rem 0;
  align-items: flex-start;
}

.author-avatar {
  width: 64px;
  height: 64px;
  background: var(--bg-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.author-info h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.author-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ========== COPY CODE BUTTON ========== */
.code-block-wrapper {
  position: relative;
}

.copy-code-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
}

.code-block-wrapper:hover .copy-code-btn {
  opacity: 1;
}

.copy-code-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.copy-code-btn.copied {
  background: var(--prediction-green);
  color: white;
  border-color: var(--prediction-green);
}

/* ========== NEWSLETTER IN ARTICLE ========== */
.article-newsletter {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.3;
}

.article-newsletter h3 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 0.5rem;
  position: relative;
}

.article-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  position: relative;
}

.article-newsletter .newsletter-form {
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

/* ========== LAZY LOADING ========== */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src] {
  opacity: 1;
}

/* ========== RELATED POSTS ENHANCED ========== */
.related-posts {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-light);
}

.related-posts h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-posts h3::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--gradient-hero);
  border-radius: 2px;
}

/* ========== FAQ SCHEMA STYLING ========== */
.faq-section {
  margin: 2rem 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--border-light);
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== ARTICLE CONTENT WRAPPER ========== */
.article-content {
  margin-bottom: 2rem;
}

.article-content > p:first-child::first-letter {
  font-size: 3.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  margin-top: 0.1rem;
  color: var(--accent);
}

/* ========== MOBILE RESPONSIVE ADDITIONS ========== */
@media (max-width: 768px) {
  .breadcrumbs {
    font-size: 0.8rem;
  }

  .social-share {
    flex-direction: column;
    align-items: flex-start;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  .author-avatar {
    margin: 0 auto;
  }

  .toc-wrapper {
    margin-bottom: 1.5rem;
  }

  .article-content > p:first-child::first-letter {
    font-size: 2.5rem;
  }
}
