/* V Contaminator Styles */

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

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #14b8a6;
  --accent: #1a1a1a;
  --dark: #111;
  --gray-900: #1a1a1a;
  --gray-800: #2d2d2d;
  --gray-700: #404040;
  --gray-600: #525252;
  --gray-500: #737373;
  --gray-400: #a3a3a3;
  --gray-300: #d4d4d4;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --light-bg: #fafafa;
  --warm-bg: #f0fdfa;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Site Navigation ===== */
.vc-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
}

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

.vc-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 700;
  font-size: 1rem;
}

.vc-nav-logo {
  width: 24px;
  height: 24px;
}

.vc-nav-name {
  color: var(--primary);
}

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

.vc-nav-links a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.vc-nav-links a:hover,
.vc-nav-links a.active {
  color: var(--primary);
}

.vc-nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.vc-nav-cta:hover {
  background: var(--primary-dark) !important;
}

.vc-nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.vc-nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  transition: all 0.3s;
}

.vc-nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.vc-nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.vc-mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.vc-mobile-menu.active {
  display: flex;
}

.vc-mobile-menu a {
  padding: 16px;
  color: var(--gray-900);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-200);
}

.vc-mobile-menu a:hover,
.vc-mobile-menu a.active {
  color: var(--primary);
}

.vc-mobile-cta {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 8px;
  text-align: center;
  margin-top: 16px;
  border: none !important;
}

@media (max-width: 768px) {
  .vc-nav-links {
    display: none;
  }

  .vc-nav-hamburger {
    display: flex;
  }
}

/* ===== Site Footer ===== */
.vc-footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 64px 24px 32px;
}

.vc-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.vc-footer-brand img {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.vc-footer-brand h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.vc-footer-brand p {
  color: var(--gray-400);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.vc-footer-links h4 {
  color: var(--white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.vc-footer-links ul {
  list-style: none;
}

.vc-footer-links li {
  margin-bottom: 10px;
}

.vc-footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.vc-footer-links a:hover {
  color: var(--primary);
}

.vc-footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--gray-700);
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .vc-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .vc-footer-brand {
    grid-column: span 2;
  }
}

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

  .vc-footer-brand {
    grid-column: span 1;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: 2.5rem;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--gray-700);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--gray-900);
  border-color: var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, var(--warm-bg) 0%, var(--white) 100%);
  padding: 120px 24px 80px;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--gray-900);
  margin-bottom: 24px;
  font-weight: 800;
}

.hero h1 .strike {
  text-decoration: line-through;
  color: var(--gray-400);
}

.hero h1 .underline {
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 4px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Section Styles */
.section {
  padding: 80px 24px;
}

.section.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--gray-700);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.about-image {
  position: sticky;
  top: 100px;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.founder-caption {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--gray-600);
  text-align: center;
}

/* Essays Section */
.section.essays {
  background: var(--light-bg);
}

.essays-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.essay-card {
  display: block;
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.essay-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.1);
  transform: translateY(-4px);
}

.essay-card:hover h3 {
  color: var(--primary);
}

.essay-date {
  font-size: 0.875rem;
  color: var(--gray-500);
  display: block;
  margin-bottom: 12px;
}

.essay-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--gray-900);
  transition: color 0.2s;
}

