/* joeikareth.com - India AI Companion Blog */

/* CSS Variables */
:root {
  --primary: #FF6B35;
  --primary-dark: #E55A2B;
  --secondary: #2D3142;
  --accent: #4ECDC4;
  --text: #1a1a2e;
  --text-light: #6c757d;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --border: #e9ecef;
  --gradient: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--secondary);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

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

/* Header */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--primary);
}

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

.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .nav.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

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

.hero-badge {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

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

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .hero {
    padding: 48px 0;
  }

  .hero-stats {
    gap: 24px;
  }

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

/* Cards */
.card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.card-image {
  width: 100%;
  height: 200px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.card-content {
  padding: 24px;
}

.card-tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-link::after {
  content: '\2192';
  transition: var(--transition);
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* Article Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  padding: 48px 0;
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

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

.section-alt {
  background: var(--bg-alt);
}

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

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Article Page */
.article-header {
  padding: 80px 0 48px;
  background: var(--bg-alt);
  text-align: center;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.article-content {
  padding: 48px 0 80px;
}

.article-content h2 {
  margin-top: 48px;
  margin-bottom: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-content h3 {
  margin-top: 32px;
  margin-bottom: 16px;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-light);
}

/* Stats Box */
.stats-box {
  background: var(--gradient);
  color: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  margin: 32px 0;
}

.stats-box h4 {
  color: white;
  margin-bottom: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}

.stats-grid .stat {
  text-align: left;
}

.stats-grid .stat-value {
  color: white;
  font-size: 1.75rem;
}

/* CTA Box */
.cta-box {
  background: var(--secondary);
  color: white;
  padding: 48px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 48px 0;
}

.cta-box h3 {
  color: white;
  margin-bottom: 16px;
}

.cta-box p {
  opacity: 0.9;
  margin-bottom: 24px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

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

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

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--secondary);
  color: white;
  font-weight: 600;
}

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

.comparison-table tr:hover td {
  background: var(--bg-alt);
}

.comparison-table .featured {
  background: rgba(255, 107, 53, 0.1);
}

.comparison-table .featured td {
  font-weight: 500;
}

/* Source Citation */
.source {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

.sources-list {
  background: var(--bg-alt);
  padding: 24px;
  border-radius: var(--radius);
  margin-top: 48px;
}

.sources-list h4 {
  margin-bottom: 16px;
}

.sources-list ul {
  list-style: none;
  padding: 0;
}

.sources-list li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.sources-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Footer */
.footer {
  background: var(--secondary);
  color: white;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

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

.footer h4 {
  color: white;
  margin-bottom: 16px;
}

.footer p {
  opacity: 0.8;
  font-size: 0.95rem;
}

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

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

.footer-links a {
  color: white;
  opacity: 0.8;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* About Page */
.about-hero {
  padding: 80px 0;
  background: var(--bg-alt);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

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

.about-image {
  background: var(--gradient);
  height: 400px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.py-4 { padding-top: 32px; padding-bottom: 32px; }

/* Chart/Graph Styles */
.chart-container {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bar-label {
  width: 120px;
  font-size: 0.9rem;
  font-weight: 500;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 32px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  min-width: 60px;
  transition: width 0.8s ease-out;
}

.bar-fill.blue { background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%); }
.bar-fill.green { background: linear-gradient(135deg, #10B981 0%, #34D399 100%); }
.bar-fill.purple { background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%); }
.bar-fill.orange { background: var(--gradient); }

/* Donut Chart */
.donut-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.donut-chart {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(
    var(--primary) 0deg 145deg,
    #3B82F6 145deg 248deg,
    #10B981 248deg 306deg,
    #8B5CF6 306deg 360deg
  );
  position: relative;
}

.donut-chart::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: var(--bg-alt);
  border-radius: 50%;
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}

.donut-center .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
}

.donut-center .label {
  font-size: 0.8rem;
  color: var(--text-light);
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

.legend-dot.orange { background: var(--primary); }
.legend-dot.blue { background: #3B82F6; }
.legend-dot.green { background: #10B981; }
.legend-dot.purple { background: #8B5CF6; }

/* Stat Cards Grid */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

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

.stat-card .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.stat-card .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

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

/* Authority Link Badges */
.authority-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.authority-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

.authority-badge:hover {
  background: var(--border);
  color: var(--primary);
}

.authority-badge img {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

/* Image Placeholder */
.image-placeholder {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--border) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin: 32px 0;
  border: 2px dashed var(--border);
}

.image-placeholder .icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.image-placeholder p {
  color: var(--text-light);
  margin: 0;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
  margin: 32px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--bg);
}

.timeline-year {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline-content {
  color: var(--text-light);
}

/* Featured Badge */
.featured-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* App Card */
.app-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  transition: var(--transition);
}

.app-card:hover {
  box-shadow: var(--shadow);
}

.app-card.featured {
  border-color: var(--primary);
  background: rgba(255, 107, 53, 0.02);
}

.app-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  flex-shrink: 0;
}

.app-info {
  flex: 1;
}

.app-info h4 {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-info p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.app-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-feature {
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .app-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
