@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* Light Theme Variables */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-text: #2563eb;
  --border: #e2e8f0;
  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 8px -1px rgba(0, 0, 0, 0.03);
  --header-bg: rgba(255, 255, 255, 0.8);
  --badge-bg: #f1f5f9;
  --badge-text: #475569;
  --danger-bg: #fef2f2;
  --danger-text: #dc2626;
  --success-bg: #f0fdf4;
  --success-text: #16a34a;
  --table-header-bg: #f8fafc;
  --toc-active-bg: #eff6ff;
  --toc-active-text: #2563eb;
  
  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Dark Theme Variables */
  --bg-primary: #0b0f19;
  --bg-secondary: #151f32;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-light: rgba(59, 130, 246, 0.15);
  --accent-text: #60a5fa;
  --border: #1e293b;
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 4px 12px -5px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(11, 15, 25, 0.85);
  --badge-bg: #1e293b;
  --badge-text: #94a3b8;
  --danger-bg: rgba(220, 38, 38, 0.15);
  --danger-text: #f87171;
  --success-bg: rgba(22, 163, 74, 0.15);
  --success-text: #4ade80;
  --table-header-bg: #111a2e;
  --toc-active-bg: rgba(59, 130, 246, 0.15);
  --toc-active-text: #60a5fa;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}

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

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

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: var(--transition);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

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

.logo svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Switcher */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: var(--badge-bg);
  transition: var(--transition);
}

.theme-toggle:hover {
  background-color: var(--border);
  color: var(--text-primary);
}

.theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

/* Search Trigger Button */
.search-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--badge-bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: var(--transition);
}

.search-btn:hover {
  border-color: var(--accent);
  background-color: var(--bg-secondary);
}

.search-shortcut {
  background-color: var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* Layout container */
.main-wrapper {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .main-wrapper {
    grid-template-columns: 14fr 5fr;
  }
}

.content-area {
  min-width: 0; /* Prevent flex/grid item overflow */
}

/* Sidebar Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.widget-title {
  font-size: 1.15rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
  margin-bottom: 1.25rem;
}

/* Bio Widget */
.bio-widget {
  text-align: center;
}

.bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 700;
}

.bio-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.bio-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--accent);
  color: white;
}

/* Category & Tag Lists */
.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-item a {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.category-count {
  background-color: var(--badge-bg);
  color: var(--text-secondary);
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  display: inline-block;
  background-color: var(--badge-bg);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  transition: var(--transition);
}

.tag-item:hover {
  background-color: var(--accent);
  color: white;
}

/* Popular Posts Widget */
.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popular-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.popular-num {
  background-color: var(--badge-bg);
  color: var(--text-secondary);
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.popular-num.top-3 {
  background-color: var(--accent);
  color: white;
}

.popular-info {
  display: flex;
  flex-direction: column;
}

.popular-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.popular-title:hover {
  color: var(--accent);
}

.popular-views {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Homepage Hero / Banner */
.hero-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

/* Airport Grid & Cards */
.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background-color: var(--border);
}

.airport-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

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

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

.airport-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.airport-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.airport-card-header {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.airport-avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.airport-meta-info {
  display: flex;
  flex-direction: column;
}

.airport-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.airport-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.badge-recom {
  background-color: var(--accent-light);
  color: var(--accent-text);
}

.airport-card-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.airport-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.feature-tag {
  background-color: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.airport-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.airport-card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--table-header-bg);
}

.airport-price {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.airport-price span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--danger-text);
}

.airport-btn {
  background-color: var(--accent);
  color: white;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.airport-btn:hover {
  background-color: var(--accent-hover);
  color: white;
}

/* Comparison Table on Home */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--bg-secondary);
  box-shadow: var(--card-shadow);
  margin-bottom: 2.5rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 800px;
}

.compare-table th {
  background-color: var(--table-header-bg);
  color: var(--text-primary);
  font-weight: 600;
  padding: 1rem;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--border);
}

.compare-table td {
  padding: 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}

.compare-table tr:hover {
  background-color: var(--table-header-bg);
}

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

