/* ================================================
   about.css - About Page Styles
   KOD Müzik Website - Archival Statement
   
   Pure typographic treatment on black
   ================================================ */

/* About Page Container
   ================================================ */
.about-container {
  min-height: 100vh;
  /* Align top and left with .main-content (no extra horizontal padding) */
  padding: 0 0 80px;
}

/* Content Column
   ================================================ */
.about-content {
  max-width: 70ch;
  /* Align left edge with Events header position */
  margin-left: 0;
  margin-right: auto;
}

/* Typography
   ================================================ */
.about-title {
  font-family: var(--font-display);
  /* Match Events header size */
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 60px;
}

.about-text {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  color: #f5f5f5;
}

.about-text p {
  margin-bottom: 2rem;
}

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

/* Circular Media Button (Stop to Play Animation)
   ================================================ */
:root {
  --btn-size: 48px;
  --btn-outline: rgba(255, 255, 255, 0.3);
  --btn-fill: #ffffff;
  --sweep-duration: 2s;
  --icon-scale: 0.28;
}

@property --sweep {
  syntax: "<number>";
  initial-value: 0;
  inherits: false;
}

.journey-link-container {
  margin-top: 3rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.media-button {
  position: relative;
  width: var(--btn-size);
  height: var(--btn-size);
  flex-shrink: 0; /* Prevent flex compression */
  aspect-ratio: 1; /* Enforce square aspect ratio */
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease;
  box-shadow: inset 0 0 0 1px var(--btn-outline);
  overflow: hidden;
}

.media-button::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--btn-fill) calc(var(--sweep, 0) * 1deg),
    transparent calc(var(--sweep, 0) * 1deg)
  );
  z-index: 1;
  pointer-events: none;
  transition: --sweep var(--sweep-duration) cubic-bezier(0.22, 1, 0.36, 1);
}

.media-button:hover::before,
.media-button:focus-visible::before {
  --sweep: 360;
}

.media-button-icon {
  position: relative;
  width: calc(var(--btn-size) * var(--icon-scale));
  height: calc(var(--btn-size) * var(--icon-scale));
  background: white;
  z-index: 2;
  mix-blend-mode: difference;
  clip-path: inset(0 round 2px);
  transition: clip-path 0ms linear;
}

.media-button:hover .media-button-icon,
.media-button:focus-visible .media-button-icon {
  clip-path: polygon(18% 10%, 18% 90%, 88% 50%);
}

.media-button:active {
  transform: scale(0.98);
}

.media-button:focus-visible {
  outline: 2px solid var(--btn-fill);
  outline-offset: 4px;
}

.journey-text {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .media-button::before {
    transition: none;
  }

  .media-button:hover::before,
  .media-button:focus-visible::before {
    --sweep: 360;
  }

  .media-button-icon {
    transition: none;
  }
}

/* Lightbox Overlay
   ================================================ */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  position: relative;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-container {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  transform: rotate(90deg);
}

.lightbox-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.lightbox-content {
  padding: 40px;
  overflow-y: auto;
  max-height: calc(90vh - 80px);
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-text {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245, 245, 245, 0.95);
}

.lightbox-text p {
  margin-bottom: 1.5rem;
}

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

/* Custom Scrollbar for Lightbox
   ================================================ */
.lightbox-content::-webkit-scrollbar {
  width: 8px;
}

.lightbox-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.lightbox-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.lightbox-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Responsive
   ================================================ */
@media (max-width: 768px) {
  .about-container {
    /* Align with .main-content mobile padding (no extra horizontal padding) */
    padding: 0 0 60px;
  }

  .about-content {
    max-width: 100%;
  }

  .about-title {
    /* Keep in sync with Events header */
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: calc(
      2.5rem - 38px
    ); /* FIX: Add this line for mobile alignment */
    margin-bottom: 40px;
  }

  .about-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Journey Link Mobile */
  .journey-link-container {
    margin-top: 2rem;
    margin-bottom: 0;
  }

  .media-button {
    --btn-size: 40px; /* Smaller on mobile */
  }

  .journey-text {
    font-size: 0.9rem;
  }

  /* Lightbox Mobile */
  .lightbox-container {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }

  .lightbox-content {
    padding: 30px 20px;
    max-height: calc(100vh - 60px);
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
  }

  .lightbox-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1.5rem;
  }

  .lightbox-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .lightbox-text p {
    margin-bottom: 1.25rem;
  }
}

/* Focus States for Dark Background
   ================================================ */
.about-container a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

/* Ensure skip link is visible on dark background */
.skip-to-content:focus {
  background-color: #ffffff;
  color: #000000;
}
