/* ========================================
   Page-Specific Styles
   Bio, Exhibitions, Books, Lighting, Detail pages
   ======================================== */

/* ========================================
   Bio Page
   ======================================== */
main.bio-main {
  min-height: 100vh;
  padding: 8rem 4rem 4rem;
  display: flex;
  align-items: center;
}

.bio-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
}

.bio-text {
  max-width: 500px;
}

.bio-text h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.bio-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 1.5rem;
}

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

.bio-contact {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.copy-email {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.copy-email .email-text {
  color: #1a1a2e;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.copy-email .copy-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.55);
  transition: color 0.2s ease;
  position: relative;
  top: -0.05em;
}

.copy-email:hover .copy-label {
  color: #1a1a2e;
}

.copy-email.copied .copy-label {
  color: #2e7d32;
}

.bio-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 5.5rem;
}

.bio-image img {
  width: 100%;
  max-width: 450px;
  height: auto;
  transition: filter 0.4s ease, opacity 0.4s ease;
  object-fit: cover;
  border-radius: 2.5rem;
}

.bio-image:hover img {
  filter: grayscale(100%);
}

/* ========================================
   List Pages (Exhibitions, Books, Lighting)
   ======================================== */
main.list-main {
  min-height: 100vh;
  padding: 10rem 4rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 4rem;
  letter-spacing: 0.02em;
  max-width: 800px;
}

.detail-main .page-title {
  margin-bottom: 2rem;
}

/* Exhibitions List */
.exhibitions-list,
.books-list {
  list-style: none;
}

.exhibitions-list li,
.books-list li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.exhibition-item,
.exhibitions-list a,
.books-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.25rem 0;
  text-decoration: none;
  color: #1a1a2e;
  transition: opacity 0.2s ease;
}

.exhibitions-list a:hover,
.books-list a:hover {
  opacity: 1;
}

.exhibition-name,
.book-title {
  position: relative;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.exhibition-name::after,
.book-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: #1a1a2e;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.exhibitions-list a:hover .exhibition-name::after,
.books-list a:hover .book-title::after {
  transform: scaleX(1);
  transform-origin: left;
}

.exhibition-meta,
.book-meta {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.6);
  letter-spacing: 0.02em;
  text-align: right;
}

/* Lighting Page - Categorized List */
main.lighting-list-main {
  min-height: 100vh;
  padding: 10rem 4rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.lighting-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.category-section {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.projects-list {
  list-style: none;
}

.projects-list li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.projects-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  text-decoration: none;
  color: #1a1a2e;
  transition: opacity 0.2s ease;
}

.projects-list a:hover {
  opacity: 1;
}

.project-name {
  position: relative;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.project-name::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: #1a1a2e;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.projects-list a:hover .project-name::after {
  transform: scaleX(1);
  transform-origin: left;
}

.project-meta {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.02em;
  text-align: right;
}

/* ========================================
   Detail Pages (Exhibition, Book, Lighting)
   ======================================== */
main.detail-main {
  min-height: 100vh;
  padding: 10rem 4rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
}

.detail-text {
  max-width: 500px;
}

.detail-text h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.detail-meta {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.detail-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 1.5rem;
}

.detail-info {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.detail-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.75rem;
  gap: 1.5rem;
}

.detail-label {
  width: 80px;
  flex-shrink: 0;
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.detail-value {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.7);
}

/* Detail Images */
.detail-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-images img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.image-caption {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.55);
  margin-top: 0.5rem;
  text-align: right;
}

/* Project Images with Caption */
.project-images {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.image-wrapper {
  position: relative;
}

.image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
  background: #e8e8e8;
  transition: opacity 0.4s ease;
}

.image-wrapper .image-caption {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.55);
  font-style: italic;
}

/* Book Cover Placeholder */
.book-cover {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.book-cover-placeholder {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.3);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ========================================
   Project Navigation (Prev/Next)
   ======================================== */
.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  max-width: 1200px;
}

.project-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.project-nav a:hover {
  color: #1a1a2e;
}

.project-nav .nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.55);
  display: block;
  margin-bottom: 0.25rem;
}

