/* ============================================================
   STREET BRAWL WIKI - Additional Styles
   ============================================================ */

.wiki-hero { padding: 120px 24px 60px; text-align: center; }
.wiki-hero h1 { font-size: 3rem; margin-bottom: 12px; }
.wiki-hero p { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 24px; }
.wiki-nav-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pill {
  padding: 6px 16px; border-radius: 50px; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-dim); text-decoration: none; font-size: 0.85rem; transition: 0.3s;
}
.pill:hover { border-color: var(--primary); color: var(--primary); }

.wiki-content { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.wiki-section { padding: 80px 0; border-bottom: 1px solid var(--border); }
.wiki-section h2 { font-size: 2rem; margin-bottom: 24px; }
.section-desc { color: var(--text-dim); margin-bottom: 24px; }

/* Guide */
.guide-steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.guide-step { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.gs-num { width: 36px; height: 36px; background: var(--gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.gs-content h4 { margin-bottom: 4px; }
.gs-content p { color: var(--text-dim); font-size: 0.9rem; }
.guide-tips { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.guide-tips h4 { color: var(--primary); margin-bottom: 12px; }
.guide-tips li { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 8px; list-style: none; }
.guide-tips li::before { content: "- "; color: var(--primary); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th, td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
th { color: var(--text-dim); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
.table-note { color: var(--text-dim); font-size: 0.85rem; font-style: italic; margin-top: 12px; }
.safe td { color: #4caf50; }
.danger td:nth-child(3) { color: #ff9800; }
.extreme td:nth-child(3) { color: #f44336; }
.hell td { color: #f44336; font-weight: 600; }
.rate-table { overflow-x: auto; }

/* Tier colors in table */
.tier-c td:first-child { color: var(--tier-c); }
.tier-b td:first-child { color: var(--tier-b); }
.tier-a td:first-child { color: var(--tier-a); }
.tier-s td:first-child { color: var(--tier-s); }
.tier-ss td:first-child { color: var(--tier-ss); }
.tier-sss td:first-child { color: var(--tier-sss); }
.tier-ur td:first-child { color: var(--tier-ur); }
.tier-supreme td:first-child { color: var(--tier-supreme); }
.tier-limited td:first-child { color: var(--tier-limited); }

/* Wiki Filter */
.wiki-filter { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.wiki-search, .wiki-select {
  padding: 10px 16px; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-body); font-size: 0.9rem; outline: none; transition: 0.3s;
}
.wiki-search { flex: 1; min-width: 200px; }
.wiki-search:focus, .wiki-select:focus { border-color: var(--primary); }

/* Character cards */
.wiki-tier-section { margin-bottom: 32px; }
.tier-header { padding: 12px 20px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 1.2rem; }
.tier-header.tier-limited { background: rgba(0,255,255,0.08); color: var(--tier-limited); border-left: 4px solid var(--tier-limited); }
.tier-header.tier-supreme { background: rgba(255,20,147,0.08); color: var(--tier-supreme); border-left: 4px solid var(--tier-supreme); }
.tier-header.tier-ur { background: rgba(255,215,0,0.08); color: var(--tier-ur); border-left: 4px solid var(--tier-ur); }
.tier-header.tier-sss { background: rgba(244,67,54,0.08); color: var(--tier-sss); border-left: 4px solid var(--tier-sss); }
.tier-header.tier-ss { background: rgba(255,152,0,0.08); color: var(--tier-ss); border-left: 4px solid var(--tier-ss); }
.tier-header.tier-s { background: rgba(156,39,176,0.08); color: var(--tier-s); border-left: 4px solid var(--tier-s); }
.tier-header.tier-a { background: rgba(33,150,243,0.08); color: var(--tier-a); border-left: 4px solid var(--tier-a); }
.tier-header.tier-b { background: rgba(76,175,80,0.08); color: var(--tier-b); border-left: 4px solid var(--tier-b); }
.tier-header.tier-c { background: rgba(158,158,158,0.08); color: var(--tier-c); border-left: 4px solid var(--tier-c); }

.wiki-char-grid, .wiki-weap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.wiki-char-card, .wiki-weap-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; transition: 0.3s;
}
.wiki-char-card:hover, .wiki-weap-card:hover { background: var(--bg-card-hover); }
.tier-border-limited { border-left: 3px solid var(--tier-limited); }
.tier-border-supreme { border-left: 3px solid var(--tier-supreme); }
.tier-border-ur { border-left: 3px solid var(--tier-ur); }
.tier-border-sss { border-left: 3px solid var(--tier-sss); }
.tier-border-ss { border-left: 3px solid var(--tier-ss); }
.tier-border-s { border-left: 3px solid var(--tier-s); }
.tier-border-a { border-left: 3px solid var(--tier-a); }
.tier-border-b { border-left: 3px solid var(--tier-b); }
.tier-border-c { border-left: 3px solid var(--tier-c); }

.wc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wc-name { font-family: var(--font); font-weight: 700; }
.wc-role { font-size: 0.8rem; padding: 2px 8px; border-radius: 50px; background: rgba(255,255,255,0.05); }
.role-assassin, .role-assassin { color: #f44336; }
.role-tank { color: #2196f3; }
.role-mage { color: #9c27b0; }
.role-fighter { color: #ff9800; }
.role-support { color: #4caf50; }
.wc-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.wc-stats span { font-size: 0.8rem; color: var(--text-dim); background: rgba(255,255,255,0.03); padding: 2px 6px; border-radius: 4px; }
.wc-skill { font-size: 0.8rem; color: var(--text-dim); }
.wc-skill strong { color: var(--primary); }

.ww-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.ww-name { font-family: var(--font); font-weight: 700; }
.ww-atk { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.ww-effect { margin-bottom: 4px; font-size: 0.85rem; }
.effect-badge { padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.effect-bleed, .effect-burn, .effect-poison { background: rgba(244,67,54,0.15); color: #f44336; }
.effect-stun, .effect-freeze { background: rgba(33,150,243,0.15); color: #42a5f5; }
.effect-armorbreak { background: rgba(255,152,0,0.15); color: #ff9800; }
.effect-doublestrike, .effect-critboost { background: rgba(255,215,0,0.15); color: #ffd700; }
.effect-lifesteal, .effect-shield, .effect-absorb { background: rgba(76,175,80,0.15); color: #4caf50; }
.effect-dmgreduce, .effect-defboost, .effect-reflect { background: rgba(33,150,243,0.15); color: #42a5f5; }
.effect-purify { background: rgba(156,39,176,0.15); color: #ce93d8; }
.ww-desc { font-size: 0.8rem; color: var(--text-dim); }

/* Effects grid */
.effects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 32px; }
.effect-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.effect-card h4 { margin-bottom: 4px; }
.effect-type { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 8px; text-transform: uppercase; }
.effect-card p:last-child { font-size: 0.85rem; color: var(--text-dim); }
.effect-card.offensive { border-left: 3px solid #f44336; }
.effect-card.defensive { border-left: 3px solid #42a5f5; }
.effect-scaling { margin-top: 24px; }

/* Meta */
.meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.meta-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.meta-tier { font-size: 0.75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; margin-bottom: 8px; }
.meta-card h4 { margin-bottom: 8px; }
.meta-formation { font-size: 0.85rem; color: var(--accent); margin-bottom: 8px; }
.meta-team { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 12px; line-height: 1.6; background: rgba(255,255,255,0.02); padding: 8px; border-radius: 4px; }
.meta-strat { font-size: 0.85rem; color: var(--text-dim); }

/* Formations */
.formation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.formation-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.formation-card h4 { margin-bottom: 8px; }
.form-layout { font-size: 0.8rem; color: var(--accent); margin-bottom: 4px; }
.form-stats { font-size: 0.8rem; color: var(--primary); margin-bottom: 8px; font-family: var(--font); }
.formation-card p:last-child { font-size: 0.85rem; color: var(--text-dim); }
.form-note { color: var(--text-dim); font-size: 0.9rem; margin-top: 16px; text-align: center; }

/* Economy */
.econ-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.econ-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.econ-card h4 { color: var(--primary); margin-bottom: 12px; }
.econ-card li { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 6px; list-style: none; }

@media (max-width: 768px) {
  .wiki-char-grid, .wiki-weap-grid { grid-template-columns: 1fr; }
  .econ-grid, .formation-grid { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: 1fr; }
}
