/* Premium SAT Test Styles */
.premium-sat-container { max-width: 1000px; margin: 0 auto; padding: var(--space-6) var(--space-4); }
.section[hidden] { display: none; }

.page-header { text-align: center; margin-bottom: var(--space-8); }
.premium-badge { display: inline-block; background: linear-gradient(135deg, var(--amber-500), var(--amber-600)); color: var(--white); padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-3); }
.page-header h1 { font-size: var(--text-4xl); color: var(--slate-900); margin-bottom: var(--space-3); }
.page-intro { font-size: var(--text-lg); color: var(--slate-600); max-width: 600px; margin: 0 auto; line-height: 1.6; }

.test-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-8); }
.feature-item { display: flex; gap: var(--space-3); padding: var(--space-4); background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.feature-item .feature-icon { font-size: var(--text-2xl); }
.feature-item h3 { font-size: var(--text-base); color: var(--slate-800); margin-bottom: var(--space-1); }
.feature-item p { font-size: var(--text-sm); color: var(--slate-600); margin: 0; }

.purchase-card { background: linear-gradient(135deg, var(--slate-800), var(--slate-900)); color: var(--white); padding: var(--space-8); border-radius: var(--radius-xl); text-align: center; margin-bottom: var(--space-8); }
.price { font-size: var(--text-5xl); font-weight: 700; }
.price-note { font-size: var(--text-lg); opacity: 0.8; }
.purchase-details { text-align: left; max-width: 400px; margin: 0 auto var(--space-6); }
.purchase-details ul { list-style: none; padding: 0; }
.purchase-details li { padding: var(--space-2) 0 var(--space-2) var(--space-6); position: relative; }
.purchase-details li::before { content: "✓"; position: absolute; left: 0; color: var(--green-400); font-weight: 700; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4); }
.info-card { background: var(--white); padding: var(--space-5); border-radius: var(--radius-lg); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.info-card h3 { color: var(--amber-600); margin-bottom: var(--space-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-3) var(--space-5); font-size: var(--text-base); font-weight: 600; border: none; border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; }
.btn-primary { background: var(--amber-500); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--amber-600); }
.btn-primary:disabled { background: var(--slate-300); cursor: not-allowed; }
.btn-secondary { background: var(--slate-100); color: var(--slate-700); }
.btn-large { padding: var(--space-4) var(--space-8); font-size: var(--text-lg); }
.btn-text { background: transparent; color: var(--amber-600); }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: var(--white); animation: spin 0.8s linear infinite; display: inline-block; }
.spinner-large { width: 48px; height: 48px; border-width: 4px; border-color: rgba(217,119,6,0.2); border-top-color: var(--amber-500); }
@keyframes spin { to { transform: rotate(360deg); } }

.test-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4); background: var(--slate-800); color: var(--white); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.test-progress { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); }
.test-timer { font-size: var(--text-lg); font-weight: 600; font-family: monospace; }

.question-container { background: var(--white); border: 1px solid var(--slate-200); border-top: none; padding: var(--space-6); min-height: 400px; }
.passage-container { background: var(--slate-50); padding: var(--space-5); border-radius: var(--radius-md); margin-bottom: var(--space-5); font-family: var(--font-serif); line-height: 1.8; max-height: 300px; overflow-y: auto; }
.passage-container:empty { display: none; }
.question-text { font-size: var(--text-lg); color: var(--slate-800); margin-bottom: var(--space-5); line-height: 1.6; }
.answer-options { display: flex; flex-direction: column; gap: var(--space-3); }
.answer-option { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); background: var(--slate-50); border: 2px solid var(--slate-200); border-radius: var(--radius-md); cursor: pointer; }
.answer-option:hover { border-color: var(--amber-300); background: var(--amber-50); }
.answer-option.selected { border-color: var(--amber-500); background: var(--amber-50); }

