/* Poker Blind Structure — pokerblindstructure.com */

:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --border: #2d3a4d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --break-bg: #1c3a5e;
  --break-border: #2563eb;
  --success: #3fb950;
  --error: #f85149;
  --radius: 8px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-tagline {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Series tabs */
.series-selector {
  padding: 1.5rem 0 1rem;
}

.series-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.series-tab {
  font: inherit;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.series-tab:hover {
  color: var(--text);
  border-color: var(--accent);
}

.series-tab.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(88, 166, 255, 0.08);
}

/* Blind structure section */
.blind-structure {
  padding-bottom: 3rem;
}

.loading,
.error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--radius);
}

.loading {
  background: var(--surface);
  color: var(--text-muted);
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.error {
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

.error p { margin: 0; }

.structure-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.structure-meta .starting-stack {
  font-weight: 600;
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.blind-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.blind-table th,
.blind-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.blind-table th {
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.blind-table tbody tr:last-child td {
  border-bottom: none;
}

.blind-table tbody tr:hover:not(.row-break) td {
  background: rgba(88, 166, 255, 0.04);
}

/* Break / close registration row */
.blind-table tbody tr.row-break {
  background: var(--break-bg);
  border-top: 1px solid var(--break-border);
  border-bottom: 1px solid var(--break-border);
}

.blind-table tbody tr.row-break td {
  padding: 0.85rem 0.85rem;
  border-bottom: none;
  color: var(--accent);
  font-weight: 500;
}

.blind-table tbody tr.row-break td:first-child {
  font-weight: 600;
}

/* Numeric columns right-aligned */
.blind-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.blind-table th.num,
.blind-table td.num {
  text-align: right;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 640px) {
  .blind-table th,
  .blind-table td {
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
  }
}
