/* ================================================
   EVENT CARDS - AION 2K26 HOME PAGE
   Responsive & Optimized
================================================ */

/* =========================
   EVENTS SECTION
========================= */
.events-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 3vw, 1.5rem);
}

.events-category {
  margin-bottom: clamp(4rem, 10vw, 8rem);
}

.events-category:last-child {
  margin-bottom: 0;
}

/* =========================
   SECTION HEADER
========================= */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

/* Section Pill Badge */
.event-pill {
  display: inline-block;
  padding: clamp(0.375rem, 1vw, 0.5rem) clamp(0.875rem, 2vw, 1.25rem);
  border-radius: 9999px;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  font-weight: 600;
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tech-pill {
  background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
  color: #1E40AF;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.nontech-pill {
  background: linear-gradient(135deg, #FCE7F3 0%, #FBCFE8 100%);
  color: #BE185D;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15);
}

/* Section Title */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  color: white;
}

/* Section Description */
.section-description {
  color: rgba(148, 163, 184, 0.9);
  font-size: clamp(0.938rem, 2vw, 1.125rem);
  line-height: 1.7;
  max-width: 42rem;
  margin: 0 auto;
}

/* =========================
   EVENTS GRID
========================= */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

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

@media (min-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================
   EVENT CARD BASE
========================= */
.event-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.1) 0%, 
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Hover State */
.event-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
}

.event-card:hover::before {
  opacity: 1;
}

/* =========================
   EVENT BADGE (NUMBER)
========================= */
.event-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(2.5rem, 6vw, 3rem);
  height: clamp(2.5rem, 6vw, 3rem);
  background: #0F172A;
  color: white;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  font-weight: 700;
  padding: clamp(0.375rem, 1vw, 0.5rem) clamp(0.75rem, 2vw, 1rem);
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
}

/* Badge Color Variants */
.badge-blue { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); }
.badge-purple { background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%); }
.badge-cyan { background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%); }
.badge-indigo { background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%); }
.badge-green { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }
.badge-yellow { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); }
.badge-red { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); }
.badge-orange { background: linear-gradient(135deg, #F97316 0%, #EA580C 100%); }

/* =========================
   CARD CONTENT
========================= */
.event-card h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem);
  color: white;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.event-card p {
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  color: rgba(226, 232, 240, 0.8);
  line-height: 1.6;
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  position: relative;
  z-index: 1;
}

/* Event Meta Information */
.event-meta {
  display: flex;
  flex-direction: column;
  gap: clamp(0.375rem, 1vw, 0.5rem);
  margin-top: clamp(1rem, 2vw, 1.25rem);
  padding-top: clamp(0.75rem, 2vw, 1rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.event-time,
.event-team {
  font-size: clamp(0.75rem, 1.5vw, 0.813rem);
  font-weight: 600;
  color: rgba(148, 163, 184, 0.9);
  letter-spacing: 0.02em;
}

.event-time {
  color: #60A5FA;
}

.event-team::before {
  content: '👥 ';
  margin-right: 0.25rem;
}

/* =========================
   TECH / NON-TECH THEMES
========================= */

/* Technical Events */
.event-card.tech {
  border-color: rgba(59, 130, 246, 0.2);
}

.event-card.tech:hover {
  border-color: rgba(59, 130, 246, 0.6);
}

.event-card.tech::before {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.15) 0%, 
    transparent 60%
  );
}

/* Non-Technical Events */
.event-card.non-tech {
  border-color: rgba(236, 72, 153, 0.2);
}

.event-card.non-tech:hover {
  border-color: rgba(236, 72, 153, 0.6);
}

.event-card.non-tech::before {
  background: linear-gradient(135deg, 
    rgba(236, 72, 153, 0.15) 0%, 
    transparent 60%
  );
}

/* =========================
   MOBILE OPTIMIZATION
========================= */
@media (max-width: 640px) {
  .event-card {
    padding: 1.5rem 1.25rem;
  }
  
  .event-badge {
    top: -12px;
  }
  
  .event-meta {
    gap: 0.375rem;
  }
}

@media (max-width: 480px) {
  .events-section {
    padding: 2.5rem 1rem;
  }
  
  .events-category {
    margin-bottom: 3rem;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
}

/* =========================
   ANIMATIONS
========================= */
@media (prefers-reduced-motion: no-preference) {
  .event-card {
    animation: fadeInUp 0.6s ease-out backwards;
  }
  
  .event-card:nth-child(1) { animation-delay: 0.1s; }
  .event-card:nth-child(2) { animation-delay: 0.2s; }
  .event-card:nth-child(3) { animation-delay: 0.3s; }
  .event-card:nth-child(4) { animation-delay: 0.4s; }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Accessibility */
.event-card:focus-within {
  outline: 2px solid #60A5FA;
  outline-offset: 4px;
  border-radius: clamp(1rem, 2vw, 1.5rem);
}