/* Regions Page Styles */

.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a962' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

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

.page-hero-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  display: block;
}

.page-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.page-hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Map Section */
.map-section {
  padding: 4rem 2rem;
  background: var(--bg-primary);
}

.map-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.world-map {
  width: 100%;
  height: auto;
}

.region-path {
  cursor: pointer;
  transition: all var(--transition-medium);
}

.region-path:hover {
  opacity: 0.8 !important;
  filter: brightness(1.1);
}

.map-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(255,255,255,0.8);
  pointer-events: auto;
  cursor: pointer;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.9);
  border-radius: 20px;
  transition: all var(--transition-fast);
}

.map-label:hover {
  background: var(--accent-gold);
  color: white;
}

/* Region Cards */
.region-card {
  position: relative;
  overflow: hidden;
}

.region-card-header {
  padding: 1.5rem;
  color: white;
  position: relative;
}

.region-card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.region-card-header.africa::before { background: #E07B39; }
.region-card-header.asia::before { background: #C94C4C; }
.region-card-header.europe::before { background: #4A7C9B; }
.region-card-header.americas::before { background: #5A9A5A; }
.region-card-header.oceania::before { background: #7B9BC4; }
.region-card-header.middle-east::before { background: #D4A84B; }

.region-card-title {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}

.region-card-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.region-card-content {
  padding: 1.5rem;
}

.region-card-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.region-card-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.region-card-stat {
  text-align: center;
}

.region-card-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
  font-family: 'Playfair Display', serif;
}

.region-card-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.region-card-events {
  margin-bottom: 1.5rem;
}

.region-card-events-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.region-card-event-list {
  list-style: none;
}

.region-card-event-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.region-card-event-list li:last-child {
  border-bottom: none;
}

.region-card-event-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

.region-card-btn {
  width: 100%;
  padding: 0.875rem;
  background: var(--accent-gold);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.region-card-btn:hover {
  background: var(--accent-bronze);
}

/* Modal */
.region-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

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

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--accent-gold);
  color: white;
}

.modal-body {
  padding: 2.5rem;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.modal-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.modal-section {
  margin-bottom: 2rem;
}

.modal-section-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-gold);
}

.modal-timeline {
  list-style: none;
}

.modal-timeline li {
  padding: 1rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.modal-timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 10px;
  height: 10px;
  background: var(--accent-gold);
  border-radius: 50%;
}

.modal-timeline-year {
  font-weight: 600;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.25rem;
}

.modal-timeline-event {
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .map-label {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }
  
  .modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}
