/* ============================================
   TFT HOME CSS
   ============================================ */

.tft-page { background: #0b0e1a; }

/* HERO */
.tft-hero { background: #0b0e1a; padding: 48px 24px 40px; text-align: center; position: relative; overflow: hidden; }
.tft-hero-glow { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 260px; background: radial-gradient(ellipse, rgba(200,155,60,0.07) 0%, transparent 65%); pointer-events: none; }
canvas.tft-stars { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.tft-hero-inner { position: relative; z-index: 2; }
.tft-logo-row { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.tft-logo-box { width: 56px; height: 56px; border-radius: 14px; background: rgba(200,155,60,0.1); border: 1.5px solid rgba(200,155,60,0.4); display: flex; align-items: center; justify-content: center; animation: tfglow 3s ease-in-out infinite; }
.tft-logo-box img { width: 36px; height: 36px; object-fit: contain; }
@keyframes tfglow { 0%,100%{ border-color: rgba(200,155,60,0.3); } 50%{ border-color: rgba(200,155,60,0.8); } }
.tft-hero-title { font-family: 'Cinzel', serif; font-size: 32px; font-weight: 900; color: #eef3ff; letter-spacing: 3px; text-transform: uppercase; }
.tft-hero-title span { color: #C89B3C; }
.tft-divrow { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0 8px; }
.tft-dl { width: 90px; height: 0.5px; background: linear-gradient(90deg, transparent, rgba(200,155,60,0.5)); }
.tft-dr { width: 90px; height: 0.5px; background: linear-gradient(90deg, rgba(200,155,60,0.5), transparent); }
.tft-dd { width: 5px; height: 5px; background: #C89B3C; border-radius: 50%; animation: tfdot 2s ease-in-out infinite; }
@keyframes tfdot { 0%,100%{ opacity: 0.3; } 50%{ opacity: 1; } }
.tft-hero-sub { font-size: 10px; letter-spacing: 4px; color: #4a6080; text-transform: uppercase; margin-bottom: 5px; }
.tft-hero-desc { font-size: 13px; color: #3c4a6a; margin-bottom: 18px; }

/* STATS */
.tft-stats { display: flex; justify-content: center; gap: 24px; margin-bottom: 18px; }
.tft-stat-n { font-size: 20px; font-weight: 500; color: #C89B3C; font-family: 'Cinzel', serif; }
.tft-stat-l { font-size: 10px; color: #3c4a6a; margin-top: 2px; }

/* SEARCH */
.tft-search { display: flex; align-items: center; gap: 10px; background: #111d35; border: 0.5px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 0 16px; height: 46px; max-width: 580px; margin: 0 auto 14px; transition: border-color 0.2s; }
.tft-search:hover { border-color: rgba(200,155,60,0.35); }
.tft-search svg { color: #3c4a6a; width: 16px; height: 16px; flex-shrink: 0; }
.tft-search input { flex: 1; background: none; border: none; outline: none; font-size: 13px; color: #eef3ff; font-family: inherit; }
.tft-search input::placeholder { color: #2c3a5a; }
.tft-kbd-wrap { display: flex; gap: 3px; }
.tft-kbd-wrap span { background: #111827; border: 0.5px solid rgba(255,255,255,0.1); border-radius: 4px; padding: 2px 6px; font-size: 10px; color: #3c4a6a; }

/* QTAGS */
.tft-qtags { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.tft-qtag { background: rgba(255,255,255,0.04); border: 0.5px solid rgba(255,255,255,0.07); border-radius: 20px; padding: 4px 14px; font-size: 11px; color: #4a6080; text-decoration: none; transition: all 0.15s; }
.tft-qtag:hover { background: rgba(200,155,60,0.08); border-color: rgba(200,155,60,0.3); color: #C89B3C; }

/* SECTIONS */
.tft-sec { padding: 20px 24px 0; max-width: 1280px; margin: 0 auto; }
.tft-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tft-sec-title { font-size: 11px; font-weight: 700; color: #8090b8; text-transform: uppercase; letter-spacing: .06em; }
.tft-sec-link { font-size: 11px; color: #3c4a6a; text-decoration: none; }
.tft-sec-link:hover { color: #C89B3C; }
.tft-divline { height: 0.5px; background: rgba(255,255,255,0.05); margin: 20px 0 0; }

/* PATCH */
.tft-patch-list { display: flex; flex-direction: column; gap: 5px; }
.tft-patch-item { background: #111d35; border: 0.5px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 11px 14px; display: flex; align-items: center; gap: 12px; text-decoration: none; transition: all 0.15s; }
.tft-patch-item:hover { background: #111827; border-color: rgba(200,155,60,0.2); }
.tft-pbadge { background: rgba(200,155,60,0.1); border: 0.5px solid rgba(200,155,60,0.25); border-radius: 5px; padding: 2px 9px; font-size: 10px; color: #C89B3C; font-weight: 700; white-space: nowrap; }
.tft-pinfo { flex: 1; min-width: 0; }
.tft-pname { font-size: 13px; color: #ccd6e0; }
.tft-pdesc { font-size: 11px; color: #3c4a6a; margin-top: 2px; }
.tft-pnew { font-size: 9px; background: rgba(74,222,128,0.1); color: #4ade80; border-radius: 3px; padding: 2px 6px; }

/* TIER LIST */
.tft-tier-list { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.tft-tier-row { display: flex; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); min-height: 72px; align-items: stretch; }
.tft-tier-label { width: 80px; min-width: 80px; display: flex; align-items: center; justify-content: center; padding: 16px 0; align-self: stretch; }
.tft-tier-label--s { background: linear-gradient(180deg, #c8960c 0%, #7a5800 100%); }
.tft-tier-label--a { background: linear-gradient(180deg, #c03030 0%, #6a0000 100%); }
.tft-tier-label--b { background: linear-gradient(180deg, #1a60c0 0%, #052060 100%); }
.tft-tier-label--c { background: linear-gradient(180deg, #6040a0 0%, #201040 100%); }
.tft-tier-label--d { background: linear-gradient(180deg, #304050 0%, #101820 100%); }
.tft-tier-badge { width: 56px; height: 64px; }
.tft-tier-label--s .tft-tier-badge-bg { fill: #3a2800; stroke: #f0c040; stroke-width: 2.5px; }
.tft-tier-label--a .tft-tier-badge-bg { fill: #3a0800; stroke: #e84040; stroke-width: 2.5px; }
.tft-tier-label--b .tft-tier-badge-bg { fill: #051a40; stroke: #4a9eff; stroke-width: 2.5px; }
.tft-tier-label--c .tft-tier-badge-bg { fill: #1a1030; stroke: #8060b0; stroke-width: 2.5px; }
.tft-tier-label--d .tft-tier-badge-bg { fill: #151e28; stroke: #506070; stroke-width: 2.5px; }
.tft-tier-label--s .tft-tier-badge-text { fill: #f0c040; }
.tft-tier-label--a .tft-tier-badge-text { fill: #ff6060; }
.tft-tier-label--b .tft-tier-badge-text { fill: #60aaff; }
.tft-tier-label--c .tft-tier-badge-text { fill: #a080d0; }
.tft-tier-label--d .tft-tier-badge-text { fill: #607080; }
.tft-tier-grid { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; align-content: flex-start; }
.tft-tier-row[data-tier="S"] .tft-tier-grid { background: linear-gradient(90deg, #7a580044 0%, #0e1525 35%); }
.tft-tier-row[data-tier="A"] .tft-tier-grid { background: linear-gradient(90deg, #6a000044 0%, #0e1525 35%); }
.tft-tier-row[data-tier="B"] .tft-tier-grid { background: linear-gradient(90deg, #05206044 0%, #0e1525 35%); }
.tft-tier-row[data-tier="C"] .tft-tier-grid { background: linear-gradient(90deg, #20104044 0%, #0e1525 35%); }
.tft-tier-row[data-tier="D"] .tft-tier-grid { background: linear-gradient(90deg, #10182044 0%, #0e1525 35%); }
.tft-champ-card { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #162035; border-radius: 7px; border: 1px solid #253352; text-decoration: none; transition: border-color 0.15s, background 0.15s; }
.tft-champ-card:hover { background: #151f35; }
.tft-tier-row[data-tier="S"] .tft-champ-card:hover { border-color: rgba(200,155,60,0.5); }
.tft-tier-row[data-tier="A"] .tft-champ-card:hover { border-color: rgba(232,64,64,0.5); }
.tft-tier-row[data-tier="B"] .tft-champ-card:hover { border-color: rgba(74,158,255,0.5); }
.tft-tier-row[data-tier="C"] .tft-champ-card:hover { border-color: rgba(128,96,176,0.5); }
.tft-tier-row[data-tier="D"] .tft-champ-card:hover { border-color: rgba(80,96,112,0.5); }
.tft-champ-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #253352; flex-shrink: 0; }
.tft-tier-row[data-tier="S"] .tft-champ-img { border-color: #c89b3c; }
.tft-tier-row[data-tier="A"] .tft-champ-img { border-color: #e84040; }
.tft-tier-row[data-tier="B"] .tft-champ-img { border-color: #4a9eff; }
.tft-tier-row[data-tier="C"] .tft-champ-img { border-color: #8060b0; }
.tft-tier-row[data-tier="D"] .tft-champ-img { border-color: #506070; }
.tft-champ-info { display: flex; flex-direction: column; gap: 1px; }
.tft-champ-name { font-size: 12px; font-weight: 600; color: #ccd6e0; white-space: nowrap; }
.tft-champ-cost { font-size: 10px; font-weight: 700; }
.tft-cost-1 { color: #9aaabb; }
.tft-cost-2 { color: #4ade80; }
.tft-cost-3 { color: #4a9eff; }
.tft-cost-4 { color: #c084fc; }
.tft-cost-5 { color: #f59e0b; }

/* NEW UNITS */
.tft-new-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tft-new-unit { background: #111d35; border: 0.5px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; transition: all 0.15s; }
.tft-new-unit:hover { background: #111827; border-color: rgba(200,155,60,0.2); }
.tft-nu-img { width: 52px; height: 52px; border-radius: 10px; background: #1e2845; border: 1.5px solid #253352; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #8090b8; }
.tft-nu-img img { width: 100%; height: 100%; object-fit: cover; }
.tft-nu-name { font-size: 12px; color: #ccd6e0; font-weight: 600; text-align: center; }
.tft-nu-cost { font-size: 10px; font-weight: 700; }
.tft-nu-badge { font-size: 9px; background: rgba(74,222,128,0.1); color: #4ade80; border-radius: 3px; padding: 1px 5px; }
.tft-view-all { display: block; text-align: center; padding: 10px; font-size: 12px; color: #3c4a6a; border: 0.5px solid rgba(255,255,255,0.06); border-radius: 8px; margin: 10px 24px 0; text-decoration: none; max-width: 1280px; margin-left: auto; margin-right: auto; }
.tft-view-all:hover { background: #111d35; color: #8090b8; }
.tft-pb { padding-bottom: 32px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .tft-hero { padding: 32px 16px 28px; }
  .tft-hero-title { font-size: 22px; letter-spacing: 2px; }
  .tft-new-units { grid-template-columns: repeat(2, 1fr); }
  .tft-sec { padding: 16px 14px 0; }
  .tft-tier-label { width: 56px; min-width: 56px; }
  .tft-tier-badge { width: 40px; height: 46px; }
}