/* =====================================================
   designers.css — GMFL Designers & Portfolio Slider Overlay
   ===================================================== */

/* ----- Page Header & Decor ----- */
.page-header {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.4) 0%, rgba(8, 8, 8, 0.78) 60%, rgba(8, 8, 8, 0.98) 100%), 
              url('../images/slider1.jpg') center/cover no-repeat;
  padding: 6rem 2rem 4rem;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
}

.page-header-deco {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(4rem, 14vw, 12rem);
  font-weight: 900;
  letter-spacing: 0.25em;
  color: rgba(201,168,76,0.03);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header-breadcrumb {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.page-header-breadcrumb a {
  color: var(--gold, #c9a84c);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-header-breadcrumb a:hover {
  color: var(--white, #ffffff);
}

/* =====================================================
   FILTER & SEARCH BAR
   ===================================================== */
.designers-toolbar {
  max-width: 1280px;
  margin: 0 auto 3.5rem;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.designers-search-wrap {
  width: 100%;
  max-width: 540px;
  position: relative;
}

.designer-search-input {
  width: 100%;
  background: rgba(18, 16, 12, 0.8);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 4px;
  color: #ffffff;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 1rem 1.25rem 1rem 3.25rem;
  outline: none;
  transition: all 0.35s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.designer-search-input::placeholder {
  color: rgba(250,250,250,0.4);
  letter-spacing: 0.08em;
}

.designer-search-input:focus {
  border-color: rgba(201,168,76,0.7);
  background: rgba(25, 21, 14, 0.95);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15), 0 8px 30px rgba(0,0,0,0.5);
}

.designer-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(201,168,76,0.6);
  pointer-events: none;
  font-size: 1.1rem;
}

/* Specialty Filter Toolbar */
.designers-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 3.5rem;
  padding: 0 1rem;
}

.designers-filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem 0.9rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: rgba(250, 250, 250, 0.65);
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.55rem 1.25rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-pill:hover {
  color: #ffffff;
  border-color: rgba(201, 168, 76, 0.5);
  background: rgba(201, 168, 76, 0.1);
}

.filter-pill.active {
  background: #C9A84C;
  border-color: #C9A84C;
  color: #050505;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.4);
}

/* =====================================================
   DESIGNERS CARDS GRID (REDESIGNED LAYOUT)
   ===================================================== */
.designers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Luxury Designer Card Structure */
.designer-card {
  background: linear-gradient(160deg, #11100d 0%, #0a0907 100%);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.designer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(201,168,76,0.4), transparent 60%, rgba(201,168,76,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.designer-card:hover,
.designer-card.active {
  transform: translateY(-6px);
  border-color: rgba(201,168,76,0.55);
  box-shadow: 0 15px 35px rgba(0,0,0,0.8), 0 0 15px rgba(201,168,76,0.12);
}

.designer-card:hover::before,
.designer-card.active::before {
  opacity: 0.8;
}

/* Gold Corner Accents */
.designer-card-corners::before,
.designer-card-corners::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #c9a84c;
  border-style: solid;
  pointer-events: none;
  z-index: 5;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.designer-card-corners::before {
  top: 10px;
  left: 10px;
  border-width: 1px 0 0 1px;
}

.designer-card-corners::after {
  bottom: 10px;
  right: 10px;
  border-width: 0 1px 1px 0;
}

.designer-card:hover .designer-card-corners::before,
.designer-card:hover .designer-card-corners::after {
  opacity: 1;
}

/* Card Media / Portrait Frame */
.designer-card-media {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #14120e;
}

.designer-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
  filter: brightness(0.92) contrast(1.05);
}

.designer-card:hover .designer-card-img {
  transform: scale(1.06);
  filter: brightness(1) contrast(1.1);
}

/* Media Overlay Gradient */
.designer-card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,9,7,0.3) 0%,
    transparent 35%,
    rgba(10,9,7,0.85) 85%,
    #0a0907 100%
  );
  pointer-events: none;
}

/* Badges on Card Media */
.designer-card-top-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
}

