/* Parkode Website Styles */

:root {
  --primary: #00897B;
  --primary-dark: #00695C;
  --accent: #FF7043;
  --background: #FAFAFA;
  --text: #212121;
  --text-secondary: #757575;
  --divider: #E0E0E0;
  --white: #FFFFFF;
  --success: #4CAF50;
  --warning: #FFC107;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
}

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

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

a:hover {
  text-decoration: underline;
}

/* Header */
.header {
  padding: 16px 0;
  background: var(--white);
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--background) 100%);
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.tagline {
  font-size: 1.5rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.coming-soon {
  display: block;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Screenshot Carousel */
.screenshot-carousel {
  padding: 40px 0 60px;
  background: var(--background);
  overflow: hidden;
}

.carousel-track {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 620px;
  position: relative;
}

.carousel-slide {
  position: absolute;
  transition: all 0.5s ease;
  opacity: 0;
  transform: scale(0.7) translateX(0);
  z-index: 1;
}

.carousel-slide img {
  height: 580px;
  width: auto;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1) translateX(0);
  z-index: 3;
}

.carousel-slide.prev {
  opacity: 0.5;
  transform: scale(0.8) translateX(-320px);
  z-index: 2;
}

.carousel-slide.next {
  opacity: 0.5;
  transform: scale(0.8) translateX(320px);
  z-index: 2;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--divider);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  background: var(--text-secondary);
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* How It Works Section */
.how-it-works {
  padding: 80px 0;
  background: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 24px 20px;
  background: var(--background);
  border-radius: 16px;
  position: relative;
  flex: 1;
  max-width: 280px;
}

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

.step h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.step p {
  font-size: 0.95rem;
}

.step-arrow {
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--primary);
  z-index: 1;
}

/* Features Section */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--divider);
}

.feature-icon {
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.feature h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.feature p {
  font-size: 0.875rem;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  text-align: center;
  background: var(--white);
}

.cta h2 {
  margin-bottom: 24px;
}

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

.footer-love {
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Download Page */
.download-page {
  padding: 80px 0;
  min-height: calc(100vh - 200px);
}

.download-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 700px;
  margin: 0 auto 48px;
}

.download-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  border: 2px solid var(--divider);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.download-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.download-card.disabled {
  opacity: 0.6;
}

.download-card.disabled:hover {
  border-color: var(--divider);
  box-shadow: none;
}

.platform-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.download-card h3 {
  margin-bottom: 8px;
}

.download-card .version {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.instructions {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--divider);
}

.instructions h3 {
  margin-bottom: 16px;
}

.instructions ol {
  margin-left: 20px;
}

.instructions li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* Deep Link Page */
.deep-link-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.loading {
  margin-bottom: 24px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--divider);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.runner-card {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 24px 48px;
  margin: 24px 0;
}

.runner-card .name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.runner-card .id {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.fallback {
  display: none;
}

.fallback.show {
  display: block;
}

.fallback p {
  margin-bottom: 16px;
}

/* Privacy Page */
.privacy-page {
  padding: 60px 0;
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px;
  border-radius: 16px;
}

.privacy-content h1 {
  margin-bottom: 8px;
}

.privacy-content .updated {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.privacy-content h2 {
  margin-top: 32px;
  font-size: 1.25rem;
}

.privacy-content p, .privacy-content ul {
  margin-bottom: 16px;
}

.privacy-content ul {
  margin-left: 24px;
}

.privacy-content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* Content Page (Changelog, etc.) */
.content-page {
  padding: 60px 0;
}

.content-page .container {
  max-width: 800px;
  background: var(--white);
  padding: 48px;
  border-radius: 16px;
}

.content-page h1 {
  margin-bottom: 32px;
  color: var(--primary);
}

.changelog-entry {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--divider);
}

.changelog-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.changelog-entry h2 {
  color: var(--text);
  margin-bottom: 4px;
}

.changelog-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.changelog-entry h3 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--text);
}

.changelog-entry ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

.changelog-entry li {
  margin-bottom: 6px;
  color: var(--text-secondary);
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

/* Mobile Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero, .how-it-works, .features, .cta {
    padding: 48px 0;
  }

  .nav-links {
    display: none;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .step {
    padding: 24px 16px;
    max-width: 100%;
  }

  .step-arrow {
    display: none;
  }

  .privacy-content {
    padding: 24px;
  }

  /* Carousel mobile */
  .carousel-track {
    height: 400px;
  }

  .carousel-slide img {
    height: 350px;
  }

  .carousel-slide.prev {
    transform: scale(0.7) translateX(-180px);
    opacity: 0.3;
  }

  .carousel-slide.next {
    transform: scale(0.7) translateX(180px);
    opacity: 0.3;
  }
}
