/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* CSS Variables - Color Palette */
:root {
  /* Warm Javanese-inspired color palette */
  --background: hsl(35, 30%, 97%);
  --foreground: hsl(25, 30%, 12%);

  --card: hsl(35, 25%, 95%);
  --card-foreground: hsl(25, 30%, 12%);

  --popover: hsl(35, 25%, 95%);
  --popover-foreground: hsl(25, 30%, 12%);

  /* Deep copper/brown - primary */
  --primary: hsl(25, 60%, 28%);
  --primary-foreground: hsl(35, 30%, 97%);

  /* Warm cream - secondary */
  --secondary: hsl(35, 30%, 90%);
  --secondary-foreground: hsl(25, 30%, 20%);

  /* Subtle muted tones */
  --muted: hsl(35, 20%, 88%);
  --muted-foreground: hsl(25, 15%, 45%);

  /* Gold accent */
  --accent: hsl(38, 70%, 50%);
  --accent-foreground: hsl(25, 30%, 12%);

  --destructive: hsl(0, 84%, 60%);
  --destructive-foreground: hsl(35, 30%, 97%);

  --border: hsl(35, 20%, 82%);
  --input: hsl(35, 20%, 85%);
  --ring: hsl(25, 60%, 28%);

  --radius: 0.75rem;

  /* Custom tokens */
  --gradient-hero: linear-gradient(135deg, hsl(25, 60%, 28%), hsl(25, 50%, 38%));
  --gradient-gold: linear-gradient(135deg, hsl(38, 70%, 50%), hsl(45, 80%, 55%));
  --gradient-warm: linear-gradient(180deg, hsl(35, 30%, 97%), hsl(35, 25%, 92%));
  --shadow-warm: 0 10px 40px -10px hsl(25, 60%, 28%, 0.2);
  --shadow-card: 0 4px 20px -4px hsl(25, 30%, 20%, 0.1);
  --shadow-glow: 0 0 30px hsl(38, 70%, 50%, 0.3);

  /* Font families */
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

/* Dark Mode */
[data-theme="dark"] {
  --background: hsl(25, 20%, 8%);
  --foreground: hsl(35, 30%, 95%);

  --card: hsl(25, 15%, 12%);
  --card-foreground: hsl(35, 30%, 95%);

  --popover: hsl(25, 15%, 12%);
  --popover-foreground: hsl(35, 30%, 95%);

  --primary: hsl(38, 70%, 55%);
  --primary-foreground: hsl(25, 20%, 8%);

  --secondary: hsl(25, 15%, 18%);
  --secondary-foreground: hsl(35, 30%, 90%);

  --muted: hsl(25, 15%, 15%);
  --muted-foreground: hsl(35, 15%, 60%);

  --accent: hsl(38, 70%, 50%);
  --accent-foreground: hsl(35, 30%, 95%);

  --destructive: hsl(0, 84%, 60%);
  --destructive-foreground: hsl(35, 30%, 97%);

  --border: hsl(25, 15%, 20%);
  --input: hsl(25, 15%, 18%);
  --ring: hsl(38, 70%, 55%);

  --gradient-hero: linear-gradient(135deg, hsl(38, 70%, 55%), hsl(45, 80%, 60%));
  --gradient-gold: linear-gradient(135deg, hsl(38, 70%, 50%), hsl(45, 80%, 55%));
  --gradient-warm: linear-gradient(180deg, hsl(25, 20%, 8%), hsl(25, 15%, 12%));
  --shadow-warm: 0 10px 40px -10px hsl(38, 70%, 55%, 0.3);
  --shadow-card: 0 4px 20px -4px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px hsl(38, 70%, 50%, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }

  img {
    content-visibility: auto;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: rgba(var(--background), 0.95);
  backdrop-filter: blur(10px);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 0.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.navbar-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.navbar-menu {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .navbar-menu {
    display: flex;
  }
}

.navbar-link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: all 0.2s;
}

.navbar-link:hover {
  background-color: var(--secondary);
  color: var(--foreground);
}

.navbar-mobile-toggle {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .navbar-mobile-toggle {
    display: none;
  }
}

.navbar-mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background-color: var(--background);
  padding: 1rem 0;
}

.navbar-mobile-menu.active {
  display: block;
}

.navbar-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

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

.btn-primary:hover {
  opacity: 0.9;
}

.btn-hero {
  background-image: var(--gradient-hero);
  color: var(--primary-foreground);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  box-shadow: var(--shadow-warm);
}

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

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

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

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(var(--secondary), 0.5), var(--background));
  padding: 4rem 0;
}

