/* =============================================
   ENKIAN 48Q ASSESSMENT - SHARED STYLES
   ============================================= */

:root {
  --black: #000000;
  --dark: #0a0a0a;
  --gold: #c9a962;
  --gold-dim: rgba(201, 169, 98, 0.3);
  --gold-faint: rgba(201, 169, 98, 0.1);
  --white: #f8f7f4;
  --grey: #e8e6e0;
  --grey-dim: rgba(232, 230, 224, 0.6);
}

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

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--black);
  color: var(--grey);
  min-height: 100vh;
  line-height: 1.6;
}

.enkian-assessment {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  min-height: 100vh;
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes coordReveal {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ENTRY PAGE */
.entry-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  text-align: center;
  padding: 2rem 1rem;
  animation: fadeIn 0.5s ease;
}

.entry-logo {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.entry-title {
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.entry-title .gold { color: var(--gold); }

.entry-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--grey);
  opacity: 0.7;
  margin-bottom: 3rem;
  max-width: 400px;
}

.entry-form {
  width: 100%;
  max-width: 360px;
  margin-bottom: 2rem;
}

.entry-field { margin-bottom: 1rem; }

.entry-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-align: left;
  opacity: 0.8;
}

.entry-input {
  width: 100%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gold-dim);
  color: var(--white);
  outline: none;
  transition: all 0.2s ease;
}

.entry-input::placeholder { color: var(--grey); opacity: 0.4; }
.entry-input:focus { border-color: var(--gold); background: rgba(201, 169, 98, 0.05); }

.entry-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  margin: 1.5rem 0;
}

.entry-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}

.entry-consent-text {
  font-size: 0.9rem;
  color: var(--grey);
  opacity: 0.7;
  line-height: 1.5;
}

.entry-consent-text a { color: var(--gold); text-decoration: none; }
.entry-consent-text a:hover { text-decoration: underline; }

.entry-button {
  width: 100%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 1.1rem 2rem;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--black);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  margin-top: 1rem;
}

.entry-button:hover:not(:disabled) { background: var(--white); border-color: var(--white); }
.entry-button:disabled { opacity: 0.4; cursor: not-allowed; }

.entry-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--grey);
  opacity: 0.4;
  margin-top: 2rem;
  letter-spacing: 0.05em;
}

.entry-error {
  font-size: 0.9rem;
  color: #e74c3c;
  margin-top: 0.5rem;
  display: none;
}

/* Resume Banner */
.resume-banner {
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid var(--gold-dim);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  max-width: 360px;
  animation: fadeIn 0.5s ease;
}

.resume-banner-text {
  font-size: 0.95rem;
  color: var(--grey);
  margin-bottom: 0.5rem;
}

.resume-banner-progress {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.resume-banner-buttons {
  display: flex;
  gap: 0.75rem;
}

.resume-banner-btn {
  flex: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.resume-banner-btn.secondary {
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--grey);
}

.resume-banner-btn.secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.resume-banner-btn.primary {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--black);
}

.resume-banner-btn.primary:hover {
  background: var(--white);
  border-color: var(--white);
}

/* QUIZ PAGE */
.quiz-screen {
  animation: fadeIn 0.5s ease;
}

.quiz-header {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gold-faint);
}

.quiz-logo {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0.7;
}

.progress-container { margin-bottom: 2rem; }

.progress-bar {
  height: 3px;
  background: var(--gold-faint);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #e5d4a1);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--gold);
  opacity: 0.7;
}

.progress-saved {
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--gold);
  opacity: 0;
  margin-top: 0.5rem;
  transition: opacity 0.3s ease;
}

.progress-saved.visible { opacity: 0.6; }

.question-container {
  background: rgba(201, 169, 98, 0.02);
  border: 1px solid var(--gold-faint);
  padding: 2.5rem 2rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.4s ease;
}

.question-engine {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.question-number {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.question-text {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.rating-container { margin-top: 1.5rem; }

.rating-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--grey);
  opacity: 0.5;
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}

.rating-options {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.rating-btn {
  flex: 1;
  aspect-ratio: 1;
  max-width: 65px;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--grey);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rating-btn:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 98, 0.1);
  color: var(--gold);
}

