/* ===============================
   CHAMPION PAGE
================================ */

.champion-page{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:24px;
  color:#e8ecf8;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,sans-serif;
}

/* ===============================
   HEADER
================================ */

.champion-header{
  display:flex;
  align-items:center;
  gap:20px;
  padding:24px;
  border-radius:18px;
  background:#111622;
  border:1px solid rgba(255,255,255,0.06);
  box-shadow:0 14px 30px rgba(0,0,0,0.20);
}

.champion-main-img{
  width:110px;
  height:110px;
  border-radius:16px;
  object-fit:cover;
  flex:0 0 auto;
}

.champion-title{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}

.champion-title h1{
  font-size:34px;
  margin:0;
  font-weight:800;
  color:#fff;
  line-height:1.05;
}

.champion-stats{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.champion-stats span{
  background:#1a2133;
  padding:6px 12px;
  border-radius:10px;
  font-size:13px;
  color:#cbd4ff;
  border:1px solid rgba(255,255,255,0.05);
}

/* ===============================
   TABS
================================ */

.tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.tab-btn{
  padding:10px 16px;
  border-radius:10px;
  border:none;
  background:#1a2133;
  color:#cbd4ff;
  cursor:pointer;
  font-weight:700;
  transition:.18s ease;
}

.tab-btn:hover{
  background:#25314a;
  color:#fff;
}

.tab-btn.is-active{
  background:#3c6cff;
  color:#fff;
}

.tab-panel{
  display:none;
}

.tab-panel.is-active{
  display:block;
}

/* ===============================
   BUILD CARDS
================================ */

.build-section{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.build-card{
  background:linear-gradient(180deg, rgba(18,24,39,0.98) 0%, rgba(14,19,31,0.99) 100%);
  border-radius:18px;
  padding:20px;
  border:1px solid rgba(255,255,255,0.05);
  box-shadow:0 12px 26px rgba(0,0,0,0.16);
}

.build-card h3{
  margin:0 0 16px;
  font-size:18px;
  color:#fff;
}

.build-card-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
  flex-wrap:wrap;
}

.build-card-header h3{
  margin:0;
}

.build-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.build-meta span{
  background:#1a2133;
  padding:6px 10px;
  border-radius:10px;
  font-size:12px;
  color:#cbd4ff;
  border:1px solid rgba(255,255,255,0.05);
}

/* ===============================
   RUNES - BLITZ STYLE
================================ */

.rune-card{
  padding:20px;
}

.runes-layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 340px;
  gap:18px;
  align-items:stretch;
}

.rune-tree{
  background:#0f1420;
  padding:16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.05);
}

.rune-tree-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
}

.rune-tree-header-left{
  display:flex;
  align-items:center;
  gap:10px;
  color:#f0f4ff;
  font-size:14px;
  font-weight:800;
}