.test-navigation { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4); background: var(--slate-100); border: 1px solid var(--slate-200); border-top: none; }
.question-markers { display: flex; gap: var(--space-1); flex-wrap: wrap; max-width: 500px; }
.question-marker { width: 24px; height: 24px; border-radius: 50%; background: var(--slate-200); border: none; font-size: var(--text-xs); cursor: pointer; }
.question-marker.answered { background: var(--green-500); color: var(--white); }
.question-marker.current { background: var(--amber-500); color: var(--white); }
.question-marker.flagged { background: var(--red-400); color: var(--white); }

.test-actions { display: flex; justify-content: space-between; padding: var(--space-3) var(--space-4); background: var(--white); border: 1px solid var(--slate-200); border-top: none; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.break-content { text-align: center; padding: var(--space-12) var(--space-4); }
.break-content h2 { color: var(--green-600); }
.timer-display-large { font-size: var(--text-5xl); font-weight: 700; font-family: monospace; color: var(--slate-800); }

.scoring-content { text-align: center; padding: var(--space-8) var(--space-4); }
.scoring-summary { display: flex; justify-content: center; gap: var(--space-8); margin-bottom: var(--space-8); }
.summary-label { display: block; font-size: var(--text-sm); color: var(--slate-500); }
.summary-value { font-size: var(--text-2xl); font-weight: 700; }
.payment-card { background: var(--white); padding: var(--space-6); border-radius: var(--radius-xl); box-shadow: 0 4px 12px rgba(0,0,0,0.1); max-width: 400px; margin: 0 auto; }
.payment-amount { font-size: var(--text-4xl); font-weight: 700; color: var(--amber-600); margin-bottom: var(--space-4); }

.score-hero { background: linear-gradient(135deg, var(--slate-800), var(--slate-900)); color: var(--white); padding: var(--space-8); border-radius: var(--radius-xl); text-align: center; margin-bottom: var(--space-6); }
.total-score .score-label { display: block; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; }
.total-score .score-value { display: block; font-size: 5rem; font-weight: 700; line-height: 1; }
.total-score .score-range { font-size: var(--text-lg); opacity: 0.7; }
.section-scores { display: flex; justify-content: center; gap: var(--space-8); margin-top: var(--space-6); }
.section-score .section-name { display: block; font-size: var(--text-sm); opacity: 0.8; }
.section-score .section-value { font-size: var(--text-3xl); font-weight: 700; }

.percentile-display { background: var(--white); padding: var(--space-6); border-radius: var(--radius-lg); box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: var(--space-6); }
.percentile-bar { height: 12px; background: var(--slate-100); border-radius: var(--radius-full); position: relative; margin-bottom: var(--space-4); }
.percentile-fill { height: 100%; background: linear-gradient(90deg, var(--amber-400), var(--amber-500)); border-radius: var(--radius-full); }
.percentile-marker { position: absolute; top: -4px; width: 20px; height: 20px; background: var(--amber-500); border: 3px solid var(--white); border-radius: 50%; transform: translateX(-50%); }
.percentile-text { text-align: center; color: var(--slate-600); }

.domain-breakdown { background: var(--white); padding: var(--space-6); border-radius: var(--radius-lg); box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: var(--space-6); }
.domain-breakdown h3 { text-align: center; margin-bottom: var(--space-6); }
.domain-section h4 { color: var(--amber-600); margin-bottom: var(--space-4); padding-bottom: var(--space-2); border-bottom: 2px solid var(--amber-200); }
.domain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); }
.domain-item { padding: var(--space-4); background: var(--slate-50); border-radius: var(--radius-md); }
.domain-header { display: flex; justify-content: space-between; margin-bottom: var(--space-2); }
.domain-name { font-weight: 600; color: var(--slate-700); font-size: var(--text-sm); }
.domain-score { font-weight: 700; }
.domain-bar { height: 8px; background: var(--slate-200); border-radius: var(--radius-full); margin-bottom: var(--space-2); overflow: hidden; }
.domain-fill { height: 100%; border-radius: var(--radius-full); }
.domain-fill.excellent { background: var(--green-500); }
.domain-fill.good { background: var(--amber-400); }
.domain-fill.needs-work { background: var(--red-400); }
.domain-desc { font-size: var(--text-xs); color: var(--slate-500); margin: 0; }

