/* ========================
   SKILL ROW CONTAINER
======================== */
.skill-row {
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  background: var(--bg-secondary);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: 0.2s ease;
}

.skill-row:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03);
}

/* ========================
   MAIN ROW GRID
======================== */
.skill-row__main {
  display: grid;
  grid-template-columns: 240px 80px 1fr 80px;
  align-items: center;
  gap: 1rem;

  padding: 0.75rem 1rem;
  cursor: pointer;
}

/* ========================
   LEFT: ICON + NAME
======================== */
.skill-row__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-row__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-primary);

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border-primary);
}

.skill-row__icon img {
  width: 22px;
  height: 22px;
}

.skill-row__name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ========================
   LEVEL
======================== */
.skill-row__level {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-accent);
  text-align: center;
}

/* ========================
   PROGRESS BAR
======================== */
.skill-row__bar {
  width: 100%;
}

.skill-bar {
  width: 100%;
  height: 12px;

  background: #0b0f14;
  border-radius: 999px;

  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.skill-bar__fill {
  height: 100%;
  width: 0%;

  background: linear-gradient(
    90deg,
    #3cff7a,
    #1ed760
  );

  transition: width 0.4s ease;
}

/* ========================
   TARGET (MAX LEVEL)
======================== */
.skill-row__target {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: right;
}

/* ========================
   ACTIVE STATE
======================== */
.skill-row.active {
  border-color: var(--color-accent);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.02),
    rgba(0,0,0,0.2)
  );
}


/* ========================
   EXPAND WRAPPER
======================== */
.skill-expand {
  margin-top: 0.5rem;
  padding: 1rem;

  border-radius: 12px;

  background: linear-gradient(180deg, #0c141c, #080f14);
  border: 1px solid rgba(255, 215, 120, 0.08);

  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03),
              0 6px 18px rgba(0,0,0,0.4);
}

/* ========================
   GRID LAYOUT
======================== */
.skill-expand__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
}

/* ========================
   LEFT: STATS
======================== */
.skill-expand__stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  padding: 0.75rem;

  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 215, 120, 0.05);
}

.skill-expand__stats p {
  margin: 0;
  font-size: 0.9rem;
  color: #c9d1d9;
}

.skill-expand__stats p strong {
  color: #e6edf3;
}

/* XP highlight feel */
.skill-expand__stats p:last-child {
  color: #e1bb34;
  font-weight: 500;
}

/* ========================
   RIGHT: GRAPH CONTAINER
======================== */
.skill-expand__graph {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 140px;

  border-radius: 8px;

  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.03),
    rgba(0,0,0,0.3)
  );

  border: 1px dashed rgba(255, 215, 120, 0.15);

  position: relative;
  overflow: hidden;
}

/* ========================
   PLACEHOLDER TEXT
======================== */
.graph-placeholder {
  font-size: 0.9rem;
  color: rgba(225, 187, 52, 0.7);

  letter-spacing: 0.3px;
  text-align: center;

  opacity: 0.8;
}

@media (max-width: 700px) {
  .skill-expand__grid {
    grid-template-columns: 1fr;
  }

  .skill-expand__graph {
    min-height: 120px;
  }
}

.virtual-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  color: #c9d1d9;
  font-size: 0.9rem;

  cursor: pointer;
}

/* ========================
   HEADER WRAPPER
======================== */
.skills-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* ========================
   TITLE
======================== */
.skills-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #e6edf3;
}

/* ========================
   CONTROLS BAR
======================== */
.skills-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;

  padding: 0.75rem 1rem;

  border-radius: 10px;
  background: linear-gradient(180deg, #0f1a24, #0a1118);
  border: 1px solid rgba(255, 215, 120, 0.15);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* LEFT + RIGHT GROUPS */
.skills-controls__left,
.skills-controls__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ========================
   MOBILE FRIENDLY
======================== */
@media (max-width: 600px) {
  .skills-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .skills-controls__right {
    width: 100%;
    justify-content: space-between;
  }
}



/* GRAPH STUFF */

/* ========================
   GRAPH SKELETON
======================== */
.graph-skeleton {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: flex-end;
}

/* bars container */
.graph-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
  height: 100%;
}

/* fake bars */
.graph-bar {
  flex: 1;
  height: 40%;
  border-radius: 6px;
  background: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}

/* random heights for realism */
.graph-bar:nth-child(2) { height: 60%; }
.graph-bar:nth-child(3) { height: 30%; }
.graph-bar:nth-child(4) { height: 80%; }
.graph-bar:nth-child(5) { height: 50%; }
.graph-bar:nth-child(6) { height: 70%; }
.graph-bar:nth-child(7) { height: 35%; }
.graph-bar:nth-child(8) { height: 90%; }
.graph-bar:nth-child(9) { height: 45%; }
.graph-bar:nth-child(10){ height: 75%; }
.graph-bar:nth-child(11){ height: 55%; }
.graph-bar:nth-child(12){ height: 65%; }

/* shimmer effect */
.graph-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.15),
    transparent
  );
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.graph-ready {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================
   GRAPH
======================== */
.graph {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: flex-end;
}

.graph-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
  height: 100%;
}

/* actual bars */
.graph-bar.real {
  flex: 1;
  border-radius: 6px;
  transition: height 0.4s ease, opacity 0.2s ease;
  opacity: 0.9;
}

.graph-bar.real:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.skill-expand__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}


/* DETAILS PANEL */
/* container */
.skill-expand__details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* header */
.details-header {
  margin-bottom: 0.25rem;
}

.details-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.details-subtitle {
  font-size: 0.8rem;
  color: var(--accent-gold);
  opacity: 0.85;
}


.details-subtitle.is-99 {
  color: rgba(198, 169, 107, 0.7);
}

/* ========================
   110 (soft blue)
======================== */
.details-subtitle.is-110 {
  color: rgba(74, 163, 255, 0.6);
}

/* ========================
   120 (strong purple)
======================== */
.details-subtitle.is-120 {
  color: #b06bff;
}

/* ========================
   200M (premium green)
======================== */
.details-subtitle.is-200m {
  color: #5cff9d;
}

/* grid layout */
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

/* individual stat */
.details-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;

  transition: all 0.15s ease;
}

.details-item:hover {
  background: rgba(255,255,255,0.05);
}

/* label */
.details-label {
  font-size: 0.7rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* value */
.details-value {
  font-size: 1rem;
  font-weight: 600;
}

.details-value span {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-left: 0.25rem;
}