.project-nav .nav-title {
  display: inline;
  position: relative;
  font-size: 1.1rem;
}

.project-nav .nav-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: #1a1a2e;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.project-nav a:hover .nav-title::after {
  transform: scaleX(1);
  transform-origin: left;
}

.project-nav .prev {
  text-align: left;
}

.project-nav .next {
  text-align: right;
  margin-left: auto;
}

.project-nav svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ========================================
   Responsive - Pages
   ======================================== */
@media (max-width: 1024px) {
  main.bio-main {
    padding: 6rem 2.5rem 3rem;
  }

  .bio-container {
    gap: 3rem;
  }

  .bio-text h1 {
    font-size: 2rem;
  }

  .detail-container {
    gap: 3rem;
  }

  .detail-text h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  main.bio-main {
    padding: 6rem 1.5rem 2rem;
    align-items: flex-start;
  }

  .bio-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bio-text {
    order: 2;
    max-width: 100%;
  }

  .bio-image {
    order: 1;
    padding-top: 0;
  }

  .bio-image img {
    max-width: 100%;
  }

  .bio-text h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .bio-text p {
    font-size: 0.95rem;
  }

  /* List pages */
  main.list-main,
  main.lighting-list-main {
    padding: 7rem 1.5rem 2rem;
  }

  .lighting-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-title {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
  }

  .exhibition-item,
  .exhibitions-list a,
  .books-list a {
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0;
  }

  .exhibition-meta,
  .book-meta {
    text-align: left;
    font-size: 0.8rem;
  }

  .category-section {
    margin-bottom: 3rem;
  }

  .projects-list a {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 0;
  }

  .project-meta {
    text-align: left;
    font-size: 0.75rem;
  }

  /* Detail pages */
  main.detail-main {
    padding: 7rem 1.5rem 2rem;
  }

  .detail-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .detail-text {
    max-width: 100%;
  }

  .detail-text h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
  }

  .detail-text p {
    font-size: 0.95rem;
  }

  .book-cover {
    order: -1;
  }

  .book-cover-placeholder {
    max-width: 250px;
  }

  .project-images {
    gap: 1.5rem;
  }

  .bio-image img {
    border-radius: 1.5rem;
  }

}

@media (max-width: 480px) {
  /* Project nav: stack on small mobile - forward on top, back on bottom */
  .project-nav {
    flex-direction: column-reverse;
    gap: 1.5rem;
    align-items: stretch;
  }

  .project-nav .next {
    text-align: left;
    margin-left: 0;
  }
}

/* ========================================
   Dark Theme Overrides - List & Detail Pages
   ======================================== */
body.theme-dark .page-title {
  color: #fff;
}

body.theme-dark .exhibitions-list li,
body.theme-dark .books-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-dark .exhibition-item,
body.theme-dark .exhibitions-list a,
body.theme-dark .books-list a {
  color: #fff;
}

body.theme-dark .exhibition-name::after,
body.theme-dark .book-title::after {
  background: #fff;
}

body.theme-dark .exhibition-meta,
body.theme-dark .book-meta {
  color: rgba(255, 255, 255, 0.6);
}

body.theme-dark .projects-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.theme-dark .projects-list a {
  color: #fff;
}

body.theme-dark .project-name::after {
  background: #fff;
}

body.theme-dark .project-meta {
  color: rgba(255, 255, 255, 0.55);
}

body.theme-dark .category-title {
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark theme - Bio page */
body.theme-dark .bio-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: text-decoration-color 0.2s ease;
}

body.theme-dark .bio-text a:hover {
  text-decoration-color: #fff;
}

body.theme-dark .bio-text p {
  color: rgba(255, 255, 255, 0.7);
}

