/* About page styles - reuses modal styling for consistency */

.about-page {
  /* Darkened background overlay similar to modal backdrop */
  background: linear-gradient(
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.4)
  ), var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

#about-container {
  padding: 3rem 2rem;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}


/* Component styles - reuse modal patterns */
.component {
  margin-bottom: 2.5rem;
}

.component:last-child {
  margin-bottom: 0;
}

/* Hero component */
.component--hero .hero-header {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Media component */
.component--media {
  text-align: center;
}

.component--media img,
.component--media video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  /* Scale down profile images on desktop */
  max-width: min(60%, 600px);
}

/* On mobile, allow images to be larger */
@media (max-width: 767px) {
  .component--media img,
  .component--media video {
    max-width: 90%;
  }
}

.component--media .media-caption {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-style: italic;
  font-size: 0.9em;
}

/* Gallery styles */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.media-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.media-gallery img:hover {
  transform: scale(1.02);
}

/* Section component - mirrors modal sections exactly */
.component--section .section-heading {
  color: var(--primary);
  font-size: 2em;
  margin: 1.5em 0 0.8em 0;
  font-weight: 600;
}

.component--section .section-heading--h3 {
  font-size: 1.4em;
  margin: 1.5em 0 0.8em 0;
  color: var(--secondary);
}

.component--section .section-heading--h4 {
  font-size: 1.15em;
  margin: 1em 0 0.5em 0;
  color: var(--accent);
}

.component--section .section-heading--h5 {
  font-size: 1em;
  margin: 0.8em 0 0.4em 0;
  color: var(--secondary);
}

.component--section .section-heading--h6 {
  font-size: 0.9em;
  margin: 0.6em 0 0.3em 0;
  color: var(--primary);
}

.component--section:first-child .section-heading {
  margin-top: 0;
}

.component--section .section-content p {
  margin-bottom: 1.5em;
}

.component--section .section-content p:last-child {
  margin-bottom: 0;
}

/* List component - mirrors modal lists exactly */
.component--list .list-heading {
  color: var(--primary);
  font-size: 2em;
  margin: 1.5em 0 0.8em 0;
  font-weight: 600;
}

.component--list .list-heading--h3 {
  font-size: 1.4em;
  margin: 1.5em 0 0.8em 0;
  color: var(--secondary);
}

.component--list .list-heading--h4 {
  font-size: 1.15em;
  margin: 1em 0 0.5em 0;
  color: var(--accent);
}

.component--list .list-heading--h5 {
  font-size: 1em;
  margin: 0.8em 0 0.4em 0;
  color: var(--secondary);
}

.component--list .list-heading--h6 {
  font-size: 0.9em;
  margin: 0.6em 0 0.3em 0;
  color: var(--primary);
}

.component--list ul,
.component--list ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.component--list li {
  margin-bottom: 0.2em;
}

/* Quote component */
.component--quote {
  text-align: center;
  margin: 3rem 0;
}

.quote-text {
  font-size: 1.3em;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
}

.quote-text::before {
  content: '"';
  font-size: 2em;
  color: var(--accent);
}

.quote-text::after {
  content: '"';
  font-size: 2em;
  color: var(--accent);
}

.quote-attribution {
  color: var(--secondary);
  font-weight: 500;
}

/* Contact component */
.component--contact {
  text-align: center;
  background: var(--surface-elevated, var(--surface));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
}

.component--contact .contact-heading {
  color: var(--primary);
  font-size: 1.8em;
  margin-bottom: 1rem;
}

.component--contact .contact-button {
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: 1.5rem;
}

.component--contact .contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.component--contact .contact-cta {
  margin-top: 1rem;
  color: var(--secondary);
}

/* Text component */
.component--text p {
  margin-bottom: 1em;
}

.component--text p:last-child {
  margin-bottom: 0;
}

/* Tooltip styles moved to shared/css/text-formatting.css */

/* Tablet breakpoint */
@media (max-width: 1024px) {
  .component--hero .hero-title {
    font-size: 1.8em;
  }
}

/* Responsive adjustments - consistent with modal sizes */
@media (max-width: 767px) {
  #about-container {
    padding: 1rem;
  }

  .component--hero {
    flex-direction: column;
    align-items: center;
  }

  .component--hero .hero-title {
    font-size: 1.5em;
    text-align: center;
  }

  .component--hero .hero-subtitle {
    font-size: 1.4em; /* Back to modal size */
  }

  .component--section .section-heading,
  .component--list .list-heading {
    font-size: 1.5em; /* Match modal mobile h2 size */
  }

  .component--section .section-heading--h3,
  .component--list .list-heading--h3 {
    font-size: 1.4em; /* Keep h3 at standard size */
  }

  #about-container {
    padding: 1rem;
  }

  .close-button {
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

/* Mobile Landscape - Override to horizontal layout */
@media (max-width: 767px) and (orientation: landscape) {
  .component--hero {
    flex-direction: row;
    align-items: flex-start;
  }

  .component--hero .hero-title {
    text-align: left;
  }
}