.study-plan { background: var(--white); padding: var(--space-6); border-radius: var(--radius-lg); box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: var(--space-6); }
.study-plan h3 { text-align: center; margin-bottom: var(--space-3); }
.study-intro { text-align: center; color: var(--slate-600); margin-bottom: var(--space-6); }
.priority-areas { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-8); }
.priority-item { display: flex; gap: var(--space-4); padding: var(--space-4); background: var(--slate-50); border-radius: var(--radius-md); border-left: 4px solid var(--red-500); }
.priority-item.medium { border-left-color: var(--amber-500); }
.priority-item.low { border-left-color: var(--green-500); }
.priority-rank { width: 32px; height: 32px; background: var(--red-500); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.priority-item.medium .priority-rank { background: var(--amber-500); }
.priority-item.low .priority-rank { background: var(--green-500); }
.priority-content h4 { margin-bottom: var(--space-1); }
.priority-content p { color: var(--slate-600); font-size: var(--text-sm); margin: 0; }

.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3); margin-bottom: var(--space-6); }
.resource-link { display: block; padding: var(--space-3); background: var(--amber-50); border: 1px solid var(--amber-200); border-radius: var(--radius-md); text-decoration: none; color: var(--amber-700); font-weight: 500; }
.resource-link:hover { background: var(--amber-100); }

.improvement-projection { text-align: center; padding: var(--space-6); background: linear-gradient(135deg, var(--green-50), var(--white)); border-radius: var(--radius-lg); border: 1px solid var(--green-200); }
.improvement-projection h4 { color: var(--green-700); margin-bottom: var(--space-2); }
.projection-range { display: flex; align-items: center; justify-content: center; gap: var(--space-2); }
.projection-low, .projection-high { font-size: var(--text-3xl); font-weight: 700; color: var(--green-600); }

.question-review { background: var(--white); padding: var(--space-6); border-radius: var(--radius-lg); margin-bottom: var(--space-6); }
.review-tabs { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); border-bottom: 2px solid var(--slate-200); }
.review-tab { padding: var(--space-2) var(--space-4); background: transparent; border: none; color: var(--slate-500); cursor: pointer; }
.review-tab.active { color: var(--amber-600); border-bottom: 2px solid var(--amber-500); margin-bottom: -2px; }
.review-content { max-height: 500px; overflow-y: auto; }
.review-item { padding: var(--space-4); border-bottom: 1px solid var(--slate-100); }
.review-item-header { display: flex; justify-content: space-between; margin-bottom: var(--space-2); }
.review-status { padding: var(--space-1) var(--space-2); border-radius: var(--radius-full); font-size: var(--text-sm); }
.review-status.correct { background: var(--green-100); color: var(--green-700); }
.review-status.incorrect { background: var(--red-100); color: var(--red-700); }
.review-explanation { margin-top: var(--space-3); padding: var(--space-3); background: var(--slate-50); border-radius: var(--radius-md); font-size: var(--text-sm); }

.results-actions { display: flex; justify-content: center; gap: var(--space-4); flex-wrap: wrap; }

.loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.95); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.loading-content { text-align: center; }
.loading-content p { margin-top: var(--space-4); font-size: var(--text-lg); color: var(--slate-600); }
.error-box { background: var(--red-50); border: 1px solid var(--red-200); border-radius: var(--radius-md); padding: var(--space-5); text-align: center; }

@media (max-width: 768px) {
  .page-header h1 { font-size: var(--text-2xl); }
  .test-header { flex-direction: column; gap: var(--space-2); }
  .question-markers { display: none; }
  .section-scores { flex-direction: column; gap: var(--space-4); }
  .results-actions { flex-direction: column; }
  .results-actions .btn { width: 100%; }
}

@media print {
  .site-header, .site-footer, .results-actions, #landing-section, #test-section, #break-section, #scoring-section { display: none !important; }
  #results-section { display: block !important; }
}
