/**
 * COVERFLOW LAYOUT — Viewing Room
 * Galeria Leme — SP-Arte 2026
 *
 * Arquivo: coverflow.css
 * Destino: wp-content/themes/galerialeme/assets/css/coverflow.css
 * Enqueue: via functions.php (apenas em single-viewing_room)
 */

/* ============================================ */
/* ARTIST SECTION (container por artista)       */
/* ============================================ */
.artist-section--coverflow {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 40px 0;
  border-bottom: 1px solid #c5c5c0;
}

.artist-section--coverflow .artist-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.artist-section--coverflow .artist-top h2 {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============================================ */
/* COVERFLOW CAROUSEL                           */
/* ============================================ */
.coverflow {
  position: relative;
  width: 100%;
  height: 480px;
  perspective: 1200px;
  overflow: hidden;
}
.coverflow--tall {
  height: 580px;
}
.coverflow--short {
  height: 420px;
}

.coverflow-track {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.coverflow-slide {
  position: absolute;
  width: 320px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  text-align: center;
}

.coverflow-slide img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.coverflow-slide .slide-info {
  margin-top: 12px;
  transition: opacity 0.4s;
}
.coverflow-slide .slide-title {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}
.coverflow-slide .slide-desc {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}
.coverflow-slide .slide-disponivel {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  background: #333;
  color: #fff;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
}

/* ============================================ */
/* SLIDE POSITIONS (data-pos attribute)         */
/* ============================================ */
.coverflow-slide[data-pos="0"] {
  z-index: 10;
  transform: translate(-50%, -50%) translateZ(0) scale(1);
  opacity: 1;
}
.coverflow-slide[data-pos="-1"] {
  z-index: 5;
  transform: translate(-50%, -50%) translateX(-340px) translateZ(-150px) rotateY(25deg) scale(0.85);
  opacity: 0.7;
}
.coverflow-slide[data-pos="1"] {
  z-index: 5;
  transform: translate(-50%, -50%) translateX(340px) translateZ(-150px) rotateY(-25deg) scale(0.85);
  opacity: 0.7;
}
.coverflow-slide[data-pos="-2"] {
  z-index: 2;
  transform: translate(-50%, -50%) translateX(-580px) translateZ(-300px) rotateY(35deg) scale(0.7);
  opacity: 0.4;
}
.coverflow-slide[data-pos="2"] {
  z-index: 2;
  transform: translate(-50%, -50%) translateX(580px) translateZ(-300px) rotateY(-35deg) scale(0.7);
  opacity: 0.4;
}
.coverflow-slide[data-pos="3"],
.coverflow-slide[data-pos="-3"] {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

/* Hide info on non-center slides */
.coverflow-slide:not([data-pos="0"]) .slide-info {
  opacity: 0;
}
.coverflow-slide:not([data-pos="0"]) img {
  filter: brightness(0.85);
}

/* ============================================ */
/* CAROUSEL NAV ARROWS                          */
/* ============================================ */
.coverflow-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #555;
  z-index: 20;
  transition: all 0.2s;
}
.coverflow-nav:hover {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.coverflow-nav--left { left: 20px; }
.coverflow-nav--right { right: 20px; }

/* ============================================ */
/* DOTS                                         */
/* ============================================ */
.coverflow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.coverflow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s;
}
.coverflow-dot.active {
  background: #555;
  width: 24px;
  border-radius: 4px;
}

/* ============================================ */
/* BTN VER TODAS                                */
/* ============================================ */
.btn-ver-todas {
  display: inline-block;
  padding: 10px 28px;
  background: transparent;
  color: #555;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid #aaa;
  transition: all 0.2s;
  margin-top: 16px;
}
.btn-ver-todas:hover {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* ============================================ */
/* EXPANDED SECTION                             */
/* ============================================ */
.artist-expanded {
  display: none;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #ddd;
}
.artist-expanded.active {
  display: block;
}

.btn-fechar {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 20px;
  background: transparent;
  border: 1px solid #999;
  color: #666;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}
.btn-fechar:hover {
  border-color: #333;
  color: #333;
}

/* ============================================ */
/* OBRA CARDS (expanded grid — estilo mockup)   */
/* ============================================ */
.obras-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 50px 40px;
  justify-content: center;
  padding: 10px 0;
  margin-bottom: 60px !important;
  padding-bottom: 60px;
  border-bottom: 1px solid #ddd;
}
.obras-grid:last-of-type {
  margin-bottom: 0 !important;
  padding-bottom: 0;
  border-bottom: none;
}
.obras-grid--one .obra-card { width: 100%; max-width: 700px; }
.obras-grid--two .obra-card { width: calc(50% - 25px); }
.obras-grid--three .obra-card { width: calc(33.33% - 30px); }

.obra-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  padding: 0;
  text-align: center;
}
.obra-card img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.obra-card img:hover {
  transform: scale(1.02);
}
.obra-card__info {
  margin-top: 18px;
  text-align: left;
  padding: 0 4px;
}
.obra-card__info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.obra-card__desc {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  line-height: 1.7;
}
.obra-card .btn--disponivel {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 24px;
  background: #333;
  color: #fff;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.obra-card .btn--disponivel:hover { background: #555; }
.obra-card .sold-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 24px;
  background: #999;
  color: #fff;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ============================================ */
/* LIGHTBOX / VISUALIZADOR DE OBRA              */
/* IMPORTANTE: fundo CLARO (cor do site)        */
/* ============================================ */
.cf-lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(218,218,213,0.97);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.cf-lightbox-overlay.active { display: flex; }

.cf-lightbox-content {
  display: flex;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  gap: 40px;
  align-items: center;
}
.cf-lightbox-image {
  flex: 1;
  max-width: 60%;
  text-align: center;
}
.cf-lightbox-image img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
}

.cf-lightbox-details {
  flex: 0 0 320px;
  color: #333;
  max-height: 85vh;
  overflow-y: auto;
}
.cf-lightbox-details h2 {
  font-size: 14px;
  font-weight: 400;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.cf-lightbox-details h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.3;
}
.cf-lightbox-details .detail-row {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
  line-height: 1.5;
}
.cf-lightbox-details .detail-label {
  color: #999;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 16px;
  margin-bottom: 4px;
}
.cf-lightbox-details .price {
  font-size: 20px;
  font-weight: 500;
  color: #333;
  margin-top: 20px;
}

/* LIGHTBOX CLOSE */
.cf-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #333;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  z-index: 1001;
}

/* LIGHTBOX NAV ARROWS */
.cf-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.8);
  border: 1px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #333;
  z-index: 1002;
  transition: all 0.2s;
}
.cf-lightbox-nav:hover {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.cf-lightbox-nav--prev { left: 20px; }
.cf-lightbox-nav--next { right: 20px; }

/* LIGHTBOX FORM (CF7 integration) */
.cf-lightbox-details .btn-interesse {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: #d9ed09;
  color: #333;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  border: none;
  cursor: pointer;
  margin-top: 24px;
  font-family: inherit;
  transition: background 0.2s;
}
.cf-lightbox-details .btn-interesse:hover { background: #c8dc08; }

.cf-lightbox-form {
  display: none;
  margin-top: 20px;
}
.cf-lightbox-form.active { display: block; }

/* Style CF7 form inside lightbox */
.cf-lightbox-form .wpcf7-form-control:not([type="hidden"]):not([type="submit"]) {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
  font-family: inherit;
  font-size: 13px;
  border-radius: 2px;
}
.cf-lightbox-form .wpcf7-form-control::placeholder { color: #aaa; }
.cf-lightbox-form textarea.wpcf7-form-control { height: 80px; resize: none; }
.cf-lightbox-form input[type="submit"],
.cf-lightbox-form .wpcf7-submit {
  display: block;
  width: 100%;
  padding: 12px;
  background: #d9ed09;
  color: #333;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Hide CF7 elements we don't need in lightbox */
.cf-lightbox-form .wpcf7-response-output {
  font-size: 12px;
  margin-top: 10px;
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */
@media (max-width: 760px) {
  .coverflow-slide { width: 220px; }
  .coverflow-slide[data-pos="-1"] {
    transform: translate(-50%, -50%) translateX(-200px) translateZ(-100px) rotateY(20deg) scale(0.85);
  }
  .coverflow-slide[data-pos="1"] {
    transform: translate(-50%, -50%) translateX(200px) translateZ(-100px) rotateY(-20deg) scale(0.85);
  }
  .artist-section--coverflow .artist-top {
    flex-direction: column;
  }
  .obras-grid--one .obra-card,
  .obras-grid--two .obra-card,
  .obras-grid--three .obra-card { width: 100%; max-width: none; }
  .cf-lightbox-content { flex-direction: column; gap: 20px; }
  .cf-lightbox-image { max-width: 100%; }
  .cf-lightbox-details { flex: none; width: 100%; }
}
