/* PathfinderHQ - Dark Theme with Amber Accents */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a24;
  --bg-hover: #22222e;
  --bg-input: #16161f;
  
  --text-primary: #f5f5f7;
  --text-secondary: #a0a0a8;
  --text-muted: #6b6b75;
  
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-muted: rgba(245, 158, 11, 0.15);
  
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  
  --border: #2a2a35;
  --border-light: #3a3a45;
  
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

select {
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.error-message {
  color: var(--error);
  font-size: 0.875rem;
  margin-bottom: 12px;
  min-height: 20px;
}

/* Pages */
.page {
  display: none;
  min-height: 100vh;
}

.page.active {
  display: block;
}

/* ============ LANDING PAGE ============ */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.landing-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo:hover {
  color: var(--accent);
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.landing-nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.landing-nav a:hover {
  color: var(--text-primary);
}

/* Hero */
.hero {
  padding: 160px 0 100px;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
    var(--bg-primary);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.dashboard-preview {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.preview-header {
  display: flex;
  gap: 8px;
  padding: 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.preview-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-light);
}

.preview-dot:first-child { background: #ef4444; }
.preview-dot:nth-child(2) { background: #f59e0b; }
.preview-dot:nth-child(3) { background: #22c55e; }

.preview-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-milestone {
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.preview-milestone.completed {
  color: var(--success);
}

.preview-milestone.active {
  background: var(--accent-muted);
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* Features */
.features {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.features h2 {
  text-align: center;
  margin-bottom: 60px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
  padding: 100px 0;
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: 60px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  text-align: center;
  padding: 40px 24px;
}

.step-number {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-muted);
  border-radius: 50%;
}

.step h3 {
  margin-bottom: 12px;
}

/* Footer */
.landing-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.landing-footer p {
  font-size: 0.875rem;
}

/* ============ AUTH PAGES ============ */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
    var(--bg-primary);
}

.auth-container {
  width: 100%;
  max-width: 440px;
  padding: 40px 24px;
}

.auth-container .logo {
  display: block;
  text-align: center;
  margin-bottom: 40px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.auth-card h1 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 1.75rem;
}

.auth-subtitle {
  text-align: center;
  margin-bottom: 32px;
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 0.95rem;
}

/* ============ ONBOARDING ============ */
.onboarding-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 24px;
}

.onboarding-progress {
  margin-bottom: 48px;
}

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

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

.progress-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.onboarding-step {
  display: none;
}

.onboarding-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.onboarding-step h1 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.step-subtitle {
  margin-bottom: 32px;
}

/* Stage Options */
.stage-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stage-option input {
  display: none;
}

.stage-card {
  padding: 24px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
}

.stage-option input:checked + .stage-card {
  border-color: var(--accent);
  background: var(--accent-muted);
}

.stage-card:hover {
  border-color: var(--border-light);
}

.stage-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.stage-card strong {
  display: block;
  margin-bottom: 8px;
}

.stage-card p {
  font-size: 0.875rem;
}

/* Goal Options */
.goal-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.checkbox-option:hover {
  border-color: var(--border-light);
}

.checkbox-option input:checked + span {
  color: var(--accent);
}

.step-nav {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 32px;
}

/* ============ DASHBOARD ============ */
.dashboard-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 10px 18px;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-muted);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.dashboard-main {
  padding: 40px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-tab {
  display: none;
}

.dashboard-tab.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.dashboard-header {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dashboard-header h1 {
  margin-bottom: 8px;
}

.dashboard-subtitle {
  color: var(--text-muted);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat-card.highlight {
  border-color: var(--accent);
  background: var(--accent-muted);
}

.stat-icon {
  font-size: 2rem;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.dashboard-section h2 {
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.current-milestone-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.milestone-phase {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.milestone-title {
  margin-bottom: 8px;
}

.milestone-desc {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.empty-state {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

/* Action List */
.action-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.action-item:hover {
  border-color: var(--border-light);
}

.action-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.action-checkbox:hover {
  border-color: var(--accent);
}

.action-checkbox.checked {
  background: var(--success);
  border-color: var(--success);
}

.action-content {
  flex: 1;
}

.action-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.action-item.completed .action-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.action-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.action-priority {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.action-priority.high {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.action-priority.medium {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.action-priority.low {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.action-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  opacity: 0;
  transition: var(--transition);
}

.action-item:hover .action-delete {
  opacity: 1;
}

.action-delete:hover {
  color: var(--error);
}

/* Actions Filters */
.actions-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--border-light);
}

.filter-btn.active {
  background: var(--accent-muted);
  border-color: var(--accent);
  color: var(--accent);
}

.action-list-full {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Roadmap */
.roadmap-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.roadmap-milestone {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.roadmap-milestone:hover {
  border-color: var(--border-light);
}

.roadmap-milestone.completed {
  opacity: 0.7;
}

.roadmap-milestone.in_progress {
  border-color: var(--accent);
  background: var(--accent-muted);
}

.milestone-status {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 50%;
  flex-shrink: 0;
}

.roadmap-milestone.completed .milestone-status {
  background: var(--success);
  color: white;
}

.roadmap-milestone.in_progress .milestone-status {
  background: var(--accent);
  color: var(--bg-primary);
}

.milestone-info {
  flex: 1;
}

.milestone-info h3 {
  margin-bottom: 8px;
}

.milestone-info p {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.milestone-info .milestone-phase {
  font-size: 0.7rem;
}

.milestone-actions {
  display: flex;
  align-items: center;
}

/* Resources */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.resource-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.resource-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.resource-category {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.resource-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.resource-card p {
  font-size: 0.9rem;
}

.resource-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 500;
}

/* Journal */
.journal-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.journal-entry {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.journal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.journal-entry h3 {
  margin-bottom: 4px;
}

.journal-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.journal-mood {
  font-size: 1.5rem;
}

.journal-content {
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* Mood Options */
.mood-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mood-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.mood-option input {
  display: none;
}

.mood-option span {
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.mood-option input:checked + span {
  border-color: var(--accent);
  background: var(--accent-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  
  .landing-nav {
    display: none;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-visual {
    display: none;
  }
  
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  
  .stage-options {
    grid-template-columns: 1fr;
  }
  
  .dashboard-nav {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}
