/* SF6 Lab - Dark theme inspired by fighting game UIs */
:root {
  --bg: #0a0a0f;
  --surface: #14141f;
  --surface2: #1e1e2e;
  --border: #2a2a3a;
  --text: #e0e0e8;
  --text-dim: #8888a0;
  --accent: #ff4444;
  --accent2: #44aaff;
  --positive: #44dd66;
  --negative: #ff4444;
  --neutral: #cccc44;
}

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

body {
  font-family: 'Segoe UI', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: 2px solid var(--accent);
  padding: 1.5rem 0;
  text-align: center;
}
header h1 a { color: var(--text); text-decoration: none; font-size: 2rem; letter-spacing: 0.15em; }
header .tagline { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.3rem; }

.char-nav {
  display: flex; gap: 1rem; justify-content: center;
  padding: 2rem 1rem; flex-wrap: wrap;
}
.char-card {
  display: flex; flex-direction: column; align-items: center;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem 3rem;
  text-decoration: none; color: var(--text);
  transition: all 0.2s;
}
.char-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255,68,68,0.15); }
.char-name { font-size: 1.5rem; font-weight: bold; }
.char-en { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.3rem; }

main { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }

.intro h2 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--accent2); }
.intro h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; color: var(--text); }
.intro p { margin-bottom: 0.8rem; color: var(--text-dim); }
.intro ul { list-style: none; padding: 0; }
.intro li { padding: 0.4rem 0; padding-left: 1.2rem; position: relative; }
.intro li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }

/* Frame Data Table */
.frame-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.85rem; }
.frame-table th {
  background: var(--surface2); padding: 0.6rem 0.4rem;
  border: 1px solid var(--border); font-weight: 600;
  position: sticky; top: 0; z-index: 1;
}
.frame-table td {
  padding: 0.5rem 0.4rem; border: 1px solid var(--border);
  text-align: center; background: var(--surface);
}
.frame-table tr:hover td { background: var(--surface2); }
.frame-table td:first-child { text-align: left; font-weight: 500; white-space: nowrap; }
.frame-table .positive { color: var(--positive); font-weight: bold; }
.frame-table .negative { color: var(--negative); font-weight: bold; }
.frame-table .neutral { color: var(--neutral); }

/* Combo Section */
.combo-section { margin: 2rem 0; }
.combo-section h2 { font-size: 1.4rem; color: var(--accent2); margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.combo-section h3 { font-size: 1.1rem; color: var(--accent); margin: 1.5rem 0 0.5rem; }

.combo-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 1rem; margin: 0.8rem 0;
}
.combo-card .combo-label { font-size: 0.8rem; color: var(--accent); font-weight: bold; text-transform: uppercase; margin-bottom: 0.3rem; }
.combo-card .combo-notation { font-family: 'Courier New', monospace; font-size: 1rem; margin: 0.5rem 0; color: var(--text); letter-spacing: 0.5px; }
.combo-card .combo-dmg { font-size: 0.85rem; color: var(--text-dim); }
.combo-card .combo-note { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.5rem; font-style: italic; }

.tag { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: bold; margin-right: 0.3rem; }
.tag-max { background: #ff444430; color: var(--accent); }
.tag-oki { background: #44aaff30; color: var(--accent2); }
.tag-easy { background: #44dd6630; color: var(--positive); }
.tag-corner { background: #cc44ff30; color: #cc88ff; }

/* Tab navigation */
.tabs { display: flex; gap: 0; margin: 1.5rem 0 0; border-bottom: 2px solid var(--border); }
.tab { padding: 0.7rem 1.5rem; cursor: pointer; color: var(--text-dim); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; font-weight: 500; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

footer {
  text-align: center; padding: 2rem; color: var(--text-dim);
  font-size: 0.8rem; border-top: 1px solid var(--border); margin-top: 3rem;
}

@media (max-width: 600px) {
  .char-card { padding: 1.5rem 2rem; }
  .frame-table { font-size: 0.75rem; }
  .frame-table td, .frame-table th { padding: 0.3rem 0.2rem; }
}