.essay-card p {
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.essay-read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.essay-card.featured {
  background: linear-gradient(135deg, #fff9f5 0%, var(--white) 100%);
  border: 2px solid var(--primary);
}

/* Request for Startups Section */
.section.rfs {
  background: var(--gray-900);
  color: var(--white);
}

.section.rfs .section-title {
  color: var(--white);
}

.section.rfs .section-subtitle {
  color: var(--gray-400);
}

.rfs-header {
  text-align: center;
  margin-bottom: 48px;
}

.rfs-intro {
  max-width: 800px;
  margin: 0 auto 64px;
}

.rfs-intro p {
  color: var(--gray-300);
  margin-bottom: 20px;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.rfs-intro .lead {
  color: var(--white);
  font-size: 1.375rem;
}

.rfs-intro strong {
  color: var(--primary);
}

.rfs-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.rfs-category {
  background: var(--gray-800);
  padding: 40px 32px;
  border-radius: 12px;
  text-align: center;
}

.rfs-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.rfs-category h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.rfs-category p {
  color: var(--gray-400);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.rfs-callout {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 32px 40px;
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.rfs-callout p {
  color: var(--white);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0;
}

/* Cohort Section */
.section.cohort {
  background: var(--white);
}

/* Filter Tabs */
.cohort-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gray-100);
  border: 2px solid transparent;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.filter-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.filter-count {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 8px;
  border-radius: 100px;
}

.filter-tab.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
}

/* Company Tags */
.company-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.company-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-pets {
  background: #dcfce7;
  color: #166534;
}

.tag-parolees {
  background: #fef3c7;
  color: #92400e;
}

.tag-perverts {
  background: #fce7f3;
  color: #9d174d;
}

.tag-misc {
  background: #e0e7ff;
  color: #3730a3;
}

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

.company-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--light-bg);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.company-card:hover {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.1);
  transform: translateY(-4px);
}

.company-logo {
  flex-shrink: 0;
}

.company-logo img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: contain;
  background: var(--white);
  padding: 8px;
}

.company-info h4 {
  font-size: 1.125rem;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.company-info p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Success Stories Section */
.section.successes {
  background: var(--light-bg);
}

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

.success-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--gray-200);
}

.success-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.1);
  transform: translateY(-4px);
}

.success-logo {
  flex-shrink: 0;
}

.success-logo img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
  background: var(--light-bg);
  padding: 6px;
}

.success-info h4 {
  font-size: 1.125rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.success-tagline {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 12px;
  display: block;
}

.success-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.success-batch {
  background: var(--primary);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.success-outcome {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Demo Day Section */
.section.demo-day {
  background: linear-gradient(135deg, var(--primary), #ff8c42);
  color: var(--white);
  text-align: center;
}

.demo-content {
  max-width: 700px;
  margin: 0 auto;
}

.demo-content h2 {
  font-size: 3rem;
  margin-bottom: 8px;
}

.demo-date {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

.demo-description {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.7;
}

.demo-details {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.demo-stat {
  text-align: center;
}

.demo-stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
}

.demo-stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

.demo-note {
  font-size: 0.875rem;
  opacity: 0.7;
  font-style: italic;
  margin-bottom: 32px;
}

.demo-day .btn-primary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.demo-day .btn-primary:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Application Section */
.section.apply {
  background: var(--white);
}

.apply-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.apply-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
  text-align: left;
}

.apply-card {
  background: var(--light-bg);
  padding: 32px;
  border-radius: 12px;
}

.apply-card h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--gray-900);
}

.apply-card ul {
  list-style: none;
}

.apply-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.apply-card li:last-child {
  border-bottom: none;
}

.apply-card li::before {
  content: ">";
  color: var(--primary);
  font-weight: bold;
  margin-right: 12px;
}

/* Application Form */
.apply-form-container {
  max-width: 600px;
  margin: 48px auto 0;
}

.apply-form {
  text-align: left;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

/* Quote Section */
.section.quote {
  background: var(--gray-900);
  padding: 80px 24px;
}

.section.quote blockquote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.section.quote p {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 24px;
  font-style: italic;
}

.section.quote cite {
  color: var(--gray-400);
  font-style: normal;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.75rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .rfs-categories {
    grid-template-columns: 1fr;
  }

  .companies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .success-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .hero {
    padding: 100px 20px 60px;
  }

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

  .cohort-filters {
    gap: 6px;
  }

  .filter-tab {
    padding: 8px 14px;
    font-size: 0.8125rem;
  }

  .filter-count {
    display: none;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 1.75rem;
  }

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

  .company-card {
    flex-direction: column;
    text-align: center;
  }

  .company-logo {
    margin: 0 auto;
  }

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

  .success-card {
    flex-direction: column;
    text-align: center;
  }

  .success-logo {
    margin: 0 auto;
  }

  .success-stats {
    justify-content: center;
  }

  .demo-content h2 {
    font-size: 2rem;
  }

  .demo-details {
    gap: 24px;
  }

  .section.quote p {
    font-size: 1.25rem;
  }

  .essay-modal-body {
    padding: 32px 24px;
  }

  .essay-modal-body h2 {
    font-size: 1.375rem;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .demo-details {
    flex-direction: column;
  }
}

/* ===== Essays Page Styles ===== */

/* Page Header */
.page-header {
  background: linear-gradient(180deg, var(--warm-bg) 0%, var(--white) 100%);
  padding: 120px 24px 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Essays List Page */
.essays-page {
  padding: 60px 24px 100px;
}

.essays-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Post Card (for essays list) */
.post-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
}

.post-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.1);
  transform: translateY(-4px);
}

.post-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff9f5 0%, var(--white) 100%);
}

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

