/* Haskelia.io — Dark Theme (Midnight Aligned) */

:root {
  /* Midnight-inspired palette */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-hover: #222240;
  --border: #2a2a45;
  --border-glow: #4a3f8a;

  /* Text */
  --text-primary: #e8e6f0;
  --text-secondary: #9895a8;
  --text-muted: #6b6880;

  /* Accent — Midnight purple */
  --accent: #7c5cbf;
  --accent-hover: #9b7dd4;
  --accent-glow: rgba(124, 92, 191, 0.3);

  /* Status */
  --success: #4ade80;
  --warning: #fbbf24;
  --error: #f87171;

  /* Spacing */
  --radius: 8px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', monospace;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Wallet Gate — the first thing anyone sees */
.wallet-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(124, 92, 191, 0.08) 0%, transparent 60%),
    var(--bg-primary);
}

.wallet-gate__logo {
  width: 120px;
  height: 120px;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.wallet-gate__title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.wallet-gate__subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

.wallet-gate__connect {
  background: var(--accent);
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px var(--accent-glow);
}

.wallet-gate__connect:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-1px);
}

.wallet-gate__connect:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.wallet-gate__status {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Main layout (post-authentication) */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 56px 1fr;
  min-height: 100vh;
}

.app__header {
  grid-column: 1 / -1;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
}

.app__sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 1rem 0;
}

.app__content {
  padding: 2rem;
  overflow-y: auto;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: var(--border-glow);
}

.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card__meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Navigation */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-item--active {
  color: var(--accent);
  border-left: 2px solid var(--accent);
}

/* Three dots — logo motif */
.dots-vertical {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.dots-vertical__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.dots-vertical__dot:nth-child(2) {
  opacity: 0.7;
}

.dots-vertical__dot:nth-child(3) {
  opacity: 0.4;
}
