/* /fitplanner/assets/css/style.css */

/* --- KLEUREN GEBASEERD OP app_colors.dart (darkTheme) --- */
:root {
  /* Primary (voorgrond elementen, knoppen) */
  --color-primary: #fafafa;
  --color-on-primary: #333333;

  /* Surface (achtergronden) */
  --color-surface: #252525;
  --color-surface-rgb: 37, 37, 37;
  --color-card: #252525;
  --color-card-rgb: 37, 37, 37;

  /* Secondary (muted elementen) */
  --color-muted-foreground: #b3b3b3;

  /* Outline (randen) */
  --color-border: #444444;

  /* Font */
  --font-primary: 'Inter', sans-serif;
}

/* --- RESET & GLOBAL STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-surface);
  color: var(--color-primary);
  line-height: 1.6;
}

.container {
  max-width: 1200px; /* Iets breder voor meer ruimte */
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-primary);
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 4rem;
}

p {
  color: var(--color-muted-foreground);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* --- HEADER --- */
.main-header {
  padding: 40px 0 20px 0; /* More top padding */
  position: absolute;
  width: 100%;
  z-index: 100;
  text-align: center; /* Center all content */
}

.main-header .logo {
  display: block;
  width: 100%;
  max-width: 700px; /* Control max size */
  margin: 0 auto 25px auto; /* Center logo and add space below */
}

.main-header .logo img {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  display: block;
}

.main-header nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

/* --- BUTTONS --- */
.button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

.button-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.button-secondary:hover {
  background-color: var(--color-border);
  color: var(--color-primary);
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 250px; /* Increased padding to push content below the larger header */
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.hero-content {
  max-width: 800px;
  padding: 20px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

/* --- FEATURES SECTION --- */
.features-section {
  padding: 6rem 0;
}

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

.feature-card {
  background-color: var(--color-card);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

/* --- PRICING SECTION --- */
.pricing-section {
  padding: 6rem 0;
  background-color: #1a1a1a;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch; /* Make cards equal height */
}

.pricing-card {
  background-color: var(--color-card);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.pricing-card.pro {
  border-color: var(--color-primary);
  transform: scale(1.03);
}

.pricing-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.pricing-card .card-subtitle {
    margin-bottom: 1.5rem;
    color: var(--color-muted-foreground);
    min-height: 40px; /* Reserve space for subtitle */
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.pricing-features li {
  color: var(--color-muted-foreground);
  margin-bottom: 0.8rem;
}

/* NEW STYLES FOR PRICING HEADINGS */
.pricing-features .feature-heading {
    color: var(--color-primary);
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.pricing-features .feature-heading:first-child {
    margin-top: 0;
}
.pricing-features .feature-item {
    padding-left: 10px; /* Indent feature items under heading */
}


.pricing-card .button {
  width: 100%;
  margin-top: auto; /* Push button to the bottom */
}

/* NEW CLASS FOR PAGES WITH STATIC HEADER */
.page-layout {
    padding-top: 250px; /* Matches hero-section padding-top */
}


/* --- UPGRADE PAGE SECTION --- */
.support-section {
  padding: 6rem 0; /* Adjusted padding */
  text-align: center;
}


.user-id-display {
    background-color: var(--color-border);
    color: var(--color-primary);
    padding: 8px 15px;    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.small-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.upgrade-section .subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.price-display {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 3rem;
}

.price-display .price-label {
  display: block;
  font-size: 1rem;
  color: var(--color-muted-foreground);
}

.price-display .price {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-primary);
}

.instructions {
  text-align: left;
  margin-bottom: 3rem;
  background: rgba(var(--color-card-rgb), 0.5);
  padding: 20px 30px;
  border-radius: 12px;
}

.instructions h3 {
    margin-bottom: 1rem;
}

.instructions ol {
  padding-left: 20px;
  color: var(--color-muted-foreground);
}

.instructions ol li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.app-store-buttons-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.app-store-buttons-vertical p {
    margin-bottom: 5px;
}

/* --- SOCIAL PROOF & APP STORE SECTION --- */
.social-proof-section {
  background-color: #1a1a1a;
  padding: 6rem 0;
  border-top: 1px solid var(--color-border);
}

.app-store-buttons {
  display: flex;
  justify-content: center;
  align-items: center; /* DEZE REGEL IS ESSENTIEEL EN WORDT TERUGGEZET */
  gap: 20px;
  flex-wrap: wrap;
}

.app-store-button {
  display: inline-block;
  width: 150px; /* Stel een vaste breedte in voor beide knoppen */
  transition: opacity 0.3s ease;
}

.app-store-button img {
  width: 100%;    /* De afbeelding vult de breedte van de container */
  height: auto;   /* De hoogte past zich automatisch aan */
  display: block; /* Voorkomt extra witruimte onder de afbeelding */
}

.app-store-button:hover {
  opacity: 0.8;
}

/* --- FOOTER --- */
.main-footer {
  padding: 3rem 0;
  text-align: center;
  color: var(--color-muted-foreground);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-section {
      padding-top: 220px; /* Adjust for mobile */
  }

  .main-header {
      padding-top: 20px;
  }
  .main-header .logo {
      max-width: 90%;
      margin-bottom: 20px;
  }
  .main-header nav a {
      font-size: 0.9rem;
  }
  .main-header nav {
      gap: 15px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.pro {
    transform: none; /* Remove scale on mobile */
  }

  .app-store-buttons {
    flex-direction: column;
    align-items: center;
  }
}
/* ... (all previous CSS) ... */

/* --- SUPPORT PAGE SECTION --- */
.support-section {
  padding: 120px 0 6rem 0;
  text-align: center;
}

.support-section .subtitle {
  margin-bottom: 3rem;
}

.support-form {
  max-width: 500px;
  margin: 0 auto 4rem auto;
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background-color: rgba(var(--color-surface-rgb), 0.8);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-primary);
  font-size: 1rem;
  font-family: var(--font-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.support-form .button {
  width: 100%;
}

.faq-section {
    margin-top: 5rem;
    text-align: left;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item {
    background: rgba(var(--color-card-rgb), 0.5);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}


