/* Modern Global Layout Module - Stripe/Linear Inspired */

.gl2-section-light {
  padding: 80px 0;
}

.gl2-header-light h2 {
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #1a1f2e;
}

.gl2-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.gl2-card-modern {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.gl2-card-modern:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.gl2-card-modern:focus-within {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.gl2-card-img-modern {
  height: 200px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 24px 28px;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.gl2-card-img-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.gl2-card-badge-modern {
  position: relative;
  z-index: 2;
  display: inline-block;
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.gl2-card-modern:hover .gl2-card-badge-modern {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.25);
}

.gl2-card-name-modern {
  position: relative;
  z-index: 2;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.gl2-card-body-modern {
  padding: 24px 24px 28px;
}

.gl2-card-desc-modern {
  font-size: 1rem;
  color: #4a5568;
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
}

/* Color system using CSS variables */
.gl2-card-modern[data-city="qd"] .gl2-card-badge-modern {
  background: rgba(201, 168, 76, 0.25);
}

.gl2-card-modern[data-city="sh"] .gl2-card-badge-modern {
  background: rgba(76, 143, 201, 0.25);
}

.gl2-card-modern[data-city="sz"] .gl2-card-badge-modern {
  background: rgba(76, 201, 143, 0.25);
}

/* Responsive improvements */
@media (max-width: 1024px) {
  .gl2-section-light {
    padding: 64px 0;
  }
  
  .gl2-header-light h2 {
    font-size: 2.25rem;
  }
  
  .gl2-cards-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .gl2-section-light {
    padding: 48px 0;
  }
  
  .gl2-header-light h2 {
    font-size: 1.875rem;
  }
  
  .gl2-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .gl2-card-img-modern {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .gl2-section-light {
    padding: 32px 0;
  }
  
  .gl2-header-light h2 {
    font-size: 1.5rem;
  }
  
  .gl2-card-img-modern {
    height: 140px;
    padding: 20px 16px 24px;
  }
  
  .gl2-card-name-modern {
    font-size: 1.25rem;
  }
}

/* Accessibility enhancements */
.gl2-card-modern:focus-within {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .gl2-card-modern,
  .gl2-card-modern:hover,
  .gl2-card-modern:focus-within {
    animation: none;
    transition: none;
  }
}

/* Font stack for modern typography */
.gl2-card-name-modern,
.gl2-card-desc-modern {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
}