@media (min-width: 640px) {
  .hero-section {
    padding: 6rem 0;
  }
}

.hero-decorative {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-blob-1 {
  position: absolute;
  left: -5rem;
  top: -5rem;
  height: 18rem;
  width: 18rem;
  border-radius: 50%;
  background-color: rgba(var(--primary), 0.05);
  filter: blur(60px);
}

.hero-blob-2 {
  position: absolute;
  right: -5rem;
  bottom: -5rem;
  height: 18rem;
  width: 18rem;
  border-radius: 50%;
  background-color: rgba(var(--accent), 0.1);
  filter: blur(60px);
}

.hero-content {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: rgba(var(--primary), 0.1);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-title-highlight {
  color: var(--primary);
}

.hero-subtitle {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
  }
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: color 0.2s;
  animation: bounce 2s infinite;
  background: none;
  border: none;
  cursor: pointer;
}

.hero-scroll:hover {
  color: var(--foreground);
}

/* Card */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.card-header {
  padding: 1.5rem;
  text-align: center;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .card-title {
    font-size: 1.875rem;
  }
}

.card-description {
  font-size: 1rem;
  color: var(--muted-foreground);
}

.card-content {
  padding: 1.5rem;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 9999px;
  background-color: rgba(var(--primary), 0.1);
  margin: 0 auto 1rem;
}

/* Calculator Section */
.calculator-section {
  padding: 4rem 0;
}

@media (min-width: 640px) {
  .calculator-section {
    padding: 6rem 0;
  }
}

.calculator-container {
  max-width: 48rem;
  margin: 0 auto;
}

.calculator-input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .calculator-input-group {
    flex-direction: row;
    align-items: flex-end;
  }
}

.calculator-input-wrapper {
  flex: 1;
}

.calculator-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.calculator-input-container {
  position: relative;
}

.calculator-input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  width: 1.25rem;
  height: 1.25rem;
}

.calculator-input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 1px solid var(--input);
  border-radius: 0.5rem;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.2s;
}

.calculator-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary), 0.2);
}

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

.calculator-buttons .btn {
  flex: 1;
}

@media (min-width: 640px) {
  .calculator-buttons .btn {
    flex: none;
  }
}

/* Results */
.results-container {
  margin-top: 1.5rem;
  animation: fadeIn 0.6s ease-out;
}

.results-death-info {
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: rgba(var(--primary), 0.05);
  margin-bottom: 1rem;
}

.results-death-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.results-death-date {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 0.25rem;
}

.results-death-weton {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-top: 0.25rem;
}

/* Table */
.table-container {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead tr {
  border-bottom: 1px solid var(--border);
  background-color: rgba(var(--secondary), 0.5);
}

th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
}

tbody tr:hover {
  background-color: rgba(var(--secondary), 0.3);
}

td {
  padding: 1rem;
}

.table-milestone-name {
  font-weight: 500;
  color: var(--foreground);
}

.table-milestone-desc {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.table-date {
  font-size: 0.875rem;
  color: var(--foreground);
}

.table-weton-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(var(--accent), 0.2);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-foreground);
}

/* Info Box */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: rgba(var(--secondary), 0.3);
  margin: 1rem 0;
}

.info-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  margin-top: 0.125rem;
}

.info-title {
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.info-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Detail Cards Grid */
.detail-cards-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .detail-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.detail-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--background);
  transition: box-shadow 0.2s;
}

.detail-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.detail-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.detail-card-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Section */
.section {
  padding: 4rem 0;
}

@media (min-width: 640px) {
  .section {
    padding: 6rem 0;
  }
}

.section-bg {
  background-color: rgba(var(--secondary), 0.3);
}

.section-header {
  max-width: 48rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(var(--primary), 0.1);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-description {
  color: var(--muted-foreground);
}

/* How It Works */
.steps-container {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
}

.steps-line {
  position: absolute;
  left: 2rem;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--border);
  display: none;
}

