/* Road to Rome - Ancient Roman Theme */
:root {
  --primary-blue: #1e3a8a;      /* Deep Mediterranean blue */
  --primary-gold: #fbbf24;       /* Gold accent */
  --parchment-light: #fef3c7;    /* Light parchment */
  --parchment-dark: #f5e6c8;     /* Dark parchment */
  --stone-gray: #78716c;         /* Stone gray */
  --success-green: #10b981;
  --error-red: #ef4444;
  --text-dark: #1f2937;
  --text-light: #6b7280;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, var(--parchment-light) 0%, var(--parchment-dark) 100%);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

/* View transition animation */
.view {
  display: none;
  animation: viewFadeIn 0.3s ease;
}

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

/* Loading spinner */
.spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.spinner::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid var(--parchment-dark);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Offline banner */
.offline-banner {
  background: var(--error-red);
  color: white;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Install banner */
.install-banner {
  background: var(--primary-blue);
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.install-banner button {
  background: var(--primary-gold);
  color: var(--primary-blue);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

.install-banner .dismiss {
  background: transparent;
  color: white;
  font-size: 1.5rem;
  padding: 0;
  width: 44px;
  height: 44px;
}

/* Header */
.app-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  border-bottom: 4px solid var(--primary-gold);
}

.app-title {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.app-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  font-style: italic;
}

/* Navigation */
.main-nav {
  display: flex;
  justify-content: space-around;
  background: white;
  border-bottom: 2px solid var(--primary-gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.2s ease;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.nav-item:active {
  background: var(--primary-gold);
  transform: scale(0.95);
}

.nav-item:hover,
.nav-item.active {
  background: var(--primary-gold);
  color: var(--primary-blue);
}

.nav-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 0.25rem;
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 600;
}

/* Main Content */
.app-content {
  padding: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 1.75rem;
  border-bottom: 2px solid var(--primary-gold);
  padding-bottom: 0.5rem;
}

.content-area {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Verse Cards */
.verse-card {
  background: var(--parchment-light);
  border-left: 4px solid var(--primary-blue);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.verse-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.verse-reference {
  font-weight: bold;
  color: var(--primary-blue);
  font-family: 'Georgia', serif;
  margin-bottom: 0.5rem;
}

.verse-text {
  font-style: italic;
  line-height: 1.6;
}

.verse-meta {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--stone-gray);
}

.verse-translation {
  font-weight: 600;
}

.verse-tags {
  color: var(--text-light);
}

.verse-status {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

.status-new { background: var(--stone-gray); color: white; }
.status-learning { background: var(--primary-blue); color: white; }
.status-familiar { background: var(--primary-gold); color: var(--primary-blue); }
.status-mastered { background: var(--success-green); color: white; }

/* Delete button on verse card */
.btn-delete-verse {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--error-red);
  color: white;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verse-card:hover .btn-delete-verse {
  opacity: 1;
}

.btn-delete-verse:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* Verses Header with Add Button */
.verses-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.verses-header h2 {
  margin-bottom: 0;
  border: none;
  padding: 0;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}

.btn:active {
  transform: scale(0.96);
  opacity: 0.85;
}

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

.btn-primary:hover {
  background: #1e40af;
}

.btn-success {
  background: var(--success-green);
  color: white;
}

.btn-danger {
  background: var(--error-red);
  color: white;
}

.btn-secondary {
  background: var(--stone-gray);
  color: white;
}

.btn-secondary:hover {
  background: #57534e;
}

.btn-add-verse {
  background: var(--primary-gold);
  color: var(--primary-blue);
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}

.btn-add-verse:hover {
  background: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.btn-icon {
  font-size: 1.25rem;
  font-weight: bold;
}

/* Verse Controls (Search, Sort) */
.verses-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 0.625rem 1rem;
  border: 2px solid var(--stone-gray);
  border-radius: 6px;
  font-size: 0.95rem;
  background: white;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.sort-select {
  padding: 0.625rem 1rem;
  border: 2px solid var(--stone-gray);
  border-radius: 6px;
  font-size: 0.95rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary-blue);
}

/* Status Filter Pills */
.status-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.375rem 0.875rem;
  border: 2px solid var(--stone-gray);
  border-radius: 20px;
  background: white;
  color: var(--stone-gray);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}

.filter-pill:active {
  transform: scale(0.95);
}

.filter-pill:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.filter-pill.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  background: var(--parchment-light);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--primary-gold);
  background: var(--primary-blue);
  color: white;
  border-radius: 12px 12px 0 0;
}

.modal-header h3 {
  font-family: 'Georgia', serif;
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.modal-close:hover {
  transform: scale(1.2);
}

#verse-form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--stone-gray);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--stone-gray);
  font-style: italic;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-blue);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  font-weight: 600;
  animation: toastFadeIn 0.3s ease;
}

.toast.hidden {
  display: none;
}

.toast.success {
  background: var(--success-green);
}

.toast.error {
  background: var(--error-red);
}

@keyframes toastFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Review Cards */
.review-card {
  background: white;
  border: 2px solid var(--primary-gold);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.review-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Review Session Styles */
.review-session-header {
  text-align: center;
  padding: 2rem 1rem;
}

.due-count {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.btn-start-session {
  background: var(--primary-gold);
  color: var(--primary-blue);
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 200px;
}

.btn-start-session:hover {
  background: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.due-verses-details {
  margin-top: 1.5rem;
  background: white;
  border-radius: 8px;
  padding: 1rem;
}

.due-verses-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-blue);
  padding: 0.5rem;
}

.due-verses-list {
  margin-top: 1rem;
  padding-left: 1rem;
}

.review-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid var(--parchment-dark);
}

.review-preview:last-child {
  border-bottom: none;
}

.review-reference {
  font-weight: 600;
  color: var(--primary-blue);
}

.review-status {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

/* Drill Type Selector */
.drill-type-selector {
  text-align: center;
  padding: 2rem 1rem;
}

.drill-type-selector h3 {
  font-family: 'Georgia', serif;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.drill-type-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.btn-drill-type {
  background: white;
  border: 2px solid var(--primary-gold);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-height: 120px;
  -webkit-tap-highlight-color: transparent;
}

.btn-drill-type:active {
  transform: scale(0.96);
  background: var(--parchment-light);
}

.btn-drill-type:hover {
  background: var(--parchment-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.btn-drill-type-random {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-gold);
}

.btn-drill-type-random:hover {
  background: #1e40af;
}

.drill-type-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-drill-type span:last-child {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Drill Overlay */
.drill-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--parchment-light) 0%, var(--parchment-dark) 100%);
  z-index: 1000;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.drill-overlay.hidden {
  display: none;
}

.drill-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 600px;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.drill-progress span {
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 1.125rem;
}

.btn-exit-drill {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--stone-gray);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.btn-exit-drill:hover {
  background: var(--error-red);
  color: white;
}

.drill-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.drill-reference {
  font-family: 'Georgia', serif;
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  text-align: center;
}

.drill-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--stone-gray);
  border-radius: 8px;
  font-size: 1.125rem;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease;
}

.drill-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.btn-drill {
  background: var(--primary-gold);
  color: var(--primary-blue);
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 150px;
  margin-top: 1rem;
}

.btn-drill:hover {
  background: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

/* Fill in the Blank */
.fill-blank-container {
  font-size: 1.25rem;
  line-height: 2;
  text-align: center;
  margin-bottom: 1.5rem;
}

.fill-blank-container span {
  margin: 0 0.25rem;
}

.blank-input {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border: none;
  border-bottom: 2px solid var(--primary-blue);
  background: transparent;
  font-size: 1.25rem;
  text-align: center;
  color: var(--primary-blue);
  font-weight: 600;
  margin: 0 0.25rem;
}

.blank-input:focus {
  outline: none;
  border-bottom-color: var(--primary-gold);
}

/* Word Scramble */
.word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--parchment-light);
  border-radius: 8px;
  min-height: 80px;
}

.word-chip {
  background: white;
  border: 2px solid var(--primary-blue);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.word-chip:active {
  transform: scale(0.92);
  opacity: 0.8;
}

.word-chip:hover {
  background: var(--parchment-light);
  transform: scale(1.05);
}

.word-chip.placed {
  background: var(--stone-gray);
  border-color: var(--stone-gray);
  color: white;
  opacity: 0.5;
  cursor: not-allowed;
}

.answer-area {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem;
  background: white;
  border: 2px dashed var(--primary-blue);
  border-radius: 8px;
  min-height: 80px;
  margin-bottom: 1rem;
  cursor: pointer;
}

.answer-area:empty::before {
  content: 'Tap words in order (tap answer area to remove last)';
  color: var(--stone-gray);
  font-style: italic;
  font-size: 0.875rem;
}

/* Result Card */
.result-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--parchment-dark);
}