.post-date {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.post-tag-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-tag-badge.philosophy {
  background: #dbeafe;
  color: #1d4ed8;
}

.post-tag-badge.strategy {
  background: #dcfce7;
  color: #166534;
}

.post-tag-badge.thesis {
  background: #fef3c7;
  color: #92400e;
}

.post-tag-badge.operations {
  background: #f3e8ff;
  color: #7c3aed;
}

.post-card h2 {
  font-size: 1.5rem;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.3;
}

.post-card:hover h2 {
  color: var(--primary);
}

.post-excerpt {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

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

.post-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.post-author-info {
  font-size: 0.875rem;
}

.post-author-name {
  color: var(--gray-900);
  font-weight: 600;
}

.post-author-title {
  color: var(--gray-500);
}

/* Individual Essay Page */
.essay-full {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

/* Author section in individual essay (uses post-author classes from renderBlogPost) */
.essay-full .post-author {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 40px;
  gap: 16px;
}

.essay-full .post-author-avatar {
  width: 56px;
  height: 56px;
}

.essay-full .post-author-name {
  font-size: 1rem;
  margin-bottom: 2px;
}

.essay-full .post-author-title {
  font-size: 0.875rem;
}

.essay-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.essay-back:hover {
  color: var(--primary);
}

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

.essay-date-full {
  font-size: 0.9375rem;
  color: var(--gray-500);
}

.essay-tag-badge {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.essay-tag-badge.philosophy {
  background: #dbeafe;
  color: #1d4ed8;
}

.essay-tag-badge.strategy {
  background: #dcfce7;
  color: #166534;
}

.essay-tag-badge.thesis {
  background: #fef3c7;
  color: #92400e;
}

.essay-tag-badge.operations {
  background: #f3e8ff;
  color: #7c3aed;
}

.essay-title-full {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 32px;
}

/* Author Section in Essay */
.essay-author-section {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 40px;
}

.essay-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.essay-author-info h4 {
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.essay-author-info p {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Essay Content */
.essay-content {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--gray-800);
}

.essay-content p {
  margin-bottom: 24px;
}

.essay-content h4 {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 48px;
  margin-bottom: 20px;
}

.essay-content ul, .essay-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.essay-content li {
  margin-bottom: 12px;
}

.essay-content strong {
  color: var(--gray-900);
}

/* Hashtags (generated by renderBlogPost as post-hashtags) */
.post-hashtags,
.essay-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.post-hashtag-link,
.essay-hashtag {
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.post-hashtag-link:hover {
  background: var(--primary);
  color: var(--white);
}

/* Gutter embed (generated by renderBlogPost) */
.post-gutter-section {
  margin-top: 48px;
  padding: 24px;
  background: var(--gray-100);
  border-radius: 12px;
}

.post-gutter-header {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Share Button */
.essay-share {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.essay-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.essay-share-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.essay-share-btn svg {
  width: 20px;
  height: 20px;
}

/* Share Modal */
.share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.share-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.share-modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  overflow: hidden;
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.share-modal-header h3 {
  font-size: 1.125rem;
  color: var(--gray-900);
}

.share-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-modal-preview {
  padding: 20px 24px;
  background: var(--light-bg);
}

.share-preview-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.share-preview-tag.thesis {
  background: #fef3c7;
  color: #92400e;
}

.share-preview-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.share-preview-excerpt {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.share-modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  color: var(--gray-500);
}

.share-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.share-modal-content {
  padding: 24px;
}

.share-url-section label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
  display: block;
}

.share-url-row {
  display: flex;
  gap: 8px;
}

.share-url-input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--gray-700);
}

.share-copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--gray-900);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.share-copy-btn.copied {
  background: #22c55e;
}

.share-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.share-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--gray-100);
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.2s;
}

.share-action-btn:hover {
  background: var(--gray-200);
}

/* Essays CTA on homepage */
.essays-cta {
  text-align: center;
  margin-top: 48px;
}

/* Responsive */
@media (max-width: 768px) {
  .page-header {
    padding: 100px 20px 48px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .essays-page {
    padding: 40px 20px 60px;
  }

  .post-card {
    padding: 24px;
  }

  .post-card h2 {
    font-size: 1.25rem;
  }

  .essay-full {
    padding: 80px 20px 60px;
  }

  .essay-title-full {
    font-size: 1.75rem;
  }

  .essay-content {
    font-size: 1rem;
  }

  .essay-content h4 {
    font-size: 1.125rem;
  }
}

/* ===== The Feed (News) Page Styles ===== */

.feed-header {
  background: linear-gradient(180deg, var(--warm-bg) 0%, var(--white) 100%);
  padding: 120px 24px 40px;
  text-align: center;
}

.feed-header h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.feed-header p {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto;
}

.feed-header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.feed-refresh-note {
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.feed-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 2px solid var(--gray-300);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.feed-login-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.feed-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.feed-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feed-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px 24px;
  transition: all 0.2s ease;
}

.feed-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.1);
  transform: translateY(-2px);
}

.feed-item-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feed-item-main {
  flex: 1;
  min-width: 0;
}

.feed-thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-100);
}