@media (min-width: 640px) {
  .steps-line {
    display: block;
  }
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.step-number {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  width: 4rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  box-shadow: var(--shadow-warm);
}

.step-content {
  flex: 1;
  padding-top: 0.75rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.step-description {
  color: var(--muted-foreground);
}

.step-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

/* FAQ Accordion */
.faq-container {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

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

@media (min-width: 640px) {
  .faq-question {
    font-size: 1.125rem;
  }
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

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

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

.faq-answer-content {
  padding-bottom: 1.5rem;
  color: var(--muted-foreground);
}

/* Article Section */
.article-container {
  max-width: 56rem;
  margin: 0 auto;
}

.article-content {
  line-height: 1.75;
}

.article-content p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 3rem 0 1rem;
}

.article-content strong {
  color: var(--foreground);
  font-weight: 600;
}

.article-blockquote {
  margin: 1.5rem 0;
  padding: 1rem;
  border-left: 4px solid var(--primary);
  background-color: rgba(var(--primary), 0.05);
  font-style: italic;
  color: var(--foreground);
}

.article-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.article-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--background);
}

.article-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.article-card-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.article-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--foreground);
}

.article-card-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.article-highlight {
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background-color: rgba(var(--accent), 0.1);
}

.article-highlight h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

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

.article-highlight li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
}

.article-highlight-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.article-feature-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .article-feature-grid {
    flex-direction: row;
  }
}

.article-feature {
  flex: 1;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background-color: rgba(var(--primary), 0.05);
}

.article-feature-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: rgba(var(--primary), 0.1);
  margin-bottom: 0.75rem;
}

.article-feature-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.article-feature-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.article-feature-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.article-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style: disc;
}

.article-content ul li {
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.article-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style: decimal;
}

.article-content ol li {
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.2s;
}

.article-content a:hover {
  opacity: 0.8;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background-color: var(--card);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 2;
  }
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-description {
  max-width: 28rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-section-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--foreground);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-made-with {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-heart {
  width: 1rem;
  height: 1rem;
  color: var(--destructive);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-warm);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  z-index: 40;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.back-to-top-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease-out forwards;
}

/* Dark Mode Toggle */
.theme-toggle {
  position: fixed;
  top: 5rem;
  right: 2rem;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.3s ease;
  will-change: transform;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-warm);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--foreground);
  transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
  transform: rotate(20deg);
}

@media (max-width: 640px) {
  .theme-toggle {
    top: 4.5rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .theme-toggle svg {
    width: 1rem;
    height: 1rem;
  }
}

/* Action Buttons Container */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: rgba(var(--secondary), 0.3);
}

@media (max-width: 640px) {
  .action-buttons {
    flex-direction: column;
  }
}

/* Export PDF Button */
.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  background-color: var(--destructive);
  color: var(--destructive-foreground);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  will-change: transform;
}

.btn-export:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
}

.btn-export svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 640px) {
  .btn-export {
    width: 100%;
    justify-content: center;
  }
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .share-buttons {
    width: 100%;
  }
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  will-change: transform;
}

.btn-share svg {
  width: 1.25rem;
  height: 1.25rem;
}

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

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
}

.btn-copy {
  background-color: var(--card);
  color: var(--foreground);
}

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

