/* ============================================
   STRATEGIC AREAS INTERACTIVE MAP
   ============================================ */

.strategic-areas {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, rgba(245, 243, 255, 0.85) 0%, rgba(240, 235, 255, 0.85) 100%);
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .strategic-areas {
  background: linear-gradient(180deg, rgba(13, 13, 26, 0.8) 0%, rgba(26, 26, 46, 0.8) 100%);
}

.strategic-areas__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.strategic-areas__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-md);
  color: rgba(13, 22, 41, 0.95); /* Dark text on light background */
  font-weight: 800;
  letter-spacing: 0; /* Remove negative spacing for accessibility */
  line-height: 1.2; /* Improved line height */
}

[data-theme="dark"] .strategic-areas__title {
  color: var(--color-text); /* White text on dark background */
}

.strategic-areas__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem); /* Minimum 18px */
  color: rgba(13, 22, 41, 0.9); /* Dark text on light background */
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.6;
  font-weight: 400;
}

[data-theme="dark"] .strategic-areas__subtitle {
  color: var(--color-text-secondary); /* White text on dark background */
}

/* Grid Layout */
.strategic-areas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

/* Area Card */
.area-card {
  background: rgba(255, 255, 255, 0.95); /* Light background for contrast */
  border: 1px solid rgba(35, 58, 117, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .area-card {
  background: rgba(255, 255, 255, 0.95); /* Keep light even in dark theme */
  backdrop-filter: blur(10px);
}

/* Color themes for different categories - Aurora palette */
.area-card[data-category="infrastructure"] { --card-color: #233A75; }
.area-card[data-category="social"] { --card-color: #5AB6A0; }
.area-card[data-category="economic"] { --card-color: #1de9b6; }
.area-card[data-category="governance"] { --card-color: #1a2d5a; }

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--card-color, var(--color-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* Removed hover effect - not clickable */

/* Area Number Badge */
.area-card__number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #5AB6A0; /* Consistent teal color for all numbers */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.875rem, 1.5vw, 1rem); /* Minimum 14px, prefer 16px */
  font-weight: 700;
  opacity: 1; /* Full opacity for accessibility */
}

/* Icon */
.area-card__icon {
  width: 56px;
  height: 56px;
  background: transparent;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.area-card__icon svg {
  stroke: url(#icon-gradient);
  stroke-width: 1.5;
}

/* Removed hover effect - not clickable */

/* Title */
.area-card__title {
  font-size: clamp(1.25rem, 2vw, 1.5rem); /* Minimum 20px */
  font-weight: 700;
  color: rgba(13, 22, 41, 0.95); /* High contrast for accessibility */
  margin-bottom: var(--space-xs);
  line-height: 1.4; /* Improved line height */
}

[data-theme="dark"] .area-card__title {
  color: rgba(13, 22, 41, 0.95); /* Keep high contrast */
}

.area-card__subtitle {
  font-size: clamp(0.9375rem, 1.5vw, 1rem); /* Minimum 15px, prefer 16px */
  color: rgba(13, 22, 41, 0.9); /* Higher contrast for accessibility */
  margin-bottom: var(--space-md);
  font-style: italic;
  line-height: 1.6;
  font-weight: 400;
}

[data-theme="dark"] .area-card__subtitle {
  color: rgba(13, 22, 41, 0.9); /* Higher contrast */
}

/* Description (hidden by default, shown on expand) */
.area-card__description {
  font-size: clamp(1rem, 1.5vw, 1.125rem); /* Minimum 16px */
  color: rgba(13, 22, 41, 0.95); /* Higher contrast for accessibility */
  line-height: 1.8; /* Improved line height */
  font-weight: 400;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
}

[data-theme="dark"] .area-card__description {
  color: rgba(13, 22, 41, 0.8); /* Keep dark text */
}

/* Text content */
.area-card__text {
  color: rgba(13, 22, 41, 0.8); /* Dark text */
  line-height: 1.6;
}

[data-theme="dark"] .area-card__text {
  color: rgba(13, 22, 41, 0.8); /* Keep dark text */
}

.area-card.is-expanded .area-card__description {
  max-height: 200px;
  margin-top: var(--space-md);
}

/* Expand indicator */
.area-card__expand {
  font-size: clamp(0.875rem, 1.5vw, 1rem); /* Minimum 14px, prefer 16px */
  color: #5AB6A0; /* Consistent teal color for all "LES MEIRA" links */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  line-height: 1.6;
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.area-card__expand-icon {
  transition: transform 0.3s ease;
}

.area-card.is-expanded .area-card__expand-icon {
  transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
  .strategic-areas {
    padding: var(--space-2xl) 0;
  }
  
  .strategic-areas__header {
    margin-bottom: var(--space-xl);
    padding: 0 var(--space-sm);
  }
  
  .strategic-areas__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: 0 var(--space-sm);
  }
  
  .area-card {
    padding: var(--space-lg);
  }
  
  .area-card__icon {
    margin-bottom: var(--space-sm);
  }
  
  .area-card__title {
    margin-bottom: var(--space-xs);
  }
  
  .area-card__subtitle {
    margin-bottom: var(--space-sm);
  }
}

/* Active/Selected State */
.area-card.is-active {
  background: linear-gradient(135deg, var(--card-color) 0%, rgba(var(--card-color), 0.8) 100%);
  color: white;
  border-color: var(--card-color);
  transform: scale(1.05);
}

.area-card.is-active .area-card__title,
.area-card.is-active .area-card__description,
.area-card.is-active .area-card__expand {
  color: white;
}

.area-card.is-active .area-card__subtitle {
  color: rgba(255, 255, 255, 0.9);
}

