/* css/artist.css */

.artist-container {
  max-width: 100%;
  margin: 140px auto 60px;
  padding: 0 2rem;
  /* Standard side padding */
  font-family: "Manrope", sans-serif;
  color: #1a1a1a;
}

/* Layout switching: Desktop restores original grid; Mobile shows accordions */
.artist-desktop-only {
  display: block;
}

.artist-mobile-only {
  display: none;
}

.artist-image-col {
  width: 100%;
  display: flex;
  align-items: stretch;
  height: auto;
}

.artist-main-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Desktop: original 3-column layout (image / intro / biography) */
.main-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.artist-intro-col {
  padding-top: 0;
}

.artist-bio-col {
  padding-top: 0;
}

.intro-statement {
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 0;
}

.bio-title {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-weight: 400;
  color: #333;
}

.bio-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
  /* Justify text as per typical editorial layouts */
}

.bio-text p {
  margin-bottom: 1.5rem;
}

/* Desktop: Video + Curriculum sections keep previous spacing */
.video-section {
  margin-bottom: 6rem;
}

.curriculum-section {
  max-width: 100%;
  margin-top: 5rem;
}

.curriculum-section + .curriculum-section {
  margin-top: 4rem;
}

.section-title {
  font-size: 2rem;
  margin: 0 0 4rem 0;
  padding-left: 0;
  font-weight: 500;
  color: #1a1a1a;
}

/* =========================================
   ARTIST ACCORDIONS (Sobre / Curriculum)
   Desktop: open + clean headings
   Mobile: toggle headers with chevrons (same UX as Agenda)
   ========================================= */
.artist-accordion-section {
  margin-top: 2.5rem;
}

.artist-accordion-title {
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 1.25rem 0;
  color: #1a1a1a;
}

.artist-accordion-toggle {
  display: none; /* mobile only */
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: none;
  background: #eeeeee;
  color: #1a1a1a;
  padding: 1.5rem 1.5rem;
  font-size: 2rem;
  font-weight: 500;
  cursor: pointer;
}

.artist-accordion-toggle .chev {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.artist-accordion-section.is-open .artist-accordion-toggle .chev {
  transform: rotate(180deg);
}

.artist-accordion-body {
  padding: 0;
}

.artist-about-block {
  margin-bottom: 2.5rem;
}

.artist-subtitle {
  font-size: 1.5rem;
  margin: 0 0 1.25rem 0;
  font-weight: 400;
  color: #333;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: #f0f0f0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  background: #f0f0f0;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.curriculum-list {
  list-style: none;
  padding: 0;
}

.cv-item {
  display: grid;
  /* 4 Columns: Title | Description | Year | Arrow */
  grid-template-columns: 1fr 2.5fr 80px 40px;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
  /* Increased vertical padding to match reference */
  border-bottom: 1px solid #eee;
  text-decoration: none;
  align-items: center;
  transition: background-color 0.2s;
  color: inherit;
  border-radius: 4px;
  /* Slight radius for hover block */
}

.cv-item:hover {
  background-color: #e0e0e0;
  /* Even darker grey */
}

.cv-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.cv-desc {
  font-size: 1rem;
  color: #4a4a4a;
  font-weight: 300;
}

.cv-year {
  font-size: 1rem;
  color: #666;
  text-align: right;
}

.cv-icon {
  display: flex;
  justify-content: flex-end;
  border-radius: 4px;
  /* Slight radius for hover block */
}

.cv-item:hover {
  background-color: #e0e0e0;
  /* Even darker grey */
}

.cv-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.cv-desc {
  font-size: 1rem;
  color: #4a4a4a;
  font-weight: 300;
}

.cv-year {
  font-size: 1rem;
  color: #666;
  text-align: right;
}

.cv-icon {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: #666;
  /* Match year color initially */
  transition: transform 0.3s ease, color 0.3s ease;
}

.cv-icon svg {
  width: 24px;
  /* Logically larger than 14px */
  height: 24px;
}

.cv-item:hover .cv-icon {
  transform: rotate(90deg);
  /* Rotate more down */
  color: #000;
}

/* Responsive */
@media (max-width: 900px) {
  .artist-container {
    margin-top: 100px;
    margin-bottom: 40px;
    padding: 0 20px;
  }

  .cv-item {
    grid-template-columns: 1fr auto;
    /* Stack title/desc, year/icon distinct? Or simple stack */
    grid-template-areas:
      "title year"
      "desc icon";
    gap: 0.5rem;
  }

  .cv-title {
    grid-area: title;
    font-weight: 700;
  }

  .cv-desc {
    grid-area: desc;
    color: #666;
    margin-top: 0.2rem;
  }

  .cv-year {
    grid-area: year;
  }

  .cv-icon {
    grid-area: icon;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Mobile accordion behavior (match Agenda breakpoint) */
@media (max-width: 768px) {
  /* 1. Remove extra space below header and above content image */
  .artist-container {
    margin-top: 0;
    padding: 0;
  }

  .artist-desktop-only {
    display: none;
  }

  .artist-mobile-only {
    display: block;
  }

  /* 2. Set image to full width */
  .artist-mobile-only .artist-image-col {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .artist-mobile-only .artist-main-image {
    width: 100%;
    max-width: 100%;
    display: block;
  }

  .artist-accordion-title {
    display: none; /* hide desktop title; show toggle */
  }

  /* 3. Set both accordion headers to full width with padding matching content */
  .artist-accordion-toggle {
    display: flex;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 1.5rem;
    margin-top: 20px;
    box-sizing: border-box;
  }

  /* 4. Create more space between image and first accordion */
  .artist-mobile-only .artist-accordion-section:first-of-type {
    margin-top: 3rem;
  }

  /* Add top padding to first accordion toggle to match spacing */
  .artist-mobile-only
    .artist-accordion-section:first-of-type
    .artist-accordion-toggle {
    padding-top: 1.5rem;
  }

  /* 3. Accordion content: 12px padding from left and right, otherwise full width */
  .artist-accordion-body {
    padding: 0 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .artist-accordion-section:not(.is-open) .artist-accordion-body {
    display: none;
  }

  .artist-accordion-section {
    margin-top: 0;
    width: 100%;
  }

  /* Ensure accordion sections have space between them */
  .artist-accordion-section + .artist-accordion-section {
    margin-top: 1.5rem;
  }

  /* Mobile typography: keep intro comfortable inside accordion */
  .intro-statement {
    font-size: 1.1rem;
    padding-top: 20px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
}
