/* ============================================================
   TIER LIST — tier-list.styles.css
   ============================================================ */

:root {
  --bg-base:        #0d0d0d;
  --bg-surface:     #111111;
  --border:         #1e2a3a;
  --accent-primary: #06b6d4;
  --accent-bright:  #22d3ee;
  --text-primary:   #e8e8f0;
  --text-muted:     #6b6b8a;
  --text-label:     #9090b0;

  --tier-s: #FF7F50;
  --tier-a: #FFBF00;
  --tier-b: #9ACD32;
  --tier-c: #00CC99;
  --tier-d: #4169E1;

  --radius-btn: 8px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 1rem;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0;
  background: transparent;
  border: none;
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-back:hover { color: #ffffff; }

.btn-feedback-trigger {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: var(--transition);
}
.btn-feedback-trigger:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 3rem 2rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.page-title-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.page-title-icon { font-size: 2rem; }
.page-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -0.02em;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* ---------- Tier List Container ---------- */
.tier-list-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* ---------- Tier Row ---------- */
.tier-row {
  display: flex;
  align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 108px;
}

/* ---------- Tier Label ---------- */
.tier-label {
  width: 96px;
  min-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  gap: 0.2rem;
  color: #0d0d0d;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.tier-label-sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}
/* SS label is two characters — scale down slightly to fit */
.tier-label--wide { font-size: 1.6rem; }

/* ---------- Cards Area ---------- */
.tier-cards {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.025);
  align-content: flex-start;
}

/* ---------- Weapon Card ---------- */
.tier-card {
  position: relative;
  width: 90px;
  border-radius: 7px;
  overflow: hidden;
  text-decoration: none;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  flex-shrink: 0;
}
.tier-card:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.tier-card-img-wrap {
  width: 100%;
  height: 70px;
  overflow: hidden;
  background: #0f1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tier-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.15s ease;
}
.tier-card:hover .tier-card-img { transform: scale(1.08); }

.tier-card-fallback {
  font-size: 1.4rem;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1a2e;
}
.tier-card-name {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.28rem 0.35rem;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Subtle info dot for weapons with effects */
.tier-card.has-effects::after {
  content: 'i';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: rgba(6, 182, 212, 0.75);
  color: #fff;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  pointer-events: none;
}

/* Empty tier placeholder */
.tier-empty {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* ---------- Tooltip ---------- */
.weapon-tooltip {
  position: fixed;
  z-index: 9999;
  background: #101828;
  border: 1px solid #1e3a4a;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  max-width: 300px;
  min-width: 200px;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.weapon-tooltip.hidden { display: none; }
.tooltip-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-bright);
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #1e3a4a;
}
.tooltip-effect {
  font-size: 0.78rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 0.3rem;
}
.tooltip-effect--keyword { color: #fbbf24; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-header  { padding: 0 1rem; }
  .tier-label   { width: 68px; min-width: 68px; font-size: 1.75rem; }
  .tier-card    { width: 74px; }
  .tier-card-img-wrap { height: 58px; }
  .tier-list-container { padding: 0.75rem 0.75rem 3rem; }
  .hero         { padding: 2rem 1rem 1.5rem; }
  .page-title   { font-size: 1.75rem; }
}
