/* Powerwalking Club Ridderkerk - Site Styles */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Quicksand', 'Comic Neue', 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus states for accessibility */
a:focus,
button:focus {
  outline: 2px solid rgb(var(--c-primary));
  outline-offset: 2px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  border-radius: 16px;
  width: 95%;
  max-width: 1000px;
  max-height: 95vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: rgb(var(--c-primary));
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: rgb(var(--c-text));
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  min-height: 800px;
  border: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@media (max-width: 640px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-header h3 {
    font-size: 1.25rem;
  }

  .modal-body iframe {
    min-height: 500px;
  }
}

/* Prose content styles */
.prose {
  color: rgb(var(--c-text));
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0;
  padding-left: 1.5rem;
}

.prose li {
  margin: 0.5rem 0;
}

.prose strong {
  font-weight: 700;
  color: rgb(var(--c-primary-dark));
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: rgb(var(--c-primary));
  color: white;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.3);
}

.btn:hover {
  background: rgb(var(--c-primary-dark));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.btn:focus {
  outline: 2px solid rgb(var(--c-primary));
  outline-offset: 4px;
}

/* Video embed */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 14px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
}

/* Two-column layout with video */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.two-column-layout .prose {
  min-width: 0;
}

.video-sidebar {
  position: sticky;
  top: 2rem;
  align-self: center;
}

.video-container-small {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-container-small iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
}

/* Responsive adjustments */
@media (max-width: 968px) {
  .two-column-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .image-placeholder {
    min-height: 400px;
    position: static;
  }

  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .video-sidebar {
    position: static;
    order: -1;
  }

  .two-column-layout .prose {
    order: 1;
  }
}

@media (max-width: 640px) {
  .prose {
    font-size: 0.95rem;
  }

  .prose p {
    margin: 0 0 0.75rem;
  }

  .prose li {
    margin: 0.25rem 0;
  }

  .image-placeholder {
    min-height: 300px;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .section-card {
    padding: 1.25rem !important;
    border-radius: 12px !important;
  }

  .header-content h1 {
    font-size: 1.25rem !important;
  }

  .header-content p {
    font-size: 0.9rem;
  }

  /* Scale down all inline styled content to 75% */
  div[style*="font-size"] {
    font-size: 75% !important;
  }

  h2[style*="font-size"] {
    font-size: 1.875rem !important; /* 75% of 2.5rem */
  }

  h3[style*="font-size"] {
    font-size: 1.3125rem !important; /* 75% of 1.75rem */
  }

  p[style*="font-size"],
  ul[style*="font-size"],
  li[style*="font-size"] {
    font-size: 0.84375rem !important; /* 75% of 1.125rem */
  }

  p[style*="font-size:1.25rem"] {
    font-size: 0.9375rem !important; /* 75% of 1.25rem */
  }

  img[style*="width:120px"] {
    width: 90px !important; /* 75% of 120px */
    height: 90px !important; /* 75% of 120px */
  }

  .btn[style*="font-size:1.25rem"] {
    font-size: 0.9375rem !important; /* 75% of 1.25rem */
    padding: 0.75rem 1.875rem !important; /* 75% of original */
  }
}
