/* handcrafted blog CSS - made with ☕ and questionable life choices */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.67; /* golden ratio vibes */
  color: #3c4043;
  background: #fefbf6;
  overflow-x: hidden;
  /* subtle texture because flat design is so 2010s */
  background-image: 
    radial-gradient(circle at 25% 25%, #f5f0e8 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, #faf6f0 0%, transparent 50%);
}

.container {
  max-width: 1180px; /* 1200 is too mainstream */
  margin: 0 auto;
  padding: 0 23px; /* asymmetric padding ftw */
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #f0e6d6;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(139, 117, 96, 0.08);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #c17817 0%, #8b5a3c 100%);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  transform: rotate(-2deg);
  box-shadow: 0 3px 12px rgba(193, 120, 23, 0.25);
}

.logo-text {
  font-size: 24px;
  font-weight: 600;
  color: #2d3748;
}

.logo-text strong {
  color: #c17817;
}

.nav-links {
  display: flex;
  gap: 29px; /* fibonacci-ish spacing */
}

.nav-link {
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: #c17817;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #c17817;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(125deg, #8b5a3c 0%, #c17817 45%, #d4a574 100%);
  color: white;
  padding: 85px 0 75px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 30px 25px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.blog-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: 'Merriweather', serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

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

.stat {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  display: block;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Main Content */
.main-content {
  padding: 60px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
}

.article {
  background: #fefefe;
  border-radius: 18px 22px 18px 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(139, 90, 60, 0.08);
  border: 1px solid #f0e6d6;
  transform: rotate(0.2deg);
}

/* Content Sections */
.content-section {
  padding: 45px 42px 38px;
  border-bottom: 1px solid #f0e6d6;
}

.content-section:last-child {
  border-bottom: none;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.section-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.problem-icon {
  background: linear-gradient(138deg, #e07a4f 0%, #d65228 100%);
  transform: rotate(-1deg);
  box-shadow: 0 4px 15px rgba(224, 122, 79, 0.3);
}

.solution-icon {
  background: linear-gradient(140deg, #84a59d 0%, #5f8a7a 100%);
  transform: rotate(1.5deg);
  box-shadow: 0 4px 15px rgba(132, 165, 157, 0.3);
}

.benefit-icon {
  background: linear-gradient(142deg, #f2cc8f 0%, #e4a853 100%);
  transform: rotate(-0.8deg);
  box-shadow: 0 4px 15px rgba(242, 204, 143, 0.3);
}

.section-title {
  font-family: 'Merriweather', serif;
  font-size: 28px;
  font-weight: 700;
  color: #2d3748;
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.section-content.reverse {
  grid-template-columns: 1fr 1fr;
}

.section-content.reverse .text-content {
  order: 1;
}

.section-content.reverse .image-wrapper {
  order: 2;
}

.image-wrapper {
  position: relative;
}

.content-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.image-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  color: #718096;
  font-style: italic;
}

.text-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.paragraph {
  font-size: 16px;
  line-height: 1.7;
  color: #4a5568;
}

.quote {
  background: #faf7f2;
  border-left: 5px solid #c17817;
  padding: 26px 24px 22px;
  border-radius: 12px 8px 12px 10px;
  font-style: italic;
  position: relative;
  color: #3c4043;
  font-size: 18px;
  line-height: 1.6;
  transform: rotate(-0.3deg);
  box-shadow: 0 3px 12px rgba(193, 120, 23, 0.1);
}

.quote i {
  color: #c17817;
  font-size: 16px;
}

.quote .fas.fa-quote-left {
  position: absolute;
  top: 16px;
  left: 16px;
}

.quote .fas.fa-quote-right {
  position: absolute;
  bottom: 16px;
  right: 16px;
}

.highlight-box {
  background: linear-gradient(140deg, #faf6f0 0%, #f5f0e8 100%);
  border: 1px solid #e8dcc6;
  border-radius: 14px 10px 13px 11px;
  padding: 22px 20px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transform: rotate(0.3deg);
  box-shadow: 0 3px 10px rgba(193, 120, 23, 0.08);
}

.highlight-box i {
  color: #c17817;
  font-size: 20px;
  margin-top: 2px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #4a5568;
}

.feature-item i {
  color: #84a59d;
  font-size: 16px;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.impact-stat {
  text-align: center;
  background: #faf7f2;
  border-radius: 15px 11px 14px 12px;
  padding: 22px 20px 18px;
  border: 1px solid #f0e6d6;
  transform: rotate(-0.4deg);
  box-shadow: 0 3px 12px rgba(139, 90, 60, 0.06);
}

.impact-number {
  font-size: 32px;
  font-weight: 700;
  color: #c17817;
  display: block;
}

.impact-label {
  font-size: 12px;
  color: #718096;
  margin-top: 4px;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget {
  background: #fefefe;
  border-radius: 15px 12px 14px 13px;
  padding: 26px 24px 22px;
  box-shadow: 0 5px 15px rgba(139, 90, 60, 0.06);
  border: 1px solid #f0e6d6;
  transform: rotate(-0.2deg);
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #2d3748;
}

.widget-title i {
  color: #c17817;
}

.toc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: #4a5568;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.toc-link:hover {
  background: #faf7f2;
  color: #c17817;
  border-color: #f0e6d6;
}

.toc-link i {
  width: 16px;
  font-size: 14px;
}

.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  text-decoration: none;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s ease;
}

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

.share-btn.twitter {
  background: #1da1f2;
  border-radius: 8px 6px 7px 9px;
  transform: rotate(-0.3deg);
}

.share-btn.facebook {
  background: #1877f2;
  border-radius: 7px 9px 8px 6px;
  transform: rotate(0.4deg);
}

.share-btn.linkedin {
  background: #0077b5;
  border-radius: 9px 7px 8px 8px;
  transform: rotate(-0.2deg);
}

.share-btn.whatsapp {
  background: #25d366;
  border-radius: 8px 8px 6px 9px;
  transform: rotate(0.3deg);
}

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

.tag {
  background: #edf2f7;
  color: #4a5568;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #cbd5e0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tag:hover {
  background: #c17817;
  color: white;
  border-color: #c17817;
  transform: rotate(-1deg) scale(1.05);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(128deg, #5d4e37 0%, #8b5a3c 60%, #6d5a47 100%);
  color: white;
  padding: 85px 0 75px;
  text-align: center;
  margin-top: 40px;
  border-radius: 25px 30px 0 0;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-icon {
  width: 85px;
  height: 78px;
  background: linear-gradient(140deg, #f2cc8f 0%, #c17817 100%);
  border-radius: 22px 18px 20px 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
  transform: rotate(-1.5deg);
  box-shadow: 0 6px 20px rgba(242, 204, 143, 0.4);
  color: #5d4e37;
}

.cta-title {
  font-family: 'Merriweather', serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-text {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(138deg, #e4a853 0%, #c17817 100%);
  color: white;
  padding: 18px 35px 16px;
  border: none;
  border-radius: 14px 11px 13px 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(193, 120, 23, 0.35);
  transform: rotate(-0.5deg);
}

.cta-button:hover {
  transform: translateY(-3px) rotate(0deg);
  box-shadow: 0 10px 25px rgba(193, 120, 23, 0.45);
  background: linear-gradient(138deg, #f2cc8f 0%, #e4a853 100%);
}

/* Footer */
.footer {
  background: #2d3748;
  color: white;
  padding: 32px 0;
  border-top: 1px solid #4a5568;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-content,
  .section-content.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-content.reverse .text-content,
  .section-content.reverse .image-wrapper {
    order: unset;
  }

  .content-section {
    padding: 24px;
  }

  .section-title {
    font-size: 24px;
  }

  .impact-stats {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .share-buttons {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 28px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

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

  .main-content {
    padding: 40px 0;
  }

  .blog-meta {
    flex-direction: column;
    gap: 8px;
  }

  .content-image {
    height: 200px;
  }

  .cta-section {
    padding: 60px 0;
  }
}

/* Smooth transitions and micro-interactions */
* {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5a67d8;
}