.compare-name {
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compare-rank {
  background-color: var(--badge-bg);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-rank.rank-1 { background-color: #fbbf24; color: #78350f; }
.compare-rank.rank-2 { background-color: #cbd5e1; color: #1e293b; }
.compare-rank.rank-3 { background-color: #ca8a04; color: white; }

.compare-btn {
  background-color: var(--accent);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.8rem;
  display: inline-block;
  text-align: center;
}

.compare-btn:hover {
  background-color: var(--accent-hover);
  color: white;
}

.compare-detail-btn {
  background-color: var(--badge-bg);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.8rem;
  display: inline-block;
  text-align: center;
  margin-right: 0.5rem;
}

.compare-detail-btn:hover {
  background-color: var(--border);
  color: var(--text-primary);
}

/* Blog Article List Card on Homepage */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.article-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
}

.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.article-card-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.article-card-title a {
  color: var(--text-primary);
}

.article-card-title a:hover {
  color: var(--accent);
}

.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.article-card-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.article-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Article Template Styles */
.article-wrapper {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

@media (min-width: 768px) {
  .article-wrapper {
    padding: 2.5rem;
  }
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

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

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

.article-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.article-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

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

.article-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Article Content Body formatting */
.article-body {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.8;
}

.article-body h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

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

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

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

.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  background-color: var(--badge-bg);
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.article-body th {
  background-color: var(--table-header-bg);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
}

.article-body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
}

/* TOC (Table of Contents) */
.toc-container {
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

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

.toc-item {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.toc-item.depth-3 {
  padding-left: 1rem;
}

.toc-link {
  color: var(--text-secondary);
}

.toc-link:hover {
  color: var(--accent);
}

/* Call to Action Button inside post */
.cta-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 2px dashed var(--accent);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}

.cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.cta-btn {
  background-color: var(--accent);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.cta-btn:hover {
  background-color: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

/* FAQ accordion style */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  background-color: var(--table-header-bg);
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 700;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: none;
  background-color: var(--bg-secondary);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer styling */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 4rem;
  transition: var(--transition);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

.footer-copyright {
  grid-column: 1 / -1;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Search Modal styling */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}

.search-modal.active {
  display: flex;
}

.search-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  width: 90%;
  max-width: 600px;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalSlide 0.25s ease-out;
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-header svg {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
}

.search-input {
  flex-grow: 1;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-primary);
  outline: none;
}

.search-close-btn {
  background-color: var(--badge-bg);
  border: none;
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  list-style: none;
}

.search-result-item {
  margin-bottom: 0.5rem;
}

.search-result-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background-color: var(--bg-primary);
  border: 1px solid transparent;
}

.search-result-link:hover, .search-result-link.selected {
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.search-result-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.search-result-link:hover .search-result-title, .search-result-link.selected .search-result-title {
  color: var(--accent-text);
}

.search-result-snippet {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.search-empty {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Speedtest Card component in articles */
.speedtest-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.speed-gauge-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.speed-gauge {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  text-align: center;
}

.speed-gauge-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.speed-gauge-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Toggle Menu on Mobile */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

/* Status and Link styling for comparison table */
.status-yes {
  color: var(--success-text);
  font-weight: 500;
}
.status-no {
  color: var(--text-secondary);
}
.compare-tg-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.compare-tg-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   2026 Blog Redesign Styles: Airport List & Software Cards
   ========================================================================== */

/* Airport Recommendation List Page Styles */
.airport-list-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.airport-list-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.airport-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.airport-list-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 25%;
  flex-shrink: 0;
}

.airport-list-rank {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 40px;
  text-align: center;
}

.compare-rank.rank-1 { color: #eab308; }
.compare-rank.rank-2 { color: #94a3b8; }
.compare-rank.rank-3 { color: #b45309; }

.airport-list-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.airport-list-name-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.airport-list-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.airport-list-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.airport-list-middle {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.airport-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.airport-list-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.airport-list-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  width: 30%;
  flex-shrink: 0;
}

.airport-list-price {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.price-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.airport-list-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  width: 100%;
  border-top: 1px dashed var(--border);
  padding-top: 0.75rem;
  font-size: 0.75rem;
}

.meta-cell {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.meta-cell strong {
  color: var(--text-primary);
}

.airport-list-actions {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.list-btn {
  flex: 1;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-review {
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-review:hover {
  background-color: var(--border);
}

.btn-go {
  background-color: var(--accent);
  color: #ffffff;
  border: none;
}

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

/* Software Configuration & Tutorials Layout */
.software-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.software-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.software-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
}

.software-img-wrapper {
  height: 200px;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 1rem;
}

.software-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.software-card:hover .software-img {
  transform: scale(1.03);
}

.software-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.software-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.platform-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.platform-win { background-color: rgba(3, 105, 161, 0.1); color: #0369a1; }
.platform-mac { background-color: rgba(107, 33, 168, 0.1); color: #6b21a8; }
.platform-ios { background-color: rgba(21, 128, 61, 0.1); color: #15803d; }
.platform-android { background-color: rgba(161, 98, 7, 0.1); color: #a16207; }

.software-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background-color: #fee2e2;
  color: #991b1b;
}

.software-status.status-ios { background-color: #ecfdf5; color: #065f46; }
.software-status.status-classic { background-color: #fef3c7; color: #92400e; }

.software-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
}

.software-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.software-steps {
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  font-size: 0.8rem;
}

.step-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.software-steps ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
}

.software-steps li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.software-steps li:last-child {
  margin-bottom: 0;
}

.software-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.soft-btn {
  flex: 1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.soft-btn-download {
  background-color: var(--accent);
  color: #ffffff;
}

.soft-btn-download:hover {
  opacity: 0.9;
}

.soft-btn-doc {
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.soft-btn-doc:hover {
  background-color: var(--border);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .software-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .airport-list-item {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  
  .airport-list-left {
    width: 100%;
  }
  
  .airport-list-right {
    width: 100%;
    align-items: flex-start;
  }
  
  .airport-list-meta-grid {
    text-align: left;
  }
}

/* SEO screen-reader-only content utility class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
