/* DropAlpha Design System */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #0a0a0f;
  --bg-card: #111118;
  --bg-glow: #15151f;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --accent-bg: rgba(0, 255, 136, 0.06);
  --text-primary: #e8e8ef;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --border: #1e1e2e;
  --danger: #ff4757;
  --warning: #ffa502;
  --info: #3742fa;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover { opacity: 0.8; }

.noise {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* NAV */
nav {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--accent-bg);
  opacity: 1;
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid rgba(0, 255, 136, 0.15);
}

/* BADGES / TAGS */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-beginner { background: rgba(0, 255, 136, 0.12); color: #00ff88; }
.badge-intermediate { background: rgba(255, 165, 2, 0.12); color: #ffa502; }
.badge-pro { background: rgba(255, 71, 87, 0.12); color: #ff4757; }

.badge-easy { background: rgba(0, 255, 136, 0.12); color: #00ff88; }
.badge-medium { background: rgba(255, 165, 2, 0.12); color: #ffa502; }
.badge-hard { background: rgba(255, 71, 87, 0.12); color: #ff4757; }
.badge-expert { background: rgba(163, 55, 255, 0.12); color: #a337ff; }

.badge-active { background: rgba(0, 255, 136, 0.12); color: #00ff88; }
.badge-upcoming { background: rgba(55, 66, 250, 0.12); color: #5c6bff; }
.badge-ended { background: rgba(85, 85, 106, 0.12); color: var(--text-muted); }
.badge-confirmed { background: rgba(0, 255, 136, 0.2); color: #00ff88; }

/* CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.card:hover {
  border-color: rgba(0, 255, 136, 0.2);
  transform: translateY(-2px);
}

/* FILTERS */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(0, 255, 136, 0.3);
}

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

/* SECTION HEADERS */
.section-header {
  margin-bottom: 32px;
}

.section-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.section-header h1 em {
  font-style: normal;
  color: var(--accent);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* GRID LAYOUTS */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* META INFO */
.meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 80px;
}

.footer-left {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-right {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-right a {
  color: var(--text-secondary);
}

/* LOADING */
.loading {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ARTICLE CONTENT */
.article-content {
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.article-content h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin: 40px 0 16px;
  letter-spacing: -0.5px;
}

.article-content h3 {
  color: var(--text-primary);
  font-size: 1.15rem;
  margin: 28px 0 12px;
}

.article-content p { margin-bottom: 16px; }

.article-content ul, .article-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-content li { margin-bottom: 8px; }

.article-content strong { color: var(--text-primary); }

.article-content code {
  background: var(--bg-glow);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.article-content th, .article-content td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.article-content th {
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

/* BACK LINK */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  transition: color 0.2s ease;
}

.back-link:hover { color: var(--accent); opacity: 1; }

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

.empty-state .emoji { font-size: 2.5rem; margin-bottom: 16px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section-header h1 { font-size: 1.6rem; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 12px 0;
    z-index: 100;
    justify-content: space-around;
  }

  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
  }

  .mobile-nav a.active { color: var(--accent); }
  .mobile-nav .nav-icon { font-size: 1.2rem; }

  body { padding-bottom: 72px; }
}

@media (min-width: 769px) {
  .mobile-nav { display: none; }
}
