/* =======================
   skill_panel.css
   技能控制區樣式（與既有 .panel/.panel-header/.panel-body 相容）
   ======================= */

.skill-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 每個技能列 */
.skill-row {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 8px;
}
.skill-row--no-mp { opacity: 0.85; }

/* 標題行 */
.skill-head {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 6px;
}
.skill-name { font-weight: 600; }
.skill-meta { font-size: 12px; opacity: 0.9; }

/* MP 不足徽章 */
.skill-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #a33;
  color: #fff;
  margin-left: 8px;
}

/* 進度條 */
.skill-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skill-bar {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
}
.skill-bar .skill-bar-fill {
  height: 100%;
  transition: width .25s linear;
}

/* 顏色：CD / Buff */
.skill-bar.cd   .skill-bar-fill { background: rgba(90,160,255,0.9); }
.skill-bar.buff .skill-bar-fill { background: rgba(60,200,120,0.9); }
/* Player Skill UI V2 */
.skill-panel-v2 { display: flex; flex-direction: column; gap: 10px; }
.skill-panel-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.skill-panel-title { font-weight: 700; opacity: .95; }
.skill-auto-toggle { border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 4px 8px; cursor: pointer; }
.skill-auto-toggle.on { box-shadow: inset 0 0 0 1px rgba(80,255,160,.25); }
.skill-auto-toggle.off { opacity: .75; }
.skill-card-v2 .skill-card-header { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.skill-target-pill { font-size: 12px; opacity: .85; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 1px 6px; white-space: nowrap; }
.skill-card-v2.cooling { opacity: .68; }
.skill-card-v2.ready { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.skill-desc { font-size: 12px; opacity: .75; margin-top: 4px; line-height: 1.35; }
.skill-empty { opacity: .7; padding: 8px; }

/* Player Skill UI V2.1 - horizontal card layout */
#skillStatus.skill-grid {
  display: block;
  width: 100%;
}
.skill-panel-v2 {
  width: 100%;
}
.skill-panel-v2 .skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  align-items: stretch;
}
.skill-card-v2 {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px;
}
.skill-card-v2 .skill-name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}
.skill-card-v2 .skill-card-body {
  margin-top: 8px;
}
.skill-card-v2 .skill-meta {
  font-size: 12px;
  opacity: .92;
}
.skill-card-v2 .skill-desc {
  min-height: 34px;
  max-height: 52px;
  overflow: hidden;
}
.skill-card-v2 .skill-card-footer {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}
.skill-card-v2 .skill-btn {
  min-width: 72px;
}
@media (max-width: 900px) {
  .skill-panel-v2 .skill-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}
