/* ========== SMTI Design System - Unified Styles ========== */

/* ========== Material Symbols ========== */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ========== Glass Effects ========== */
.glass-card {
  background: rgba(31, 31, 37, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(149, 141, 161, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-nav {
  background: rgba(9, 9, 14, 0.6);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
}

/* ========== Gradient Effects ========== */
.ritual-gradient {
  background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.15), transparent),
              radial-gradient(circle at bottom left, rgba(115, 54, 65, 0.15), transparent);
}

.shimmer-text {
  background: linear-gradient(90deg, #7c3aed, #ffb2bc, #7c3aed);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.ritual-gradient-text {
  background: linear-gradient(135deg, #d2bbff 0%, #ffb2bc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== Page System ========== */
.page {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.page.active {
  display: block;
  opacity: 1;
}

.page.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.page.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

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

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

/* ========== Quiz Animations ========== */
#question-area.slide-out {
  animation: slideOut 0.2s ease forwards;
}

#question-area.slide-in {
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-30px); }
}

/* ========== Option Buttons ========== */
.option-btn.selected {
  border-color: rgba(124, 58, 237, 0.7) !important;
  background: rgba(124, 58, 237, 0.12) !important;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.2) !important;
  transform: scale(1.02);
}

/* ========== Type Cards ========== */
.type-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px -5px var(--tw-shadow-color);
}

.type-card.active {
  border-color: rgba(124, 58, 237, 0.6);
  background: rgba(124, 58, 237, 0.08);
  box-shadow: 0 0 30px -5px rgba(124, 58, 237, 0.3);
}

/* ========== Progress Diamonds ========== */
.progress-diamond {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: rgba(63, 63, 70, 0.8);
  border: 1px solid rgba(82, 82, 91, 0.5);
  transition: all 0.3s ease;
}

.progress-diamond.completed {
  background: #7c3aed;
  border-color: #7c3aed;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
}

.progress-diamond.current {
  background: #ffb2bc;
  border-color: #ffb2bc;
  box-shadow: 0 0 8px rgba(255, 178, 188, 0.4);
}

/* ========== Navigation Highlights ========== */
.nav-link.active {
  color: #e4e4e7;
}

.bottom-nav-btn.active {
  color: #7c3aed;
}

.bottom-nav-btn.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ========== Compatibility Chips ========== */
.compat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(31, 31, 37, 0.8);
  border: 1px solid rgba(149, 141, 161, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.compat-chip:hover {
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.08);
  transform: translateY(-2px);
}

/* ========== Radar Chart Canvas ========== */
#radar-canvas {
  display: block;
}

/* ========== Custom Scrollbar ========== */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(149, 141, 161, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(149, 141, 161, 0.4);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .page {
    padding-bottom: 6rem;
  }
}

/* ========== Animations ========== */
@keyframes spin {
  to { transform: rotate(360deg); }
}
