:root {
  --background: oklch(0.98 0.005 250);
  --foreground: oklch(0.25 0.02 250);
  --card: oklch(1 0 0);
  --muted: oklch(0.96 0.005 250);
  --muted-foreground: oklch(0.50 0.02 250);
  --border: oklch(0.90 0.005 250);
  --primary: oklch(0.45 0.15 250);
  --primary-foreground: oklch(1 0 0);
  --accent: oklch(0.65 0.15 200);
  --accent-foreground: oklch(1 0 0);
  --copilot: oklch(0.65 0.18 35);
  --cloud-ai: oklch(0.60 0.15 145);
  --security: oklch(0.55 0.15 250);
  --shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 20px 42px rgba(15, 23, 42, 0.14);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--foreground);
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(104, 154, 255, 0.08), transparent 28%),
    linear-gradient(135deg, var(--background), var(--muted));
}

a { color: inherit; }

.page-shell { min-height: 100vh; }
.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.hero h1 {
  margin: 0 0 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero p {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--muted-foreground);
}
.hero-actions { display: flex; align-items: center; }
.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.hero-period {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--muted);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}
.hero-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(15, 23, 42, 0.12);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-pill {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.filter-pill:hover { transform: translateY(-1px); }
.filter-pill.active {
  color: white;
  border-color: transparent;
}
.filter-pill .count {
  margin-left: 6px;
  font-size: 0.78rem;
  opacity: 0.8;
}
.toolbar-meta {
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.event-card {
  background: var(--card);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.card-topbar {
  height: 4px;
  background: var(--primary);
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 18px;
  flex: 1;
}
.card-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.difficulty {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #E6F9FB;
  color: #008C95;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.event-title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.hashtag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hashtag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}
.detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 0.93rem;
}
.detail-icon {
  width: 18px;
  text-align: center;
  flex: 0 0 18px;
}
.event-description {
  margin: 0;
  color: rgba(15, 23, 42, 0.82);
  line-height: 1.65;
  font-size: 0.95rem;
  
  /*display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;*/
}
.card-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: flex-end;
}
.register-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  background: var(--primary);
  color: var(--primary-foreground);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.register-link:hover { opacity: 0.92; transform: translateY(-1px); }

.empty-state {
  padding: 28px 0 12px;
}
.empty-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  padding: 52px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.empty-icon { font-size: 2rem; margin-bottom: 12px; }
.empty-card h2 { margin: 0 0 10px; font-size: 1.35rem; }
.empty-card p { margin: 0; color: var(--muted-foreground); line-height: 1.6; }

.page-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.92rem;
  text-align: center;
}
.hidden { display: none !important; }

@media (max-width: 1024px) {
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .container { width: min(100% - 24px, 1200px); padding-top: 24px; }
  .hero { flex-direction: column; margin-bottom: 24px; }
  .hero-actions { width: 100%; }
  .hero-link { width: 100%; }
  .toolbar { align-items: stretch; }
  .event-grid { grid-template-columns: 1fr; gap: 18px; }
  .card-body { padding: 18px 18px 16px; }
  .card-footer { padding: 14px 18px 18px; }
}
