/* style.css — Clone vibe eventlist.io: clean, minimal, sharp */
:root {
    --bg: #fafaf9;
    --surface: #ffffff;
    --border: #e7e5e4;
    --text: #1c1917;
    --text-muted: #78716c;
    --accent: #0f172a;
    --accent-2: #2563eb;
    --success: #16a34a;
    --warning: #eab308;
    --danger: #dc2626;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
    --shadow-hover: 0 4px 12px rgba(0,0,0,.08), 0 12px 24px rgba(0,0,0,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,.85);
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    height: 64px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--text);
    font-weight: 700; font-size: 1.05rem;
}
.logo-mark { font-size: 1.5rem; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
    color: var(--text-muted); text-decoration: none;
    font-size: .95rem; font-weight: 500;
    transition: color .15s;
}
.main-nav a:hover { color: var(--text); }
.lang-toggle {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    background: var(--bg);
    border-radius: 6px;
    font-size: .85rem; font-weight: 600;
}
.lang-toggle a {
    color: var(--text-muted) !important;
    text-decoration: none;
}
.lang-toggle a.active { color: var(--text) !important; }
.lang-toggle span { color: var(--border); }

/* Hero */
.hero {
    padding: 80px 0 48px;
    text-align: center;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 16px;
    line-height: 1.1;
}
.hero-sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 32px;
}
.hero-stats {
    display: flex; justify-content: center; gap: 48px;
    margin-top: 32px;
}
.stat {
    display: flex; flex-direction: column; align-items: center;
}
.stat strong {
    font-size: 2rem; font-weight: 800;
    color: var(--text);
}
.stat span {
    font-size: .85rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .05em;
}

/* Filters */
.filters {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky; top: 64px; z-index: 50;
}
.filter-form {
    display: flex; gap: 12px; align-items: center;
    flex-wrap: wrap;
}
.filter-form select {
    padding: 8px 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 8px;
    font-size: .9rem;
    color: var(--text);
    cursor: pointer;
    min-width: 160px;
}
.filter-form select:hover { border-color: var(--text-muted); }
.btn-clear {
    margin-left: auto;
    padding: 8px 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.btn-clear:hover { color: var(--text); border-color: var(--text); }

/* Events Grid */
.events-grid-section { padding: 48px 0 80px; }
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.event-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: flex; flex-direction: column;
}
.event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--text-muted);
}
.event-flyer {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.event-flyer img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.event-body {
    padding: 20px;
    display: flex; flex-direction: column;
    flex: 1;
}
.event-meta {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 12px;
}
.event-topic, .event-source {
    font-size: .75rem;
    padding: 3px 10px;
    background: var(--bg);
    border-radius: 999px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.event-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.35;
    color: var(--text);
}
.event-details {
    display: flex; flex-direction: column; gap: 6px;
    font-size: .875rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex: 1;
}
.event-detail {
    display: flex; gap: 8px; align-items: flex-start;
}
.event-detail .icon { flex-shrink: 0; opacity: .7; }
.event-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.status-badge {
    font-size: .75rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}
.status-chua-dang-ky { background: #fef3c7; color: #92400e; }
.status-da-dang-ky { background: #dbeafe; color: #1e40af; }
.status-da-tham-du { background: #d1fae5; color: #065f46; }
.status-bo-qua { background: #f3f4f6; color: #6b7280; }
.btn-link {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 600;
    font-size: .875rem;
}
.btn-link:hover { text-decoration: underline; }

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Footer */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: .875rem;
}

/* Responsive */
@media (max-width: 640px) {
    .header-inner { height: 56px; }
    .hero { padding: 48px 0 32px; }
    .hero-stats { gap: 24px; }
    .stat strong { font-size: 1.5rem; }
    .filters { top: 56px; }
    .filter-form select { flex: 1; min-width: 0; }
    .events-grid { grid-template-columns: 1fr; }
}
