/* quantum.css — Quantum Security Hub styles */

/* GRADIENTS */
:root {
  --grad-quantum: linear-gradient(135deg, #7c3aed, #ec4899);
  --quantum-purple-glow: 0 0 40px rgba(124,58,237,0.3);
}

.gradient-quantum-text {
  background: var(--grad-quantum);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* NAVBAR ADJUSTMENTS */
.nav-quantum {
  font-weight: 700 !important;
}

/* HERO SECTION */
.quantum-hero {
  position: relative;
  padding: 8rem 0 5rem;
  background: radial-gradient(circle at 70% 30%, rgba(124,58,237,0.06) 0%, transparent 60%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.quantum-glow-1 {
  position: absolute;
  top: -10%; right: 20%;
  width: 300px; height: 300px;
  background: rgba(0,212,255,0.04);
  filter: blur(100px);
  pointer-events: none;
}
.quantum-glow-2 {
  position: absolute;
  bottom: -10%; left: 10%;
  width: 400px; height: 400px;
  background: rgba(124,58,237,0.03);
  filter: blur(120px);
  pointer-events: none;
}
.q-hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}
.q-hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.q-hero-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.q-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.btn-quantum-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--grad-quantum);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-quantum-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(124,58,237,0.4);
}
.btn-quantum-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-quantum-secondary:hover {
  background: rgba(124,58,237,0.06);
  border-color: rgba(124,58,237,0.4);
}

/* QUBIT VISUALIZER */
.q-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.qubit-container {
  width: 260px; height: 260px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qubit-shell {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(124,58,237,0.3);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
.shell-inner {
  inset: 30px;
  border: 1px solid rgba(0,212,255,0.15);
  animation: spin-back 20s linear infinite;
}
.qubit-core {
  width: 40px; height: 40px;
  background: var(--grad-quantum);
  border-radius: 50%;
  box-shadow: var(--quantum-purple-glow);
  z-index: 5;
  animation: bounce 6s ease-in-out infinite;
}
.pulse-ring {
  position: absolute;
  border: 1px solid transparent;
  border-radius: 50%;
  animation: pulse 4s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}
.ring-red { inset: 50px; border-color: rgba(236,72,153,0.2); animation-delay: 0s; }
.ring-blue { inset: 10px; border-color: rgba(0,212,255,0.15); animation-delay: 1.3s; }
.ring-purple { inset: -30px; border-color: rgba(124,58,237,0.1); animation-delay: 2.6s; }

.qubit-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.psi { top: 15%; right: 15%; color: var(--purple); font-weight: 700; }
.zero { top: -20px; left: 50%; transform: translateX(-50%); }
.one { bottom: -20px; left: 50%; transform: translateX(-50%); }

/* TIMELINE STYLES */
.q-timeline {
  max-width: 800px;
  margin: 3rem auto 0;
  position: relative;
}
.q-timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 16px;
  width: 2px;
  background: var(--border);
}
.q-timeline-item {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 3rem;
}
.q-timeline-item:last-child {
  margin-bottom: 0;
}
.qt-dot {
  position: absolute;
  left: 8px; top: 6px;
  width: 18px; height: 18px;
  background: var(--bg-primary);
  border: 3px solid var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(124,58,237,0.5);
  z-index: 5;
}
.red-dot {
  border-color: var(--red);
  box-shadow: 0 0 10px rgba(239,68,68,0.5);
}
.qt-time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--purple);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.red-time {
  color: var(--red);
}
.qt-content {
  background: var(--bg-card-main);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.qt-content:hover {
  border-color: rgba(124,58,237,0.2);
  box-shadow: var(--shadow-card-hover);
}
.qt-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.qt-content p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}
.border-red {
  border-color: rgba(239,68,68,0.15);
}
.border-red:hover {
  border-color: rgba(239,68,68,0.3);
}

/* THREE PILLARS */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.pillar-card {
  background: var(--bg-card-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-card);
}
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.25);
  box-shadow: var(--shadow-card-hover);
}
.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}
.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.pillar-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}
.pillar-footer {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* NIST STANDARDS TABLE */
.standards-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card-main);
  margin-top: 1.5rem;
  box-shadow: var(--shadow-card);
}
.standards-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}
.standards-table th {
  background: var(--bg-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.standards-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.standards-table tr:last-child td {
  border-bottom: none;
}
.standards-table strong {
  color: var(--text-primary);
}
.status-primary {
  color: var(--cyan);
  font-weight: 600;
}
.status-backup {
  color: var(--purple);
  font-weight: 600;
}

/* INTERACTIVE QUIZ CONTAINER */
.assessment-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.assessment-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-quantum);
}
.assessment-content h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.assessment-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* QUIZ PANEL */
.assessment-quiz-box {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.q-quiz-step {
  display: none;
}
.q-quiz-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}
.quiz-progress {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.q-quiz-step h3 {
  font-size: 1.3rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.quiz-opt-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.quiz-opt-btn:hover {
  background: rgba(124,58,237,0.06);
  border-color: rgba(124,58,237,0.3);
  color: var(--text-primary);
  padding-left: 1.75rem;
}

/* RESULTS PANEL */
.quiz-results {
  display: none;
  text-align: center;
  padding: 1rem 0;
}
.quiz-results.active {
  display: block;
  animation: scaleIn 0.5s cubic-bezier(0.1, 0.8, 0.3, 1);
}
.qr-score-circle {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 4px solid var(--border);
}
.quiz-results.low-risk .qr-score-circle { border-color: var(--green); box-shadow: 0 0 15px rgba(5,150,105,0.15); }
.quiz-results.mid-risk .qr-score-circle { border-color: var(--orange); box-shadow: 0 0 15px rgba(234,88,12,0.15); }
.quiz-results.high-risk .qr-score-circle { border-color: var(--red); box-shadow: 0 0 15px rgba(220,38,38,0.15); }

.qr-score-val {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
}
.qr-score-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.quiz-results h3 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}
.quiz-results.low-risk h3 { color: var(--green); }
.quiz-results.mid-risk h3 { color: var(--orange); }
.quiz-results.high-risk h3 { color: var(--red); }

.quiz-results p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.result-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* KEYFRAMES & ANIMATIONS */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spin-back {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 0; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .q-hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .q-hero-text h1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .q-hero-cta {
    justify-content: center;
  }
  .qubit-container {
    width: 200px; height: 200px;
  }
  .assessment-container {
    padding: 1.5rem;
  }
}
@media (max-width: 600px) {
  .result-actions {
    flex-direction: column;
  }
}