.result-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.diff-display {
  text-align: left;
  background: var(--parchment-light);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1rem;
}

.diff-correct {
  color: var(--success-green);
  font-weight: 600;
}

.diff-incorrect {
  color: var(--error-red);
  text-decoration: line-through;
  margin-right: 0.5rem;
}

.diff-incorrect + .diff-correct,
.diff-incorrect + .diff-incorrect {
  margin-left: 0.5rem;
}

/* Session Summary */
.session-summary {
  background: white;
  border-radius: 12px;
  padding: 3rem 2rem;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.session-summary h3 {
  font-family: 'Georgia', serif;
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 2rem;
}

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

.summary-stat {
  background: var(--parchment-light);
  padding: 1.5rem 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.summary-stat .stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-blue);
}

.summary-stat .stat-label {
  font-size: 0.875rem;
  color: var(--stone-gray);
  margin-top: 0.25rem;
}

/* Journey Map Placeholder */
/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--parchment-light);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 2px solid var(--primary-gold);
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-blue);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--stone-gray);
  margin-top: 0.25rem;
}

/* Error messages */
.error {
  color: var(--error-red);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
  .app-title {
    font-size: 1.75rem;
  }
  
  .nav-label {
    font-size: 0.65rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .verses-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-add-verse {
    justify-content: center;
  }
  
  .verses-controls {
    flex-direction: column;
  }
  
  .search-input {
    min-width: 100%;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Campaign Cards */
.campaign-card {
  background: white;
  border: 2px solid var(--primary-gold);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.campaign-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.campaign-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.campaign-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.campaign-info {
  flex: 1;
}

.campaign-name {
  font-family: 'Georgia', serif;
  color: var(--primary-blue);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.campaign-description {
  color: var(--stone-gray);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.campaign-type-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--parchment-light);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-transform: capitalize;
}

.campaign-progress {
  margin-bottom: 1rem;
}

.campaign-progress-bar {
  height: 8px;
  background: var(--parchment-light);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.campaign-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-gold) 0%, #f59e0b 100%);
  transition: width 0.3s ease;
}

.campaign-progress-text {
  font-size: 0.75rem;
  color: var(--stone-gray);
}

.btn-open-campaign {
  width: 100%;
  background: var(--primary-blue);
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-open-campaign:hover {
  background: #1e40af;
}

/* Campaign Detail Overlay */
.campaign-detail-content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
  min-height: 100vh;
}

.btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--stone-gray);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100;
}

.btn-close:hover {
  background: var(--error-red);
  transform: scale(1.1);
}

.campaign-detail-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-gold);
}