@media (max-width: 640px) {
  .btn-share {
    flex: 1;
    justify-content: center;
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  background-color: var(--foreground);
  color: var(--background);
  box-shadow: var(--shadow-warm);
  z-index: 100;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 640px) {
  .toast {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    transform: translateX(0) translateY(100px);
    width: calc(100% - 2rem);
  }

  .toast.show {
    transform: translateX(0) translateY(0);
  }
}

/* Performance optimizations for animations */
.btn-hero,
.btn-export,
.btn-share,
.theme-toggle,
.back-to-top {
  will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Utility Classes */
.hidden {
  display: none;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

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

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

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

.mt-4 {
  margin-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

/* ========================================
   ARTICLE PAGES STYLING
   ======================================== */

/* 1. Breadcrumb Navigation */
.breadcrumb-section {
  padding: 1.5rem 0;
  background-color: rgba(var(--secondary), 0.3);
  border-bottom: 1px solid var(--border);
}

.breadcrumb-section nav[aria-label="breadcrumb"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-section nav[aria-label="breadcrumb"] li {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.breadcrumb-section nav[aria-label="breadcrumb"] li a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-section nav[aria-label="breadcrumb"] li a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumb-section nav[aria-label="breadcrumb"] li[aria-current="page"] span {
  color: var(--foreground);
  font-weight: 500;
}

/* Breadcrumb separator */
.breadcrumb-section nav[aria-label="breadcrumb"] li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--muted-foreground);
  font-size: 1rem;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .breadcrumb-section {
    padding: 1rem 0;
  }

  .breadcrumb-section nav[aria-label="breadcrumb"] li {
    font-size: 0.8125rem;
  }
}

/* 2. Article Content */
.article-section {
  padding: 3rem 0;
}

@media (min-width: 640px) {
  .article-section {
    padding: 4rem 0;
  }
}

.article-content {
  max-width: 48rem;
  margin: 0 auto;
}

.article-content h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 2rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .article-content h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .article-content h1 {
    font-size: 3rem;
  }
}

/* Article Table of Contents */
.article-toc {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: rgba(var(--secondary), 0.3);
  margin-bottom: 2rem;
}

.article-toc h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.article-toc ol {
  margin-left: 1.5rem;
  color: var(--muted-foreground);
}

.article-toc ol li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.article-toc ol li a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.article-toc ol li a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Article Body */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--foreground);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.article-body h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-body p {
  margin-bottom: 1.5rem;
}

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

.article-body ul li,
.article-body ol li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(var(--primary), 0.3);
  transition: all 0.2s;
}

.article-body a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.article-body strong {
  font-weight: 600;
  color: var(--foreground);
}

.article-body blockquote {
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--primary);
  background-color: rgba(var(--secondary), 0.3);
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted-foreground);
}

/* Example table styling in article */
.article-body .example-table {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
}

.article-body .example-table h3 {
  margin-top: 0;
  text-align: center;
  color: var(--primary);
}

/* Mobile optimization for article */
@media (max-width: 640px) {
  .article-section {
    padding: 2rem 0;
  }

  .article-content h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .article-body h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }

  .article-toc {
    padding: 1.25rem;
  }
}

/* 3. Related Articles */
.related-articles {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border);
}

.related-articles h2 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 2rem;
  text-align: center;
}

.related-articles-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .related-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-article-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.related-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--primary);
}

.related-article-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.related-article-card h3 a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.related-article-card h3 a:hover {
  color: var(--primary);
}

.related-article-card p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.related-article-card .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s;
  align-self: flex-start;
}

.related-article-card .btn-link:hover {
  color: var(--accent);
  gap: 0.5rem;
}

/* Mobile optimization */
@media (max-width: 640px) {
  .related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
  }

  .related-articles h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .related-article-card {
    padding: 1.25rem;
  }

  .related-article-card h3 {
    font-size: 1.125rem;
  }
}

/* 4. Article CTA */
.article-cta {
  margin-top: 3rem;
  padding: 2.5rem;
  border-radius: var(--radius);
  background: var(--gradient-warm);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.article-cta::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--gradient-gold);
  margin: 0 auto 1.5rem;
  border-radius: 9999px;
}

.article-cta h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.article-cta p {
  font-size: 1rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.article-cta .btn-hero {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

/* Optional: Add descriptive text above button */
.article-cta-text {
  font-size: 1rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile optimization */
@media (max-width: 640px) {
  .article-cta {
    margin-top: 2rem;
    padding: 2rem 1.5rem;
  }

  .article-cta h3 {
    font-size: 1.25rem;
  }

  .article-cta p {
    font-size: 0.9375rem;
  }

  .article-cta .btn-hero {
    font-size: 1rem;
    padding: 0.875rem 2rem;
    width: 100%;
  }
}

/* 5. Article Sources */
.article-sources {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.article-sources h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

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

.article-sources li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.article-sources li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.article-sources a {
  color: var(--primary);
  text-decoration: none;
}

.article-sources a:hover {
  text-decoration: underline;
}