.feed-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-item.grunt-post .feed-thumbnail {
  border: 1px solid #ff00ff;
}

.feed-rank {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--gray-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.feed-item:hover .feed-rank {
  background: var(--primary);
  color: white;
}

.feed-content {
  flex: 1;
  min-width: 0;
}

.feed-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 8px;
}

.feed-title a {
  color: inherit;
  text-decoration: none;
}

.feed-title a:hover {
  color: var(--primary);
}

.feed-domain {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 500;
}

.feed-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 8px;
}

.feed-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.feed-meta a {
  color: var(--gray-500);
  text-decoration: none;
}

.feed-meta a:hover {
  color: var(--primary);
}

.feed-upvote {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.feed-upvote:hover {
  background: var(--primary);
  color: white;
}

.feed-upvote svg {
  width: 12px;
  height: 12px;
}

/* Grunt post styling */
.feed-item.grunt-post {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 100%);
  border-color: #ff00ff;
}

.feed-item.grunt-post:hover {
  border-color: #ff66ff;
  box-shadow: 0 4px 20px rgba(255, 0, 255, 0.2);
}

.feed-item.grunt-post .feed-rank {
  background: rgba(255, 0, 255, 0.2);
  color: #ff00ff;
}

.feed-item.grunt-post:hover .feed-rank {
  background: #ff00ff;
  color: #1a0a2e;
}

.feed-item.grunt-post .feed-title {
  color: #00ffff;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.feed-item.grunt-post .feed-title a:hover {
  color: #ff00ff;
}

.feed-item.grunt-post .feed-domain {
  color: #ff00ff;
}

