


/* Grouped Theme Colors Using CSS Variables */
.time-effort {
  --theme-color: #e74c3c;
  --theme-color-rgb: 231, 76, 60;
  border-top-color: var(--theme-color);
  border-bottom-color: var(--theme-color);
}
.skill-artistry {
  --theme-color: #f1c40f;
  --theme-color-rgb: 241, 196, 15;
  border-top-color: var(--theme-color);
  border-bottom-color: var(--theme-color);
}
.complexity-detail {
  --theme-color: #9b59b6;
  --theme-color-rgb: 155, 89, 182;
  border-top-color: var(--theme-color);
  border-bottom-color: var(--theme-color);
}


/* PANEL OF ALL METRICS AND SCORES */

.metrics-panel {
  display: flex;
  position: relative;
  gap: 20px;
  margin-bottom: 50px;
  justify-content: space-between;
}
.metrics-panel a {
  display: inline-block;
  color: #ffffff;
  padding: 6px 10px;
  font-weight: bold;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 15px;
  transition: transform 0.3s ease, background-color 0.2s ease;
  background: linear-gradient(135deg, rgba(105, 90, 205, .3), rgba(149, 117, 205, .3));
}


/* CATEGORY CONTAINER */

.metric-category {
  display: flex;
  align-items: center; /* Align content in the center */
  width: 100%;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  background: linear-gradient(135deg, rgba(var(--theme-color-rgb), 0.2), rgba(30, 30, 30, 0.9));
  background-color: rgba(30, 30, 30, 0.80); /* Slight transparency */
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(var(--theme-color-rgb), 0.8); /* Transparent border */
  flex-direction: column;
}
.metric-category:hover {
  background-color: rgba(30, 30, 30, 0.9); /* Slightly more opaque on hover */
  transform: translateY(-5px);
  box-shadow: 0px 0px 20px 4px rgba(var(--theme-color-rgb), 0.6);
}



/* TOP LEVEL SCORES */

.parent-metric {
  display: flex;
  flex-direction: column;
   /* Align content in the center */
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
  min-height: 320px;
  border-radius: 10px;
  border: 2px solid rgba(var(--theme-color-rgb), 0.8);
  border-top: 4px solid var(--theme-color);
  background: linear-gradient(135deg, rgba(var(--theme-color-rgb), 0.2), rgba(30, 30, 30, 0.9));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-items: center;
  justify-content: space-around;
}
.parent-metric:hover {
  transform: translateY(-5px); /* Gentle lift */
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2), 0 0 10px var(--theme-color, #FFF); /* Dynamic glow */
  box-shadow: 0px 0px 20px 4px rgba(var(--theme-color-rgb), 0.6);
}
.parent-metric h3 {
  font-size: 1.3rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}
.parent-metric p {
  color: #9c9caabd;
  line-height: 1.3rem;
  margin-bottom: 15px;
  /* min-height: 50px; */ /* Ensure consistent card height */
  /* height: 100%; */
}
.parent-metric a {
  background: linear-gradient(135deg, rgba(105, 90, 205, .8), rgba(149, 117, 205, .8)); 
}
.parent-metric a:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 6px rgba(100, 181, 246, 0.9);
  background: linear-gradient(135deg, rgba(149, 117, 205, .8), rgba(105, 90, 205, .8));
}



/* CHILD METRICS */

.child-metrics a:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 6px rgba(100, 181, 246, 0.9);
  background: linear-gradient(135deg, rgba(149, 117, 205, .6), rgba(105, 90, 205, .3));
}