body.theme-dark .bio-contact {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-dark .copy-email .email-text {
  color: #fff;
}

body.theme-dark .copy-email .copy-label {
  color: rgba(255, 255, 255, 0.55);
}

body.theme-dark .copy-email:hover .copy-label {
  color: #fff;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-layout .bio-container {
  grid-template-columns: 1fr;
  max-width: 600px;
}

.contact-layout .bio-text {
  max-width: 100%;
}

.contact-name {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  color: inherit;
}

.contact-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-social a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.contact-social a:hover {
  color: #fff;
}

.contact-social .social-label {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ========================================
   Category Landing Pages
   ======================================== */
main.category-landing-main {
  min-height: 100vh;
  padding: 10rem 4rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2rem;
}

.project-cards:has(.project-card--horizontal) {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.project-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card-image {
  border-radius: 2.5rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #e8e8e8;
}

.project-card-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-card-image img {
  transform: scale(1.03);
}

.project-card-info {
  padding: 1.25rem 0.5rem 0;
}

.project-card-info h2 {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.project-card-info p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 0.75rem;
}

.project-card-info p:last-of-type {
  margin-bottom: 0;
}

.project-card-info blockquote {
  margin: 1rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(0, 0, 0, 0.15);
}

.project-card-info blockquote p {
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 0.5rem;
}

.project-card-info blockquote cite {
  font-size: 0.8rem;
  font-style: normal;
  color: rgba(0, 0, 0, 0.55);
}

/* Horizontal Project Card Variant */
.project-card--horizontal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 2.5rem;
  overflow: hidden;
}

.project-card--horizontal .project-card-image,
.project-card--horizontal .project-card-placeholder {
  border-radius: 0;
  aspect-ratio: auto;
  min-height: 300px;
}

.project-card--horizontal .project-card-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  order: -1;
  background: rgba(255, 255, 255, 0.5);
  padding: 2.5rem;
}

.card-cta {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.55);
  position: relative;
  display: inline-block;
  align-self: flex-start;
}

.card-cta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: #1a1a2e;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.project-card:hover .card-cta {
  color: #1a1a2e;
}

.project-card:hover .card-cta::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Coming Soon Empty State */
.coming-soon {
  border: 1px dashed rgba(0, 0, 0, 0.2);
  border-radius: 2.5rem;
  padding: 3rem 2rem;
  text-align: center;
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Placeholder Card Image */
.project-card-placeholder {
  border-radius: 2.5rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.3);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  main.category-landing-main {
    padding: 7rem 1.5rem 2rem;
  }

  .project-cards {
    grid-template-columns: 1fr;
  }

  .project-card-image,
  .project-card-placeholder {
    border-radius: 1.5rem;
  }

  .project-card--horizontal {
    grid-template-columns: 1fr;
    border-radius: 1.5rem;
  }

  .project-card--horizontal .project-card-info {
    padding: 1.5rem;
    order: initial;
  }

  .coming-soon {
    border-radius: 1.5rem;
  }
}

/* ========================================
   Illustration — Under Construction
   ======================================== */
main.illustration-coming-soon {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
}

.coming-soon-content {
  text-align: center;
  max-width: 400px;
}

.coming-soon-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  border-radius: 1.5rem;
  overflow: hidden;
}

.coming-soon-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coming-soon-content h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.coming-soon-content > p {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.45);
  letter-spacing: 0.02em;
  margin: 0 0 3rem;
}

.coming-soon-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.coming-soon-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, background 0.3s;
}

.coming-soon-link:hover {
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.02);
}

.coming-soon-link svg {
  flex-shrink: 0;
  opacity: 0.4;
  order: 3;
  margin-left: auto;
}

.coming-soon-link-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.55);
  display: block;
}

.coming-soon-link-title {
  font-size: 1rem;
  font-weight: 400;
  display: block;
}

@media (max-width: 768px) {
  main.illustration-coming-soon {
    padding: 7rem 1.5rem 2rem;
  }

  .coming-soon-content h1 {
    font-size: 2rem;
  }
}

/* Related content links */
.related-link {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.related-link a {
  color: inherit;
  opacity: 0.6;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.related-link a:hover {
  opacity: 1;
}

/* Bio call-to-action */
.bio-cta {
  margin-top: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.bio-cta a {
  color: inherit;
  opacity: 0.6;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.bio-cta a:hover {
  opacity: 1;
}

/* Portfolio link on contact page */
.portfolio-link {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.portfolio-link a {
  color: inherit;
  opacity: 0.6;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.portfolio-link a:hover {
  opacity: 1;
}