.feed-item.grunt-post .feed-meta {
  color: rgba(255, 255, 255, 0.5);
}

.feed-item.grunt-post .feed-meta a {
  color: rgba(255, 255, 255, 0.5);
}

.feed-item.grunt-post .feed-meta a:hover {
  color: #ff00ff;
}

.feed-item.grunt-post .feed-upvote {
  background: rgba(255, 0, 255, 0.2);
  color: #ff00ff;
}

.feed-item.grunt-post .feed-upvote:hover {
  background: #ff00ff;
  color: #1a0a2e;
}

.grunt-badge {
  display: inline-block;
  background: #ff00ff;
  color: #1a0a2e;
  font-size: 0.625rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  font-family: monospace;
  font-weight: 700;
  vertical-align: middle;
  text-transform: uppercase;
}

.grunt-translate-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  margin-top: 4px;
}

/* Feed load more */
.feed-more {
  text-align: center;
  padding: 32px 0;
}

.feed-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
}

.feed-more-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Feed filter tabs */
.feed-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.feed-filter {
  padding: 8px 16px;
  background: var(--gray-100);
  border: none;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.feed-filter:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.feed-filter.active {
  background: var(--primary);
  color: white;
}

/* Feed share and actions */
.feed-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gray-500);
}

.feed-action:hover {
  color: var(--primary);
  background: var(--gray-100);
}

.feed-item.grunt-post .feed-action {
  color: rgba(255, 255, 255, 0.5);
}

.feed-item.grunt-post .feed-action:hover {
  color: #ff00ff;
  background: rgba(255, 0, 255, 0.1);
}

.feed-grunts-link {
  color: var(--primary) !important;
  font-weight: 500;
}

.feed-grunts-link:hover {
  text-decoration: underline !important;
}

.feed-item.grunt-post .feed-grunts-link {
  color: #ff00ff !important;
}

/* Feed detail view */
.feed-item-detail {
  padding: 24px;
  margin-bottom: 32px;
}

.feed-item-detail .feed-item-main {
  flex: 1;
}

.feed-item-detail .feed-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feed-item-detail .feed-thumbnail {
  width: 120px;
  height: 90px;
}

.story-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.875rem;
}

.story-back:hover {
  color: var(--primary);
}

.story-grunts-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.story-grunts-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 24px;
}

/* Login Modal */
.feed-login-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.feed-login-modal.active {
  opacity: 1;
  visibility: visible;
}

.feed-login-content {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.feed-login-modal.active .feed-login-content {
  transform: translateY(0);
}

.feed-login-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
}

.feed-login-close:hover {
  color: var(--gray-600);
}

.feed-login-logo {
  margin-bottom: 20px;
}

.feed-login-logo img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
}

.feed-login-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.feed-login-content > p {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.feed-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-login-form input {
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}

.feed-login-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.feed-login-form button {
  margin-top: 8px;
}

.feed-login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--gray-400);
  font-size: 0.8125rem;
}

.feed-login-divider::before,
.feed-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.feed-login-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
}

.feed-login-social:hover {
  background: var(--gray-200);
}

.feed-login-social img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.feed-login-signup {
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.feed-login-signup a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.feed-login-signup a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .feed-header {
    padding: 100px 20px 32px;
  }

  .feed-header h1 {
    font-size: 2rem;
  }

  .feed-header-actions {
    flex-direction: column;
    gap: 12px;
  }

  .feed-container {
    padding: 24px 16px 60px;
  }

  .feed-item {
    padding: 16px;
  }

  .feed-item-header {
    gap: 12px;
  }

  .feed-rank {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .feed-title {
    font-size: 0.9375rem;
  }

  .feed-meta {
    font-size: 0.75rem;
    gap: 8px;
  }

  .feed-thumbnail {
    width: 60px;
    height: 45px;
  }

  .feed-item-detail .feed-thumbnail {
    width: 80px;
    height: 60px;
  }

  .feed-login-content {
    padding: 32px 24px;
  }
}