.rune-tree-body{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.rune-tree-row{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:56px;
  flex-wrap:wrap;
}

.rune-tree-row-keystone{
  min-height:72px;
}

.rune-tree-row-secondary{
  gap:10px;
}

.rune-shards-title{
  margin-top:4px;
  color:#f0f4ff;
  font-size:13px;
  font-weight:800;
}

.rune-shards-grid{
  display:grid;
  grid-template-columns:repeat(3, 50px);
  gap:10px;
  align-content:start;
}

/* icon boxes */

.build-chip{
  width:56px;
  height:56px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#1a2133;
  border:1px solid rgba(255,255,255,0.08);
  flex:0 0 auto;
}

.build-chip.is-keystone{
  width:72px;
  height:72px;
  background:#1d2845;
}

.build-icon{
  width:38px;
  height:38px;
  object-fit:contain;
}

.build-chip.is-keystone .build-icon{
  width:50px;
  height:50px;
}

.rune-tree-secondary .build-chip,
.rune-shards-grid .build-chip{
  width:50px;
  height:50px;
}

.rune-tree-secondary .build-icon,
.rune-shards-grid .build-icon{
  width:34px;
  height:34px;
}

.build-chip-style{
  background:#202942;
}

.build-fallback-icon,
.skill-letter-fallback{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:800;
}

/* ===============================
   ITEMS
================================ */

.build-icons-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.build-icons-row .build-chip{
  width:60px;
  height:60px;
}

.build-icons-row .build-icon{
  width:40px;
  height:40px;
}

/* ===============================
   SKILLS
================================ */

.skill-priority-line{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#1a2133;
  padding:10px 14px;
  border-radius:12px;
  color:#e8ecf8;
  font-weight:700;
}

.skill-sequence{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.skill-sequence-step{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
}

.skill-level{
  background:#3c6cff;
  border-radius:20px;
  font-size:11px;
  padding:3px 8px;
  color:#fff;
}

.skill-chip{
  width:56px;
  height:56px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#1a2133;
  border:1px solid rgba(255,255,255,0.08);
}

.skill-icon{
  width:34px;
  height:34px;
  object-fit:contain;
}

/* ===============================
   GUIDE
================================ */

.guide-block{
  background:#121827;
  padding:20px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.05);
  margin-bottom:16px;
}

.guide-block h3{
  margin:0 0 12px;
  color:#fff;
}

.guide-block p{
  margin:0;
  color:#cbd4ff;
  line-height:1.6;
}

.guide-block ul{
  padding-left:18px;
  margin:0;
}

.guide-block li{
  margin-bottom:6px;
  color:#cbd4ff;
}

.champion-icons{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.champion-icons a{
  display:block;
}

.champion-icons img{
  width:60px;
  height:60px;
  border-radius:12px;
  object-fit:cover;
  display:block;
}

/* ===============================
   OVERVIEW
================================ */

.overview-box{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.overview-box div{
  background:#1a2133;
  padding:8px 12px;
  border-radius:10px;
  color:#cbd4ff;
}

/* ===============================
   REVIEW
================================ */

.review-box{
  padding:20px;
  background:#121827;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.05);
  color:#cbd4ff;
}

/* ===============================
   EMPTY
================================ */

.no-data{
  padding:18px 20px;
  background:#121827;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.05);
  color:#cbd4ff;
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 900px){
  .champion-page{
    gap:20px;
  }

  .champion-header{
    flex-direction:column;
    align-items:flex-start;
  }

  .runes-layout{
    grid-template-columns:1fr;
  }

  .rune-shards-grid{
    grid-template-columns:repeat(3, 46px);
  }
}

@media (max-width: 600px){
  .champion-header{
    padding:18px;
    gap:16px;
  }

  .champion-main-img{
    width:92px;
    height:92px;
    border-radius:14px;
  }

  .champion-title h1{
    font-size:26px;
  }

  .tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .tab-btn{
    text-align:center;
  }

  .build-card{
    padding:16px;
    border-radius:16px;
  }

  .build-chip{
    width:48px;
    height:48px;
    border-radius:12px;
  }

  .build-icon{
    width:30px;
    height:30px;
  }

  .build-chip.is-keystone{
    width:60px;
    height:60px;
  }

  .build-chip.is-keystone .build-icon{
    width:42px;
    height:42px;
  }

  .rune-tree-secondary .build-chip,
  .rune-shards-grid .build-chip{
    width:46px;
    height:46px;
  }

  .rune-tree-secondary .build-icon,
  .rune-shards-grid .build-icon{
    width:30px;
    height:30px;
  }

  .rune-tree-row{
    gap:8px;
  }

  .rune-tree-header-left{
    font-size:13px;
  }

  .build-icons-row .build-chip{
    width:52px;
    height:52px;
  }

  .build-icons-row .build-icon{
    width:34px;
    height:34px;
  }

  .skill-chip{
    width:48px;
    height:48px;
    border-radius:12px;
  }

  .skill-icon{
    width:30px;
    height:30px;
  }

  .champion-icons img{
    width:52px;
    height:52px;
    border-radius:10px;
  }
}