/* ══════════════════════════════════════════════════════════════
   NASHMATCH FEATURES CSS
   Features 1, 3, 8, 9: Share Cards, Comparison, Timeline, Share
   ═════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
   FEATURE 3: RESULTS PANEL
   ────────────────────────────────────────────────────────────── */

.results-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  z-index: 1000;
  animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.results-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.results-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink-muted);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.results-close:hover {
  color: var(--navy);
  transform: scale(1.1);
}

.results-card {
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(13,31,60,0.02) 0%, transparent 100%);
}

.results-nhood-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.results-match-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.results-pct {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
}

.results-hearts {
  font-size: 20px;
  letter-spacing: 2px;
}

.results-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
}

.results-btn {
  display: block;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.results-btn--primary {
  background: var(--gold);
  color: var(--navy);
}

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

.results-btn--secondary {
  background: var(--navy);
  color: var(--white);
}

.results-btn--secondary:hover {
  background: #1a3a5c;
  transform: translateY(-1px);
}

.results-share {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.results-share-label {
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.results-share-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.results-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-share-btn:hover {
  background: var(--gold);
  color: var(--navy);
  transform: scale(1.1);
}

.results-top5 {
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.results-top5 h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.results-top5-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.results-top5-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #f8f7f2;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.results-top5-item:hover {
  background: var(--gold);
}

.results-top5-rank {
  font-weight: 700;
  color: var(--navy);
  min-width: 20px;
  margin-right: 8px;
}

.results-top5-name {
  flex: 1;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}

.results-top5-match {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}

/* Mobile */
@media (max-width: 768px) {
  .results-panel {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* ──────────────────────────────────────────────────────────────
   FEATURE 1: COMPARISON GRID
   ────────────────────────────────────────────────────────────── */

.comparison-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  background: linear-gradient(135deg, #0d1f3c 0%, #1a3a5c 100%);
  min-height: 100vh;
}

.comparison-header {
  text-align: center;
  margin-bottom: 60px;
  color: var(--white);
}

.comparison-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 48px);
  margin-bottom: 12px;
}

.comparison-header p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.comparison-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.comparison-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.comparison-card-header {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  color: var(--white);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comparison-card-header h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0;
}

.comparison-match {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
}

.comparison-card-body {
  padding: 24px;
  flex: 1;
}

.comparison-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.comparison-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.comparison-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.comparison-card-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.comparison-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
}

.comparison-link:hover {
  color: var(--navy);
}

.comparison-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.comparison-export,
.comparison-retake {
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.comparison-export {
  background: var(--gold);
  color: var(--navy);
}

.comparison-export:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.comparison-retake {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.comparison-retake:hover {
  background: rgba(255,255,255,0.3);
  border-color: var(--gold);
}

/* ──────────────────────────────────────────────────────────────
   FEATURE 8: TIMELINE
   ────────────────────────────────────────────────────────────── */

.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
  background: linear-gradient(135deg, #0d1f3c 0%, #1a3a5c 100%);
  min-height: 100vh;
}

.timeline-header {
  text-align: center;
  margin-bottom: 80px;
  color: var(--white);
}

.timeline-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 48px);
  margin-bottom: 12px;
}

.timeline-header p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
}

.timeline {
  position: relative;
  padding-left: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(201,168,76,0.3);
}

.timeline-phase {
  position: relative;
  margin-bottom: 60px;
}

.timeline-phase:last-child {
  margin-bottom: 0;
}

.timeline-phase-marker {
  position: absolute;
  left: -60px;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--gold);
  border: 3px solid #1a3a5c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-phase-number {
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
}

.timeline-phase-content {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.timeline-phase-header {
  margin-bottom: 24px;
}

.timeline-phase-header h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px 0;
}

.timeline-phase-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--navy);
  margin: 0;
}

.timeline-phase-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #f8f7f2;
  border-radius: 8px;
  transition: all 0.2s;
}

.timeline-item:hover {
  background: rgba(201,168,76,0.1);
  transform: translateX(4px);
}

.timeline-item-icon {
  font-size: 20px;
  min-width: 20px;
}

.timeline-item-text {
  flex: 1;
  font-size: 14px;
  color: var(--navy);
}

.timeline-item-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.timeline-item-link:hover {
  color: var(--navy);
}

.timeline-footer {
  text-align: center;
  margin-top: 60px;
  padding: 32px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  color: rgba(255,255,255,0.8);
}

.timeline-footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.timeline-footer a:hover {
  text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .timeline {
    padding-left: 30px;
  }
  
  .timeline::before {
    left: 5px;
  }
  
  .timeline-phase-marker {
    left: -45px;
    width: 32px;
    height: 32px;
  }
  
  .timeline-phase-content {
    padding: 20px;
  }
  
  .timeline-phase-header h2 {
    font-size: 20px;
  }
}

/* Accordion for mobile (optional) */
@media (max-width: 640px) {
  .timeline-phase-marker {
    left: -35px;
  }
  
  .timeline {
    padding-left: 20px;
  }
}

/* Print styles */
@media print {
  .comparison-actions,
  .results-panel,
  .timeline-footer a {
    display: none;
  }
}
