/**
 * UpThread Development Roadmap Page Styles
 * Extends homepage.css design system — mirrors about.css conventions
 */

/* ═══════════════════════════════════════════════════════════════════════════
   VARIABLES (matching homepage.css & about.css)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --linkedin-blue: #0a66c2;
  --linkedin-blue-dark: #004182;
  --linkedin-blue-light: #378fe9;
  --linkedin-white: #ffffff;
  --linkedin-gray-100: #f3f2ef;
  --linkedin-gray-200: #e9e5df;
  --linkedin-gray-300: #00000099;
  --linkedin-gray-400: #00000066;
  --text-primary: #000000e6;
  --text-secondary: #00000099;
  --border-color: #00000014;
  --success: #057642;
  --success-bg: #f0fdf4;
  --success-text: #14532d;
  --error: #ef4444;
  --error-bg: #fff3f3;
  --error-text: #991b1b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DEV HERO
   ═══════════════════════════════════════════════════════════════════════════ */

.dev-hero {
  background: linear-gradient(
    135deg,
    var(--linkedin-blue) 0%,
    var(--linkedin-blue-dark) 100%
  );
  padding: 80px 24px;
  text-align: center;
  color: white;
}

.dev-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.5s ease-out;
}

.dev-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s ease-out;
}

.dev-hero p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

/* ═══════════════════════════════════════════════════════════════════════════
   REUSE ABOUT CONTAINER (defined in about.css — repeated here for standalone use)
   ═══════════════════════════════════════════════════════════════════════════ */

.about-container {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STORY SECTION (mirrors about.css)
   ═══════════════════════════════════════════════════════════════════════════ */

.story-section {
  margin-bottom: 60px;
}

.story-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.story-section p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.story-section strong {
  color: var(--linkedin-blue);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SOLUTION BOX (mirrors about.css)
   ═══════════════════════════════════════════════════════════════════════════ */

.solution-box {
  background: linear-gradient(
    135deg,
    rgba(10, 102, 194, 0.05) 0%,
    rgba(10, 102, 194, 0.1) 100%
  );
  border-left: 4px solid var(--linkedin-blue);
  padding: 24px;
  margin: 32px 0;
  border-radius: 8px;
}

.solution-box h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--linkedin-blue);
  margin-bottom: 12px;
}

.solution-box p {
  font-size: 16px;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ROADMAP TIMELINE
   ═══════════════════════════════════════════════════════════════════════════ */

.roadmap-timeline {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.roadmap-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* The left column: dot + connecting line */
.roadmap-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 44px;
}

.roadmap-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
}

/* Completed = green */
.roadmap-item.completed .roadmap-dot {
  background: var(--success);
  color: white;
  box-shadow: 0 0 0 4px var(--success-bg);
}

/* Upcoming = blue outline */
.roadmap-item.upcoming .roadmap-dot {
  background: white;
  color: var(--linkedin-blue);
  border: 2px solid var(--linkedin-blue);
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.08);
}

/* Connecting line between dots */
.roadmap-line {
  width: 2px;
  flex: 1;
  min-height: 32px;
  margin: 4px 0;
}

.roadmap-item.completed .roadmap-line {
  background: var(--success);
}

.roadmap-item.upcoming .roadmap-line {
  background: var(--linkedin-blue-light);
  opacity: 0.4;
}

/* No line after the last item */
.roadmap-item.last .roadmap-line {
  display: none;
}

/* The right column: content card */
.roadmap-content {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
  flex: 1;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}

.roadmap-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.roadmap-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  margin-top: 8px;
}

.roadmap-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Status tags */
.roadmap-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.complete-tag {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid rgba(5, 118, 66, 0.2);
}

.upcoming-tag {
  background: rgba(10, 102, 194, 0.08);
  color: var(--linkedin-blue);
  border: 1px solid rgba(10, 102, 194, 0.2);
}

/* Data note below the description */
.roadmap-data-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--linkedin-gray-100);
  padding: 10px 14px;
  border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MISSION SECTION (mirrors about.css)
   ═══════════════════════════════════════════════════════════════════════════ */

.mission-section {
  background: white;
  padding: 48px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin: 60px 0;
}

.mission-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
}

.mission-section p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA SECTION (mirrors about.css)
   ═══════════════════════════════════════════════════════════════════════════ */

.cta-section {
  text-align: center;
  padding: 60px 24px;
  background: linear-gradient(
    135deg,
    var(--linkedin-blue) 0%,
    var(--linkedin-blue-dark) 100%
  );
  border-radius: 12px;
  color: white;
  margin: 60px 0;
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
}

.cta-btn {
  display: inline-block;
  padding: 16px 40px;
  background: white;
  color: var(--linkedin-blue);
  text-decoration: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

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

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .about-container {
    padding: 0 32px;
  }
}

@media (max-width: 768px) {
  .dev-hero h1 {
    font-size: 32px;
  }

  .dev-hero p {
    font-size: 16px;
  }

  .about-container {
    margin: 40px auto;
    padding: 0 20px;
  }

  .story-section h2 {
    font-size: 26px;
  }

  .story-section p {
    font-size: 16px;
  }

  /* Stack roadmap items more tightly on mobile */
  .roadmap-item {
    gap: 16px;
  }

  .roadmap-dot {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .roadmap-marker {
    width: 36px;
  }

  .roadmap-content {
    padding: 18px 20px;
  }

  .roadmap-content h3 {
    font-size: 17px;
  }

  .roadmap-content p {
    font-size: 15px;
  }

  .mission-section {
    padding: 32px 20px;
  }

  .mission-section h2 {
    font-size: 26px;
  }

  .mission-section p {
    font-size: 16px;
  }

  .cta-section {
    padding: 40px 20px;
  }

  .cta-section h2 {
    font-size: 26px;
  }

  .cta-section p {
    font-size: 16px;
  }

  .solution-box {
    padding: 20px;
    margin: 24px 0;
  }
}

@media (max-width: 480px) {
  .dev-hero {
    padding: 60px 16px;
  }

  .dev-hero h1 {
    font-size: 26px;
  }

  .roadmap-item {
    gap: 12px;
  }

  .roadmap-dot {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .roadmap-marker {
    width: 32px;
  }

  .roadmap-content {
    padding: 14px 16px;
  }
}