.rating-btn.selected {
  border-color: var(--gold);
  background: rgba(201, 169, 98, 0.2);
  color: var(--gold);
  font-weight: 500;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.nav-btn {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 0.875rem 1.75rem;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--grey);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.nav-btn.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.nav-btn.primary:hover:not(:disabled) { background: var(--white); border-color: var(--white); }

/* LOADING PAGE */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.loading-coords {
  font-family: 'Space Mono', monospace;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 2rem;
  min-height: 2rem;
}

.loading-coord {
  display: inline-block;
  opacity: 0;
  animation: coordReveal 0.3s ease forwards;
}

.loading-coord .dot {
  color: var(--gold);
  opacity: 0.4;
}

.loading-text {
  font-size: 1rem;
  color: var(--grey);
  opacity: 0.6;
}

/* RESULTS PAGE */
.results-screen { 
  padding: 2rem 0; 
  animation: fadeIn 0.5s ease;
}

.results-header {
  text-align: center;
  margin-bottom: 3rem;
}

.results-greeting {
  font-size: 1.1rem;
  color: var(--grey);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.results-title {
  font-weight: 300;
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.coordinates-display {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  color: var(--white);
  background: rgba(201, 169, 98, 0.08);
  border: 1px solid var(--gold-dim);
  padding: 1.25rem 2rem;
  margin-bottom: 1.5rem;
}

.coordinates-display .dot {
  color: var(--gold);
  opacity: 0.4;
  margin: 0 0.1rem;
}

.threshold-badge {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
}

.threshold-badge.met {
  background: rgba(201, 169, 98, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
}

.threshold-badge.borderline {
  background: rgba(201, 169, 98, 0.08);
  border: 1px solid var(--gold-dim);
  color: var(--grey);
}

.threshold-badge.not-met {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--grey);
  opacity: 0.8;
}

.archetype-section {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(201, 169, 98, 0.03);
  border: 1px solid var(--gold-faint);
  margin-bottom: 2rem;
}

.archetype-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.archetype-name {
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.archetype-engines {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0.8;
}

.engine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.engine-card {
  background: rgba(201, 169, 98, 0.02);
  border: 1px solid var(--gold-faint);
  padding: 1rem 0.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.engine-card.high {
  border-color: var(--gold-dim);
  background: rgba(201, 169, 98, 0.08);
}

.engine-card.max {
  border-color: var(--gold);
  background: rgba(201, 169, 98, 0.12);
}

.engine-card.low { opacity: 0.6; }

.engine-name {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  color: var(--grey);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.engine-score {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--white);
}

.engine-card.high .engine-score,
.engine-card.max .engine-score { color: var(--gold); }

.summary-section {
  padding: 2rem;
  background: rgba(201, 169, 98, 0.02);
  border: 1px solid var(--gold-faint);
  margin-bottom: 2rem;
}

.summary-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.summary-text {
  font-size: 1.05rem;
  color: var(--grey);
  line-height: 1.7;
}

.summary-text .gold { color: var(--gold); }

.upsell-section { text-align: center; padding: 2rem 0; }

.upsell-lead { margin-bottom: 2rem; }

.upsell-lead h3 {
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.upsell-lead p {
  font-size: 1rem;
  color: var(--grey);
  opacity: 0.8;
  max-width: 500px;
  margin: 0 auto;
}

.upsell-questions { margin: 2rem 0; padding: 0 1rem; }

.upsell-questions p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--grey);
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.upsell-box {
  background: rgba(201, 169, 98, 0.05);
  border: 1px solid var(--gold-dim);
  padding: 2.5rem 2rem;
  margin: 2rem 0;
}

.upsell-price {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.upsell-title {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.upsell-desc {
  font-size: 0.95rem;
  color: var(--grey);
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.upsell-features {
  text-align: left;
  max-width: 350px;
  margin: 0 auto 1.5rem;
}

.upsell-features li {
  font-size: 0.9rem;
  color: var(--grey);
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
  list-style: none;
  opacity: 0.6;
}

.upsell-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: 0.6;
}

.upsell-btn {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 1.1rem 3rem;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--black);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
}

.upsell-btn:hover { background: var(--white); border-color: var(--white); }

.upsell-note {
  font-size: 0.85rem;
  color: var(--grey);
  opacity: 0.5;
  margin-top: 1rem;
}

.share-section {
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--gold-faint);
}

.share-section p {
  font-size: 0.95rem;
  color: var(--grey);
  opacity: 0.7;
  margin-bottom: 1rem;
}

.share-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.share-coords {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--gold);
  background: rgba(201, 169, 98, 0.08);
  padding: 0.75rem 1.5rem;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.share-coords:hover { 
  background: rgba(201, 169, 98, 0.15); 
  border-color: var(--gold-dim);
}

.share-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--grey);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1.5rem;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  opacity: 0.7;
}

.share-link:hover { 
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.copy-confirm {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--gold);
  margin-top: 0.5rem;
  min-height: 1.2rem;
}

.results-footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--gold-faint);
}

.results-footer p {
  font-size: 0.8rem;
  color: var(--grey);
  opacity: 0.4;
  line-height: 1.7;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .enkian-assessment { padding: 1.5rem 1rem; }
  .entry-title { font-size: 1.8rem; }
  .question-container { padding: 2rem 1.5rem; }
  .question-text { font-size: 1.15rem; }
  .rating-btn { max-width: 55px; font-size: 1.1rem; }
  .engine-grid { grid-template-columns: repeat(3, 1fr); }
  .quiz-nav { flex-direction: column; }
  .nav-btn { width: 100%; }
  .coordinates-display { font-size: 0.8rem; padding: 1rem 1.25rem; }
  .upsell-box { padding: 2rem 1.5rem; }
  .resume-banner-buttons { flex-direction: column; }
  .share-row { flex-direction: column; align-items: center; }
}
