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

:root {
  --bg: #0e0e10;
  --surface: #1a1a2e;
  --accent: #e94560;
  --accent-dim: #c23152;
  --text: #eaeaea;
  --text-muted: #9a9aaf;
  --radius: 12px;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Header ---- */
header {
  text-align: center;
  padding: 3rem 1rem 1.5rem;
}

header h1 {
  font-size: 3rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* ---- Filters ---- */
.filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1rem 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--accent-dim);
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---- Grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem 3rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

/* ---- Card ---- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.15);
}

.card-body {
  padding: 1.25rem;
}

.card-body h2 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.card-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.local {
  background: #16213e;
  color: #4fc3f7;
  border: 1px solid #4fc3f7;
}

.badge.international {
  background: #2e1a2e;
  color: #e94560;
  border: 1px solid #e94560;
}

/* ---- Footer ---- */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.footer-icons a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-icons a:hover {
  color: var(--accent);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  header h1 {
    font-size: 2rem;
  }

  .grid {
    grid-template-columns: 1fr;
    padding: 0 1rem 2rem;
  }
}