.campaign-detail-header h2 {
  font-family: 'Georgia', serif;
  color: var(--primary-blue);
  margin: 0.5rem 0;
}

.campaign-detail-header p {
  color: var(--stone-gray);
  font-style: italic;
}

/* City List (simplified — replaces SVG map) */
.city-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.city-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border-left: 4px solid var(--stone-gray);
  transition: all 0.2s ease;
}

.city-card:active {
  transform: scale(0.98);
}

.city-card.city-current {
  border-left-color: var(--primary-blue);
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.city-card.city-complete {
  border-left-color: var(--primary-gold);
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.city-card.city-locked {
  opacity: 0.5;
}

.city-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.city-number {
  background: var(--primary-blue);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.city-complete .city-number {
  background: var(--primary-gold);
  color: var(--primary-blue);
}

.city-locked .city-number {
  background: var(--stone-gray);
}

.city-card-icon {
  font-size: 1.25rem;
}

.city-card-body {
  padding-left: 0.5rem;
}

.city-card-name {
  color: var(--primary-blue);
  font-size: 1.1rem;
  font-family: Georgia, serif;
  margin-bottom: 0.25rem;
}

.city-card-context {
  font-size: 0.85rem;
  color: var(--stone-gray);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.city-card-progress {
  margin-top: 0.5rem;
}

.city-progress-text {
  font-size: 0.8rem;
  color: var(--stone-gray);
  font-weight: 600;
}

.city-progress-bar {
  height: 6px;
  background: #e5e5e5;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.city-progress-fill {
  height: 100%;
  background: var(--primary-gold);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.city-current .city-progress-fill {
  background: var(--primary-blue);
}

.btn-city-review {
  margin-top: 0.75rem;
  width: 100%;
  background: var(--primary-blue);
  color: white;
  padding: 0.625rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.2s ease;
}

.btn-city-review:active {
  transform: scale(0.97);
  opacity: 0.85;
}

/* City Popup */
.city-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 2px solid var(--primary-gold);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 200;
  max-width: 400px;
  width: 90%;
}

.city-popup h4 {
  font-family: 'Georgia', serif;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

/* Campaign Verses Section */
.campaign-verses-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.campaign-verses-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--parchment-dark);
}

.campaign-verses-header h3 {
  font-family: 'Georgia', serif;
  color: var(--primary-blue);
  margin: 0;
}

.btn-add-verse-to-campaign {
  background: var(--primary-gold);
  color: var(--primary-blue);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-verse-to-campaign:hover {
  background: #f59e0b;
}

.campaign-verses-list {
  max-height: 400px;
  overflow-y: auto;
}

.campaign-verse-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid var(--parchment-dark);
  transition: background 0.2s ease;
}

.campaign-verse-item:hover {
  background: var(--parchment-light);
}

.campaign-verse-item:last-child {
  border-bottom: none;
}

.campaign-verse-info {
  flex: 1;
}

.campaign-verse-reference {
  display: block;
  font-weight: bold;
  color: var(--primary-blue);
  font-family: 'Georgia', serif;
  margin-bottom: 0.25rem;
}

.campaign-verse-text {
  display: block;
  font-size: 0.875rem;
  color: var(--stone-gray);
  font-style: italic;
}

.campaign-verse-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-review-verse {
  background: var(--success-green);
  color: white;
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-review-verse:hover {
  background: #059669;
}

.btn-remove-verse {
  background: var(--error-red);
  color: white;
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove-verse:hover {
  background: #dc2626;
}

/* Verse Picker */
.verse-picker {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 600px;
  margin: 2rem auto;
}

.verse-picker h3 {
  font-family: 'Georgia', serif;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  text-align: center;
}

.verse-picker-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.verse-picker-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--parchment-dark);
  cursor: pointer;
}

.verse-picker-item:hover {
  background: var(--parchment-light);
}

.verse-picker-item label {
  flex: 1;
  cursor: pointer;
}

.verse-picker-item strong {
  display: block;
  color: var(--primary-blue);
  font-family: 'Georgia', serif;
  margin-bottom: 0.25rem;
}

.verse-picker-item span {
  color: var(--stone-gray);
  font-size: 0.875rem;
  font-style: italic;
}

.verse-picker-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.verse-picker-actions .btn {
  min-width: 100px;
}
