/* Uplift AI Labs Robotics Camp - Styles */
/* Complements www.upliftailabs.com */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #10b981;
  --accent-dark: #059669;
  --dark: #0f172a;
  --gray: #64748b;
  --slate-200: #e2e8f0;
  --slate-700: #334155;
  --light: #f8fafc;
  --white: #ffffff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.3);
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

/* ============================================
   Navbar - matches landing page
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-logo {
  display: block;
}

.nav-logo .logo-img {
  height: 50px;
  width: auto;
  transition: transform var(--transition-base);
}

.nav-logo:hover .logo-img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--slate-700);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-link-cta {
  background: var(--gradient-primary);
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
}

/* Hero - used by modules.html and module detail pages */
.hero {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--dark);
  padding: 4rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--slate-200);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.hero .back-link:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main.container {
  padding: 2.5rem 1.5rem;
  background: var(--white);
}

/* Section */
.section {
  padding: 3rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title .icon {
  font-size: 1.5rem;
}

.section-tagline {
  font-size: 1rem;
  color: var(--gray);
  margin: -0.5rem 0 1.5rem 0;
}

/* Module Cards */
.module-card {
  background: var(--white);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.module-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.module-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--dark);
}

.module-card .day-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.module-card .description {
  color: var(--gray);
  margin: 0 0 1.25rem 0;
  font-size: 0.95rem;
}

/* Subsections within module */
.subsection {
  margin-top: 1.25rem;
}

.subsection h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin: 0 0 0.5rem 0;
}

.subsection ul {
  margin: 0;
  padding-left: 1.25rem;
}

.subsection li {
  margin-bottom: 0.35rem;
}

/* Activity boxes - for off-robot / tactile activities */
.activity-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.activity-box.highlight {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: var(--primary);
}

.activity-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #065f46;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.activity-box.highlight h4 {
  color: var(--primary-dark);
}

.activity-box p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #047857;
}

.activity-box.highlight p {
  color: #1e40af;
}

/* Teamwork badge */
.teamwork-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-top: 0.5rem;
}

/* Grid for two-column layout */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* Intro section */
.intro-section {
  background: var(--light);
  padding: 2.5rem 1.5rem;
}

.intro-section p {
  font-size: 1.1rem;
  color: var(--gray);
  margin: 0;
  max-width: 700px;
}

.intro-section p + p {
  margin-top: 1rem;
}

.activity-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.activity-link:hover {
  color: var(--primary-dark);
}

/* Day grid - camp overview */
.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  padding: 2rem 0;
}

.day-card {
  display: block;
  background: var(--white);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.day-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.day-card-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.day-card-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.day-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--dark);
}

.day-card p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.5;
}

/* Day nav - horizontal day selector (padding-top for fixed navbar) */
.day-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 5.5rem 1.5rem 1.25rem;
  justify-content: center;
  background: var(--white);
  border-bottom: 1px solid #e2e8f0;
}

.day-nav-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray);
  background: var(--light);
  transition: background 0.2s, color 0.2s;
}

.day-nav-link:hover {
  background: #e2e8f0;
  color: var(--dark);
}

.day-nav-link.active {
  background: var(--primary);
  color: white;
}

/* Day pager - prev/next */
.day-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  gap: 1rem;
  background: var(--light);
}

.day-pager-prev,
.day-pager-next {
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
}

.day-pager-prev:hover:not(.disabled),
.day-pager-next:hover:not(.disabled) {
  text-decoration: underline;
}

.day-pager .disabled {
  color: var(--gray);
  cursor: default;
}

/* Activity detail - for step-by-step instructions */
.activity-detail {
  margin: 1.25rem 0 0 0;
}

.activity-detail h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem 0;
}

.activity-detail ul,
.activity-detail ol {
  margin: 0;
  padding-left: 1.25rem;
}

.activity-detail li {
  margin-bottom: 0.35rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  list-style: none;
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 0.75rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary);
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--dark);
  color: var(--white);
}

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

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

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .module-page-header {
    padding: 5rem 1rem 1.5rem;
  }
  .section {
    padding: 2rem 0;
  }
}
