@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@100..900&display=swap");

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  background: #ecf2ff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Hanken Grotesk", sans-serif;
  padding: 2rem; /* spacing around container */
}

/* MAIN CONTAINER */
.results-summary-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 600px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* LEFT SIDE */
.score-container {
  background: linear-gradient(#6743ff, #322bea);
  color: white;
  padding: 2rem;
  text-align: center;
}

.score-container h1 {
  opacity: 0.8;
  font-size: 1rem;
}

/* CIRCLE SCORE */
.result {
  background: linear-gradient(#4d22c9, #4633ed);
  border-radius: 50%;
  width: 130px;
  height: 130px;
  margin: 1.5rem auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.result h2 {
  font-size: 3rem;
  font-weight: bold;
}

.result p {
  opacity: 0.7;
  font-size: 0.8rem;
}

.score-container h3 {
  margin-top: 1rem;
}

.comment {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  opacity: 0.8;
}

/* RIGHT SIDE */
.summary-container {
  padding: 2rem;
}

.summary-container h3 {
  margin-bottom: 1rem;
}

/* ITEM */
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

/* LEFT PART */
.left {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* SCORE */
.score {
  display: flex;
  gap: 5px;
}

.score span:last-child {
  color: gray;
}

/* CATEGORY LABEL COLORS */
.reaction .left span {
  color: hsl(0, 100%, 67%); /* red */
  font-weight: bold;
}

.memory .left span {
  color: hsl(39, 100%, 56%); /* yellow */
  font-weight: bold;
}

.verbal .left span {
  color: hsl(166, 100%, 37%); /* teal */
  font-weight: bold;
}

.visual .left span {
  color: hsl(234, 85%, 45%); /* cobalt blue */
  font-weight: bold;
}

/* CATEGORY ITEM BACKGROUNDS (lighter version) */
.reaction {
  background-color: hsla(0, 100%, 67%, 0.1); /* light red background */
}

.memory {
  background-color: hsla(39, 100%, 56%, 0.1); /* light yellow background */
}

.verbal {
  background-color: hsla(166, 100%, 37%, 0.1); /* light teal background */
}

.visual {
  background-color: hsla(234, 85%, 45%, 0.1); /* light cobalt blue background */
}

/* BUTTON */
button {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 30px;
  background: #303b59;
  color: white;
  margin-top: 1rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

button:hover {
  background: linear-gradient(#6743ff, #322bea);
}

/* MOBILE RESPONSIVE */
@media (max-width: 600px) {
  .results-summary-container {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .score-container {
    border-radius: 20px 20px 0 0;
  }

  .summary-container {
    padding: 1.5rem;
  }

  body {
    padding: 1rem;
  }
}
