/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 1rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-base) var(--ease-smooth);
  min-height: 48px;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width var(--transition-slow) var(--ease-smooth),
    height var(--transition-slow) var(--ease-smooth);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* Button Variants */
.btn-primary {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.25);
}

.btn-primary:hover {
  background: #0052a3;
  border-color: #0052a3;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
  transform: translateY(-2px);
}

.btn-primary:active {
  background: #004080;
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: #6b7280;
  color: white;
  border-color: #6b7280;
  box-shadow: 0 4px 14px rgba(107, 114, 128, 0.25);
}

.btn-secondary:hover {
  background: #4b5563;
  border-color: #4b5563;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(107, 114, 128, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
  transform: translateY(-1px);
}

.btn-outline:active {
  background: var(--color-border);
  transform: translateY(0) scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(0, 102, 204, 0.08);
  border-color: transparent;
  text-decoration: none;
}

.btn-link {
  background: transparent;
  color: var(--color-accent);
  border-color: transparent;
  padding: 0.5rem 1rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-link:hover {
  color: #0052a3;
  background: transparent;
  text-decoration: underline;
}

/* Button Sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: 36px;
}

.btn-lg {
  padding: 1.25rem 2rem;
  font-size: 1.125rem;
  min-height: 56px;
}

.btn-xl {
  padding: 1.5rem 2.5rem;
  font-size: 1.25rem;
  min-height: 64px;
}

/* Button States */
.btn-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 1em;
  height: 1em;
  top: 50%;
  left: 50%;
  margin-left: -0.5em;
  margin-top: -0.5em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-icon svg {
  width: 1.25em;
  height: 1.25em;
}

/* === HERO SECTION === */
.hero {
  padding: var(--spacing-lg) 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .hero {
    padding: var(--spacing-2xl) 0;
  }
}

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

.hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  text-align: left;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-border);
}

.hero-stat-label {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.hero-stat-value {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* === SECTION HEADERS === */
.section-header {
  margin-bottom: var(--spacing-lg);
}

.section-header--center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 0.375rem;
}

.section-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* === INSIGHT HIGHLIGHTS === */
.insight-highlights {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.insight-highlights::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.insight-card {
  padding: var(--spacing-md);
  background: linear-gradient(135deg, #fefefe 0%, #f8f9ff 100%);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 10px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.insight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--color-accent);
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
}

.insight-card:active {
  transform: translateY(-1px);
}

.insight-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.insight-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.insight-card p {
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.insight-card__meta {
  display: block;
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* === BREADCRUMBS === */
.breadcrumb {
  margin-bottom: var(--spacing-md);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

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

/* === POST PAGES === */
.post {
  margin-bottom: var(--spacing-2xl);
}

/* === POST HEADER - MODERN PROFESSIONAL DESIGN === */
.post__header {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.post__header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0066cc 0%, #0052a3 100%);
}

.language-switcher {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--spacing-lg);
}

.language-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--color-accent);
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.25);
}

.language-switcher__button:hover,
.language-switcher__button:focus {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.35);
  border-color: #005bb8;
  background: linear-gradient(135deg, #0052a3, var(--color-accent));
  outline: none;
}

.language-switcher__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.language-switcher__button::before {
  content: "\1F310";
  font-size: 1.1rem;
}

@media (max-width: 640px) {
  .language-switcher {
    justify-content: flex-start;
  }
}

.post__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--color-primary);
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  max-width: 950px;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.post__meta time {
  color: var(--color-text);
  font-weight: 600;
}

.post__meta-dot {
  color: #cbd5e1;
  font-weight: 700;
}

.post__meta-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.post__meta-tags li {
  display: inline-flex;
}

.post__meta-tags a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(0, 102, 204, 0.12));
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(0, 102, 204, 0.15);
  transition: all 0.2s ease;
  text-transform: capitalize;
}

.post__meta-tags a:hover {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.15), rgba(0, 102, 204, 0.2));
  border-color: rgba(0, 102, 204, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.post__description {
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 400;
  line-height: 1.65;
  color: #475569;
  max-width: 820px;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.post-hero {
  margin: var(--spacing-2xl) 0;
}

.post-hero img {
  border-radius: 4px;
  width: 100%;
}

.post-hero figcaption {
  margin-top: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
}

/* === POST GALLERY === */
.post-gallery {
  margin: var(--spacing-2xl) 0;
}

.post-gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.post-gallery__item img {
  border-radius: 4px;
  width: 100%;
}

.post-gallery__item figcaption {
  margin-top: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* === POST LAYOUT === */
.post__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.post-sidebar {
  order: -1;
}

.sidebar-card {
  padding: 1.5rem;
  background: linear-gradient(150deg, #ffffff 0%, #f4f6ff 100%);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  margin-bottom: var(--spacing-xl);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-card h2,
.sidebar-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
}

.sidebar-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

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

.sidebar-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

/* === ABOUT PAGE === */
.about-hero {
  padding: var(--spacing-2xl) 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.about-hero h1 {
  margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
}

.about-content {
  padding: var(--spacing-2xl) 0;
}

.about-intro {
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
  border-bottom: 1px solid var(--color-border);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--color-text);
  font-weight: 400;
  margin-bottom: var(--spacing-lg);
}

.about-content h2 {
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-md);
}

.about-content h3 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
}

/* === HEADER LAYOUT === */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-primary);
  flex-shrink: 0;
}

.site-logo {
  border-radius: 8px;
}

.site-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.site-nav {
  order: 3;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.site-nav::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
  display: block;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

@media (min-width: 768px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 2rem;
  }

  .site-nav {
    order: 0;
    width: auto;
    padding-bottom: 0;
    margin-left: auto;
    margin-right: 0;
  }
  
  .header-actions {
    margin-left: 0;
  }
}
