/* === events.css === */

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* Event Card */
.event-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  border-color: #6366f1;
}

.event-card-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 20px;
}

.event-card-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #1e293b;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.event-card-meta {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.event-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-card-meta i {
  color: #94a3b8;
  font-size: 0.7rem;
}

/* Event Stats */
.event-card-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.event-stat {
  text-align: center;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
}

.event-stat-val {
  font-size: 2rem;
  font-weight: 900;
  color: #1e293b;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}

.event-stat-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.7px;
  margin-top: 4px;
}

/* Progress Bar */
.event-progress {
  margin-bottom: 20px;
}

.event-progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}

.event-progress-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
}

.event-progress-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-align: center;
}

/* Event Actions */
.event-card-actions {
  display: flex;
  gap: 8px;
}

.event-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.event-btn i {
  font-size: 0.7rem;
}

.event-btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.event-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.event-btn-ghost {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.event-btn-ghost:hover {
  background: #e2e8f0;
  color: #475569;
}

/* Event Detail Tabs */
.event-detail-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0;
}

.event-tab {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  margin-bottom: -2px;
}

.event-tab:hover {
  color: #6366f1;
  background: #f8fafc;
}

.event-tab.active {
  color: #6366f1;
  border-bottom-color: #6366f1;
}

.event-tab-content {
  display: none;
  padding: 20px 0;
}

.event-tab-content.active {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
  
  .event-card-stats {
    grid-template-columns: 1fr;
  }
  
  .event-card-actions {
    flex-direction: column;
  }
  
  .event-btn {
    width: 100%;
  }
}