.badge-featured {
  background: linear-gradient(135deg, #9A7A2E, #C9A84C);
  color: #080808;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.badge-looks-count {
  background: rgba(8, 8, 8, 0.75);
  border: 1px solid rgba(201,168,76,0.4);
  backdrop-filter: blur(6px);
  color: #C9A84C;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  margin-left: auto;
}

/* Card Content Details */
.designer-card-body {
  padding: 1.5rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  z-index: 3;
}

.designer-card-meta-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.tag-specialty {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c9a84c;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.tag-country {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.designer-card-name {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  line-height: 1.25;
  transition: color 0.3s ease;
}

.designer-card:hover .designer-card-name {
  color: #e8c97e;
}

.designer-card-bio {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  margin: 0 0 1.5rem;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Action Buttons Bar */
.designer-card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(201,168,76,0.12);
}

.btn-view-portfolio {
  background: linear-gradient(135deg, rgba(201,168,76,0.15) 0%, rgba(201,168,76,0.05) 100%);
  border: 1px solid rgba(201,168,76,0.4);
  color: #C9A84C;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.35s ease;
  width: 100%;
}

.btn-view-portfolio:hover {
  background: linear-gradient(135deg, #9A7A2E 0%, #C9A84C 100%);
  color: #080808;
  border-color: #C9A84C;
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

.btn-view-portfolio svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.btn-view-portfolio:hover svg {
  transform: scale(1.15);
}

.btn-designer-instagram {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  padding: 0.7rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-designer-instagram:hover {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.5);
  color: #C9A84C;
}

/* Empty search state */
.designers-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  color: rgba(255,255,255,0.5);
}

.designers-empty-state h3 {
  font-size: 1.5rem;
  color: #c9a84c;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

/* =====================================================
   OVERLAY IMAGE SLIDER GALLERY MODAL
   ===================================================== */
.designer-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(4, 4, 4, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.designer-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal Inner Box */
.designer-modal-container {
  width: 100%;
  max-width: 1100px;
  height: 92vh;
  background: linear-gradient(165deg, #0e0d0b 0%, #050504 100%);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.95), 0 0 40px rgba(201,168,76,0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform: scale(0.96) translateY(15px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.designer-modal-overlay.active .designer-modal-container {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.designer-modal-header {
  padding: 1.25rem 2rem;
  background: rgba(14, 13, 11, 0.9);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.modal-designer-info h2 {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
}

.modal-designer-info span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C9A84C;
}

.modal-header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.modal-slide-counter {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}

.modal-close-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.3);
  color: #C9A84C;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background: #C9A84C;
  color: #080808;
  transform: rotate(90deg);
  box-shadow: 0 0 15px rgba(201,168,76,0.4);
}

/* Modal Main Stage (Slider) */
.designer-modal-stage {
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.5rem;
  background: radial-gradient(circle at center, rgba(201,168,76,0.05) 0%, transparent 75%);
}

.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(10, 9, 7, 0.85);
  border: 1px solid rgba(201,168,76,0.4);
  color: #C9A84C;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.modal-nav-btn:hover {
  background: #C9A84C;
  color: #080808;
  border-color: #C9A84C;
  box-shadow: 0 0 25px rgba(201,168,76,0.5);
  transform: translateY(-50%) scale(1.08);
}

.modal-nav-prev { left: 1.5rem; }
.modal-nav-next { right: 1.5rem; }

/* Image Display Box */
.modal-image-wrapper {
  max-width: 85%;
  max-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 4px;
  padding: 8px;
  background: rgba(0,0,0,0.6);
  box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}

.modal-active-img {
  max-width: 100%;
  max-height: 48vh;
  object-fit: contain;
  border-radius: 2px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.modal-active-img.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

/* Modal Bottom Caption Box */
.designer-modal-caption {
  padding: 1rem 2rem;
  background: rgba(14, 13, 11, 0.95);
  border-top: 1px solid rgba(201,168,76,0.15);
  text-align: center;
}

.modal-look-title {
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0 0 0.3rem;
  text-transform: uppercase;
}

.modal-look-details {
  font-size: 0.85rem;
  color: #C9A84C;
  font-weight: 300;
  margin: 0;
  letter-spacing: 0.04em;
}

/* Modal Thumbnails Navigation Strip */
.designer-modal-thumbnails {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 1.5rem;
  background: #060605;
  border-top: 1px solid rgba(201,168,76,0.1);
  overflow-x: auto;
}

.modal-thumb {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  border: 2px solid rgba(201,168,76,0.2);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumb:hover {
  opacity: 0.85;
  border-color: rgba(201,168,76,0.6);
}

.modal-thumb.active {
  opacity: 1;
  border-color: #C9A84C;
  box-shadow: 0 0 12px rgba(201,168,76,0.4);
  transform: scale(1.08);
}

/* Prevents background page scrolling when modal is active */
body.modal-open {
  overflow: hidden;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1100px) {
  .designers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .designers-grid {
    grid-template-columns: 1fr;
    padding: 0 1.25rem;
  }

  .designer-card-media {
    height: 280px;
  }

  .designer-modal-container {
    height: 96vh;
  }

  .modal-image-wrapper {
    max-width: 96%;
    max-height: 44vh;
  }

  .modal-active-img {
    max-height: 40vh;
  }

  .modal-nav-prev { left: 0.5rem; }
  .modal-nav-next { right: 0.5rem; }
  
  .modal-nav-btn {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .designer-modal-header {
    padding: 1rem 1.2rem;
  }

  .modal-designer-info h2 {
    font-size: 1.05rem;
  }
}
