/* Styles for the Personality Quiz on the Team Page */

.quiz-section,
.quiz-section button,
.quiz-section input,
.quiz-option,
.quiz-intro,
.quiz-option-text,
.result-desc {
  font-family: Cyber, sans-serif !important;
}

.quiz-section h2,
.quiz-section h3 {
  font-family: "Roboto Flex", sans-serif !important;
  font-variation-settings:
    "wght" 750,
    "wdth" 100,
    "slnt" -12,
    "opsz" 100 !important;
}

.quiz-section {
  margin: 60px auto auto auto;
  padding-bottom: 40px;
  max-width: 800px;
  width: 90%;
}

.quiz-container {
  background: rgba(37, 37, 37, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quiz-container h2 {
  font-family: "Roboto Flex", sans-serif !important;
  font-variation-settings:
    "wght" 750,
    "wdth" 100,
    "slnt" -12,
    "opsz" 100 !important;
  font-size: 2.25rem;
  margin-top: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
}

.quiz-intro {
  font-size: 1.1rem;
  color: #cccccc;
  margin-bottom: 30px;
  line-height: 1.5;
}

.quiz-screen {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  width: 100%;
}

.quiz-btn {
  padding: 14px 32px;
  background: #be70d6;
  color: #fff !important;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(190, 112, 214, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-top: 10px;
  text-decoration: none !important;
}

.quiz-btn:hover {
  background: #a65abf;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(190, 112, 214, 0.5);
  color: #fff !important;
  text-decoration: none !important;
}

/* Quiz Progress Bar */
.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-bottom: 25px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: #be70d6;
  border-radius: 3px;
  transition: width 0.3s ease-in-out;
  box-shadow: 0 0 8px rgba(190, 112, 214, 0.8);
}

.quiz-question-text {
  font-size: 1.4rem;
  margin-bottom: 25px;
  color: #fff;
  line-height: 1.4;
  font-weight: 600;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.quiz-option {
  background: rgba(24, 26, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 20px;
  text-align: left;
  font-size: 1.25rem;
  color: #e0e0e0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 15px;
}

.quiz-option:hover {
  border-color: #be70d6;
  background: rgba(190, 112, 214, 0.05);
  transform: translateX(5px);
  color: #fff;
}

.quiz-option-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  color: #be70d6;
  transition: all 0.2s;
  flex-shrink: 0;
}

.quiz-option:hover .quiz-option-letter {
  background: #be70d6;
  border-color: #be70d6;
  color: #fff;
  box-shadow: 0 0 10px rgba(190, 112, 214, 0.5);
}

/* Result Screen */
#quiz-result-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(190, 112, 214, 0.25) 0%,
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

.result-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid #be70d6;
  box-shadow: 0 0 25px rgba(190, 112, 214, 0.4);
  margin-bottom: 20px;
  object-fit: cover;
  background: #252525;
  transition: transform 0.3s ease;
}

.result-avatar:hover {
  transform: scale(1.03);
}

#result-member-name {
  font-size: 2rem;
  margin: 0 0 5px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-role {
  font-size: 1.1rem;
  color: #be70d6;
  font-weight: bold;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-desc {
  font-size: 1.05rem;
  color: #cccccc;
  line-height: 1.6;
  max-width: 550px;
  margin: 0 auto 30px auto;
}

/* Result Match Header */
.result-match-header {
  margin-bottom: 10px;
}

.result-match-label {
  font-family: Cyber, sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #be70d6;
  background: rgba(190, 112, 214, 0.1);
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(190, 112, 214, 0.2);
}

.result-match-percent {
  font-family: "Roboto Flex", sans-serif;
  font-variation-settings:
    "wght" 850,
    "wdth" 100,
    "slnt" -12,
    "opsz" 100;
  font-size: 3rem;
  color: #be70d6;
  text-shadow: 0 0 20px rgba(190, 112, 214, 0.5);
  margin: 5px 0 10px 0;
}

/* Cube entrance animation */
.result-cube-enter {
  animation: cubeReveal 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes cubeReveal {
  0% {
    opacity: 0;
    transform: scale(0.7) rotateY(-15deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
  }
}

#result-cube {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

#result-cube::before,
#result-cube::after,
#result-cube .glow {
  display: none !important;
}

#result-cube .name h2 {
  font-family: "Roboto Flex", sans-serif !important;
}

#result-cube .name p {
  font-family: "Cyber", sans-serif !important;
}

/* Compatibility Bars Section */
.result-compat-section {
  width: 100%;
  max-width: 500px;
  margin: 25px auto 0;
  text-align: left;
}

.result-compat-section h4 {
  font-family: "Roboto Flex", sans-serif !important;
  font-variation-settings:
    "wght" 650,
    "wdth" 100,
    "slnt" -12,
    "opsz" 100 !important;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  margin: 0 0 15px 0;
  text-align: center;
}

.compat-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compat-row {
  display: grid;
  grid-template-columns: 100px 1fr 45px;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateX(-10px);
  animation: compatFadeIn 0.4s ease-out forwards;
}

@keyframes compatFadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.compat-row.compat-winner .compat-label {
  color: #be70d6;
  font-weight: bold;
}

.compat-row.compat-winner .compat-bar-fill {
  background: linear-gradient(90deg, #be70d6, #d498e6);
  box-shadow: 0 0 10px rgba(190, 112, 214, 0.4);
}

.compat-label {
  font-family: Cyber, sans-serif;
  font-size: 0.85rem;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compat-bar-wrap {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.compat-bar-fill {
  height: 100%;
  background: rgba(190, 112, 214, 0.4);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 0%;
}

.compat-pct {
  font-family: Cyber, sans-serif;
  font-size: 0.8rem;
  color: #888;
  text-align: right;
}

#result-cube .name p {
  font-family: Cyber, sans-serif !important;
}
