/* AWS CCP Practice Test - Claude Aesthetic Styles
 * Clean, minimal design with NO GRADIENTS
 * Flat colors, generous whitespace, subtle borders
 */

/* CSS Variables - Claude Color Palette */
:root {
  --bg-primary: #FAFAF9;
  --bg-secondary: #FFFFFF;
  --text-primary: #1F1F1F;
  --text-secondary: #6B6B6B;
  --text-tertiary: #9CA3AF;
  --accent: #E07856;
  --accent-hover: #D06745;
  --success: #059669;
  --success-bg: #D1FAE5;
  --error: #DC2626;
  --error-bg: #FEE2E2;
  --warning: #F59E0B;
  --warning-bg: #FEF3C7;
  --border: #E5E5E5;
  --border-dark: #D4D4D4;
  --shadow: rgba(0, 0, 0, 0.05);
  --shadow-md: rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  padding: 20px;
  min-height: 100vh;
}

/* Typography */
h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

p {
  margin-bottom: 12px;
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px var(--shadow);
}

.card-compact {
  padding: 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--border-dark);
  background: var(--bg-primary);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-block {
  display: block;
  width: 100%;
  margin-bottom: 12px;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-secondary {
  color: var(--text-secondary);
}

.text-tertiary {
  color: var(--text-tertiary);
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* HOME SCREEN */
.header {
  text-align: center;
  margin-bottom: 32px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

.progress-summary {
  text-align: center;
  padding: 32px;
}

.progress-circle {
  font-size: 48px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.progress-label {
  color: var(--text-secondary);
  font-size: 14px;
}

.days-indicator {
  display: inline-block;
  background: var(--bg-primary);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 16px;
}

.action-buttons {
  margin-top: 24px;
}

/* TEST SCREEN */
.test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.question-number {
  font-weight: 600;
  font-size: 18px;
}

.question-domain {
  color: var(--text-secondary);
  font-size: 14px;
}

.progress-bar {
  height: 4px;
  background: var(--bg-primary);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.question-card {
  margin-bottom: 24px;
}

.question-text {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}

.question-reference {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-bottom: 16px;
}

.question-helper {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
  font-style: italic;
}

/* Options */
.option {
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.option:hover {
  border-color: var(--accent);
  background: rgba(224, 120, 86, 0.05);
}

.option.selected {
  border-color: var(--accent);
  background: rgba(224, 120, 86, 0.1);
}

.option.correct {
  border-color: var(--success);
  background: var(--success-bg);
}

.option.incorrect {
  border-color: var(--error);
  background: var(--error-bg);
}

.option input[type="radio"],
.option input[type="checkbox"] {
  margin-top: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.option label {
  cursor: pointer;
  flex: 1;
  user-select: none;
}

.option input:disabled {
  cursor: not-allowed;
}

/* Test Actions */
.test-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.test-actions .btn {
  flex: 1;
}

/* Feedback Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 32px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 4px 6px var(--shadow-md);
}

.feedback-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

.feedback-title.correct {
  color: var(--success);
}

.feedback-title.incorrect {
  color: var(--error);
}

.explanation {
  background: var(--bg-primary);
  padding: 16px;
  border-radius: 6px;
  margin-top: 16px;
  border-left: 3px solid var(--accent);
}

.explanation ul {
  margin-left: 20px;
  margin-top: 8px;
}

.explanation li {
  margin-bottom: 4px;
}

/* RESULTS SCREEN */
.results-header {
  text-align: center;
  padding: 32px;
  border-bottom: 1px solid var(--border);
}

.results-score {
  font-size: 64px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.results-percentage {
  font-size: 24px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.results-status {
  font-size: 20px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-block;
}

.results-status.pass {
  background: var(--success-bg);
  color: var(--success);
}

.results-status.fail {
  background: var(--error-bg);
  color: var(--error);
}

.domain-result {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.domain-result:last-child {
  border-bottom: none;
}

.domain-name {
  font-weight: 500;
}

.domain-score {
  color: var(--text-secondary);
}

.incorrect-question {
  padding: 12px;
  border-left: 3px solid var(--error);
  background: var(--error-bg);
  margin-bottom: 8px;
  border-radius: 4px;
}

.question-preview {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

/* STATISTICS SCREEN */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  text-align: center;
  padding: 20px;
}

.stat-value {
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

.readiness-card {
  text-align: center;
  padding: 32px;
  border: 2px solid var(--border);
}

.readiness-score {
  font-size: 48px;
  font-weight: 600;
  color: var(--accent);
}

.readiness-level {
  font-size: 20px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-block;
  margin: 16px 0;
}

.readiness-level.success {
  background: var(--success-bg);
  color: var(--success);
}

.readiness-level.warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.readiness-level.error {
  background: var(--error-bg);
  color: var(--error);
}

.domain-stat {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.domain-stat:last-child {
  border-bottom: none;
}

.domain-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.domain-accuracy {
  font-weight: 600;
}

.domain-accuracy.good {
  color: var(--success);
}

.domain-accuracy.poor {
  color: var(--error);
}

.domain-stat-detail {
  color: var(--text-secondary);
  font-size: 14px;
}

.missed-question {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-left: 3px solid var(--error);
  background: var(--error-bg);
  margin-bottom: 8px;
  border-radius: 4px;
}

.missed-count {
  background: var(--error);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.missed-details {
  flex: 1;
}

/* PROGRESS SCREEN */
.progress-header {
  text-align: center;
  padding: 32px;
}

.progress-percentage-large {
  font-size: 64px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.progress-count {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.domain-progress {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.domain-progress:last-child {
  border-bottom: none;
}

.domain-progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.domain-percentage {
  font-weight: 600;
  color: var(--accent);
}

.domain-progress-detail {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  body {
    padding: 12px;
  }

  .card {
    padding: 16px;
  }

  h1 {
    font-size: 24px;
  }

  .question-text {
    font-size: 16px;
  }

  .test-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .test-actions {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-score {
    font-size: 48px;
  }

  .modal-content {
    padding: 20px;
  }

  .option {
    padding: 12px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.3s ease;
}

/* Mode Selector */
.mode-selector {
  margin-bottom: 20px;
}

.btn-mode {
  padding: 10px 16px;
  font-size: 14px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.btn-mode:hover {
  background: var(--bg-secondary);
  border-color: var(--border-dark);
}

.btn-mode.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-mode.active:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Print Styles */
@media print {
  .btn, .test-actions {
    display: none;
  }
}