.child-metrics .metric-card {
  background: linear-gradient(135deg, #1e1e1e, #303030);
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  position: relative;
  z-index: 2; /* Child metrics above connection line */
}



.metric-card:hover {
  box-shadow: inset 0px 0px 10px rgba(var(--theme-color-rgb), 0.5), 0px 0px 15px rgba(var(--theme-color-rgb), 0.5);
  transform: translateY(-3px);
}

.child-metrics {
  gap: 20px;
}
.metric-card,
.child-metrics {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensure content is spaced nicely */
  align-items: center; /* Align content in the center */
  height: 100%; /* Take full parent height */
  min-height: 285px;
}

.metric-card p {
  line-height: 1.2;
  color: #9c9caabd;
}

.parent-metric img {
  height: 65px;
  width: 65px;
}

.child-metrics img {
  height: 50px;
  width: 50px;
}
.quarto-title {
  display: none;
}

.navbar-brand:hover {
  border: 2px solid transparent;
}

/* Media Queries */



@media screen and (max-width: 1100px) {
  .metric-category p {
    font-size: 0.95rem;
    line-height: 1.3
  }
  .metric-category a {
    font-size: 0.88rem;
    padding-top: 3px;
    padding-bottom: 3px;
  }
  .parent-metric img {
    height: 60px;
  }
  .child-metrics img {
    width: 45px;
  }
  .metric-card,
  .child-metrics {
    min-height: 305px;
  }

  .parent-metric {
    min-height: 335px;
  }
}


@media screen and (max-width: 950px) {
  
  .metrics-panel {
    gap: 10px;
  }
  
  .metric-category {
    border: none;
    padding: 10px;
  }
  .metric-category p {
    font-size: 0.9rem;
    line-height: 1.3
  }
  .metric-category a {
    font-size: 0.8rem;
    padding-top: 3px;
    padding-bottom: 3px;
    margin-bottom: 10px;
  }

  .parent-metric {
    padding: 15px;
  }
  .parent-metric h3 {
    font-size: 1.1rem;
  }
  
  .parent-metric img {
    height: 60px;
  }

  .metric-card h4 {
    font-size: 1.05rem;
  }
  
  .child-metrics img {
    width: 40px;
    margin-bottom: -30px;
  }
  .metric-card,
  .child-metrics {
    min-height: 255px;
  }

  .parent-metric {
    min-height: 335px;
  }

  .metric-card p {
    font-size: 0.9rem;
    line-height: 1.3;
    /* Multiline truncation */
    display: -webkit-box;        /* Enables flexbox for block elements */
    -webkit-box-orient: vertical; /* Sets the orientation to vertical */
    -webkit-line-clamp: 3;        /* Limits the text to 2 lines */
    overflow: hidden;             /* Hides the overflowing text */
    text-overflow: ellipsis;      /* Adds ellipsis after the text */
  }

  
}


@media screen and (max-width: 750px) {
  .parent-metric {
    min-height: 300px;
  }
  .parent-metric p {
    line-height: 1.2;
    /* Multiline truncation */
    display: -webkit-box;        /* Enables flexbox for block elements */
    -webkit-box-orient: vertical; /* Sets the orientation to vertical */
    -webkit-line-clamp: 2;        /* Limits the text to 2 lines */
    overflow: hidden;             /* Hides the overflowing text */
    text-overflow: ellipsis;      /* Adds ellipsis after the text */
  }
  .metric-card p {
    line-height: 1.2;
    /* Multiline truncation */
    display: -webkit-box;        /* Enables flexbox for block elements */
    -webkit-box-orient: vertical; /* Sets the orientation to vertical */
    -webkit-line-clamp: 2;        /* Limits the text to 2 lines */
    overflow: hidden;             /* Hides the overflowing text */
    text-overflow: ellipsis;      /* Adds ellipsis after the text */
  }

  .parent-metric img {
    height: 50px;
  }
  .child-metrics img {
    width: 35px;
  }
  .metric-card,
  .child-metrics {
    min-height: 200px;
    margin: 0;
  }

  .parent-metric {
    min-height: 265px;
  }
}

@media screen and (max-width: 675px) {
  .parent-metric h3 {
    font-size: 1rem;
  }
  .metric-card h4 {
    font-size: .9rem;
  }
  .metric-category p {
    font-size: 0.8rem;
  }
}


@media screen and (max-width: 600px) {
  .parent-metric h3 {
    font-size: .9rem;
    font-weight: 300;
  }
  
  .metric-card h4 {
    font-size: .8rem;
  }
  
   .parent-metric {
    min-height: 210px;
  }

  .parent-metric img {
    height: 30px;
    margin: -10px;
  }
  .child-metrics img {
    width: 25px;
    margin: -10px;
  }

  .metric-category a {
    font-size: 0.65rem;
    margin-bottom: 0px;
  }
}


@media screen and (max-width: 550px) {
  .metrics-panel {
    flex-direction: column;
    align-items: center; /* Center cards horizontally */
  }

  .metric-category {
    width: 100%;
    max-width: 400px; /* Optional: set a max width for better readability */
    margin-bottom: 20px; /* Add space between cards */
  }

  .metric-category:last-child {
    margin-bottom: 0; /* Remove bottom margin from the last card */
  }

.parent-metric p {
    -webkit-line-clamp: 10;        /* Limits the text to 2 lines */
  }
  .metric-card p {
    -webkit-line-clamp: 10;        /* Limits the text to 2 lines */
  }
    .parent-metric h3 {
    font-size: 1.2rem;
  }

  
  .metric-card h4 {
    font-size: 1.1rem;
  } 
}

