/* CSS Variables */
:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #818CF8;
  --secondary: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --text: #1F2937;
  --text-muted: #6B7280;
  --bg: #ffffff;
  --bg-secondary: #F9FAFB;
  --bg-tertiary: #F3F4F6;
  --border: #E5E7EB;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --header-height: 64px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.125rem;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-email {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.upgrade-btn {
  background: var(--secondary);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text);
  text-decoration: none;
}

/* Main */
.app-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

/* Footer */
.app-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 1.5rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: var(--bg-tertiary);
}

.btn-large {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Features */
.features {
  padding: 3rem 0;
}

.features h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Pricing */
.pricing {
  padding: 3rem 0;
}

.pricing h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-card h3 {
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
}

.pricing-card .price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-card ul {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.pricing-card li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
}

/* Projects */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  margin: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.project-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.project-status {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-draft { background: var(--bg-tertiary); color: var(--text-muted); }
.status-uploaded { background: #DBEAFE; color: #1D4ED8; }
.status-transcribing { background: #FEF3C7; color: #D97706; }
.status-transcribed { background: #D1FAE5; color: #047857; }
.status-error { background: #FEE2E2; color: #DC2626; }

.project-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}

.empty-state.small {
  padding: 2rem 1rem;
}

.empty-icon {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h2 {
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  margin: 1rem;
  box-shadow: var(--shadow-lg);
}

.modal-content h2 {
  margin-bottom: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Project Selection */
.project-selection {
  margin-bottom: 1.5rem;
}

.project-select-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.project-select-wrapper select {
  flex: 1;
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-sm svg {
  flex-shrink: 0;
}

/* Modal h3 style */
.modal-content h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Tabs */
.project-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Recordings List */
.recordings-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recording-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

.recording-info h4 {
  margin-bottom: 0.25rem;
}

.recording-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.recording-actions {
  display: flex;
  gap: 0.5rem;
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-area:hover {
  border-color: var(--primary-light);
}

.upload-area svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.upload-area .link {
  color: var(--primary);
  cursor: pointer;
}

.upload-area .hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Recorder */
.recorder-container {
  max-width: 600px;
  margin: 0 auto;
}

.recorder-ui {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.waveform {
  height: 60px;
  background: var(--bg-tertiary);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.timer {
  font-size: 2.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.5rem;
}

.recorder-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.record-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: var(--danger);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.record-btn:hover {
  transform: scale(1.05);
}

.record-btn.recording {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
}

.record-icon {
  width: 32px;
  height: 32px;
}

.control-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn svg {
  width: 24px;
  height: 24px;
}

.recorder-status {
  margin-top: 1rem;
  color: var(--text-muted);
}

/* Live Transcription Panel */
.live-transcription-section {
  margin-top: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.live-transcription-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.live-transcription-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--danger);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.live-transcription-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auto-scroll-toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  cursor: pointer;
}

.auto-scroll-toggle input {
  cursor: pointer;
}

.live-transcription-content {
  min-height: 120px;
  max-height: 200px;
  overflow-y: auto;
  padding: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.live-transcription-content p {
  margin: 0;
}

.transcription-placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.interim-text {
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 0 0.25rem;
  border-radius: 2px;
}

.live-transcription-footer {
  padding: 0.625rem 1rem;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border);
}

.transcription-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.transcription-note svg {
  flex-shrink: 0;
}

/* Q&A */
.qa-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height) - 8rem);
  max-width: 800px;
  margin: 0 auto;
}

.qa-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.qa-welcome {
  text-align: center;
  padding: 3rem 1rem;
}

.welcome-icon {
  width: 64px;
  height: 64px;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.qa-welcome h2 {
  margin-bottom: 0.5rem;
}

.qa-welcome p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Sola Scriptura Note */
.sola-scriptura-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #92400E;
}

.sola-scriptura-note svg {
  width: 18px;
  height: 18px;
  color: #B45309;
  flex-shrink: 0;
}

.example-questions {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.example-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  cursor: pointer;
  color: var(--text);
}

.example-btn:hover {
  border-color: var(--primary-light);
}

.qa-message {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
}

.qa-message.question {
  background: var(--primary);
  color: white;
  margin-left: 2rem;
}

.qa-message.answer {
  background: var(--bg-secondary);
  margin-right: 2rem;
}

.message-time {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

.qa-input-form {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.input-wrapper {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
}

.input-wrapper textarea {
  flex: 1;
  border: none;
  background: none;
  padding: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  resize: none;
}

.input-wrapper textarea:focus {
  outline: none;
}

.send-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-btn svg {
  width: 20px;
  height: 20px;
}

.input-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Auth */
.auth-container {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.auth-header {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
}

.auth-logo {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.auth-header h1 {
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--text-muted);
}

.auth-body {
  padding: 2rem;
}

.auth-info {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-divider {
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.auth-footer {
  padding: 1.5rem 2rem;
  background: var(--bg-secondary);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--text-muted);
}

/* Alert */
.alert {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.alert-error {
  background: #FEE2E2;
  color: #DC2626;
}

/* Utilities */
.hidden {
  display: none !important;
}

.muted {
  color: var(--text-muted);
}

.link {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}

/* Project Card Wrapper for dropdown positioning */
.project-card-wrapper {
  position: relative;
}

.project-card-wrapper .project-card {
  display: block;
}

/* Dropdown Menu */
.project-actions-dropdown {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
}

.dropdown-toggle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.dropdown-toggle:hover {
  background: var(--bg-secondary);
  color: var(--text);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 140px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.375rem;
  z-index: 20;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: none;
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: calc(var(--radius) - 2px);
  text-align: left;
}

.dropdown-item:hover {
  background: var(--bg-secondary);
}

.dropdown-item.danger {
  color: var(--danger);
}

.dropdown-item.danger:hover {
  background: #FEE2E2;
}

/* Danger Button */
.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #DC2626;
}

.btn-danger-text {
  color: var(--danger);
}

.btn-danger-text:hover {
  background: #FEE2E2;
}

/* Delete Warning Styles */
.delete-warning {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.delete-cascade-warning {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.75rem;
  background: #FEF3C7;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* Header Actions */
.header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Outline Styling */
.outline-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.outline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.outline-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

/* Outline Cards */
.outline-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.outline-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.outline-card-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.outline-card-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Summary Card */
.summary-card {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  border-color: #BAE6FD;
}

.outline-summary-text {
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* Section Titles */
.outline-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}

/* Main Points */
.main-points-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-point-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.main-point-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-secondary);
  cursor: default;
}

.point-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.point-number::before {
  content: counter(point-counter);
}

.main-point-card:nth-child(1) .point-number::before { content: "1"; }
.main-point-card:nth-child(2) .point-number::before { content: "2"; }
.main-point-card:nth-child(3) .point-number::before { content: "3"; }
.main-point-card:nth-child(4) .point-number::before { content: "4"; }
.main-point-card:nth-child(5) .point-number::before { content: "5"; }
.main-point-card:nth-child(6) .point-number::before { content: "6"; }
.main-point-card:nth-child(7) .point-number::before { content: "7"; }
.main-point-card:nth-child(8) .point-number::before { content: "8"; }
.main-point-card:nth-child(9) .point-number::before { content: "9"; }
.main-point-card:nth-child(10) .point-number::before { content: "10"; }

.point-heading {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.point-toggle {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s, transform 0.2s;
}

.point-toggle:hover {
  background: var(--bg-tertiary);
}

.main-point-card[data-expanded="false"] .point-toggle svg {
  transform: rotate(-90deg);
}

.main-point-card[data-expanded="false"] .sub-points-container {
  display: none;
}

.sub-points-container {
  padding: 0 1rem 1rem;
  background: var(--bg);
}

.sub-points-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sub-point-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
}

.sub-point-item:last-child {
  border-bottom: none;
}

.sub-point-icon {
  width: 18px;
  height: 18px;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.sub-point-item span {
  color: var(--text);
  line-height: 1.5;
}

/* Key Verses Card */
.key-verses-card {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-color: #FCD34D;
}

.key-verses-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.key-verse-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
}

.verse-icon {
  width: 16px;
  height: 16px;
  color: #B45309;
  flex-shrink: 0;
  margin-top: 2px;
}

.key-verse-item span {
  color: var(--text);
  font-style: italic;
}

/* Applications */
.applications-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.application-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.application-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.application-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary-dark);
}

.application-item p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-nav:not(.hidden) {
    display: block;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .page-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}
