/* ============================================================
   VICTORIA KERAMIK — CATALOGUES & TECHNICAL RESOURCES
   Layout: Reference Screenshot Cards Grid (Portrait Covers)
   Buttons: Dual Action (Icon + Download & Icon + View)
   ============================================================ */

/* ── Category Filter Bar ───────────────────────────────────── */
.catalogues-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-3xl);
}

.catalogues-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  color: var(--color-navy);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.catalogues-filter-chip:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
  transform: translateY(-2px);
}

.catalogues-filter-chip--active {
  background: var(--color-navy);
  border-color: var(--color-gold);
  color: var(--color-gold) !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(10, 22, 40, 0.25);
}

.catalogues-filter-chip i {
  color: var(--color-gold);
}


/* ── Catalogue Cards Grid (Reference Image Layout) ─────────── */
.catalogues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: var(--space-xl);
}

.catalogue-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 16px 16px 20px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.catalogue-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  border-color: rgba(201, 168, 76, 0.45);
}

/* Portrait & Landscape Exhibition Cover Wrap */
.catalogue-card__cover-wrap {
  position: relative;
  height: 290px;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #edf1f6 100%);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid rgba(10, 22, 40, 0.06);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.03);
}

.catalogue-card__cover {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(10, 22, 40, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.catalogue-card:hover .catalogue-card__cover {
  transform: translateY(-4px) scale(1.035);
  box-shadow: 0 18px 36px rgba(10, 22, 40, 0.24), 0 4px 10px rgba(0, 0, 0, 0.12);
}

.catalogue-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  background: linear-gradient(135deg, #0A1628 0%, #152238 100%);
  padding: 24px;
  text-align: center;
}

.catalogue-card__placeholder i {
  font-size: 3.5rem;
  margin-bottom: 12px;
  color: var(--color-gold);
}

.catalogue-card__placeholder span {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Card Top Bar (Category Badge on Left, Dimension/Series Badge on Right) — STRICTLY HORIZONTAL (AADA) */
.catalogue-card__top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
}

/* Category Badge (Left) */
.catalogue-card__badge {
  display: inline-flex;
  align-items: center;
  background: #0A1628;
  color: var(--color-gold);
  border: 1px solid rgba(201, 168, 76, 0.45);
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  white-space: nowrap !important;
  flex-shrink: 0;
}

/* Dimension / Series Pill (Right) */
.catalogue-card__series-badge {
  display: inline-flex;
  align-items: center;
  background: #edf2f7;
  color: #1a273b;
  border: 1px solid #cbd5e1;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  white-space: nowrap !important;
  flex-shrink: 0;
}

/* Card Body & Title */
.catalogue-card__body {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.catalogue-card__title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 18px 0;
  line-height: 1.35;
  min-height: 2.7em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.catalogue-card:hover .catalogue-card__title {
  color: var(--color-gold-dark, #a87e2b);
}

.catalogue-card__desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #556477;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.9em;
}

.catalogue-card__meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.catalogue-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  font-weight: 600;
  color: #586980;
  background: #f1f4f8;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  padding: 3px 10px;
}

.catalogue-meta-pill i {
  color: var(--color-gold-dark, #b8860b);
  font-size: 0.74rem;
}

/* Dual Action Buttons Row (Reference Screenshot Style) */
.catalogue-card__actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

.btn-catalogue {
  flex: 1;
  height: 44px;
  border-radius: 8px;
  background: #181818;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-catalogue i:first-child {
  font-size: 0.88rem;
  color: var(--color-gold);
  transition: transform 0.2s ease;
}

.btn-catalogue .btn-arrow {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  margin-left: 2px;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Download Button Hover */
.btn-catalogue--download:hover {
  background: #0A1628;
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(10, 22, 40, 0.3);
}

.btn-catalogue--download:hover i:first-child {
  transform: translateY(2px);
}

.btn-catalogue--download:hover .btn-arrow {
  color: var(--color-gold);
  transform: translateX(2px);
}

/* View Button Hover */
.btn-catalogue--view:hover {
  background: var(--color-gold);
  color: var(--color-navy) !important;
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 168, 76, 0.35);
}

.btn-catalogue--view:hover i:first-child {
  color: var(--color-navy);
  transform: scale(1.1);
}

.btn-catalogue--view:hover .btn-arrow {
  color: var(--color-navy);
  transform: translateX(2px);
}


/* ════════════════════════════════════════════════════════════
   IN-PAGE PDF / CATALOGUE VIEWER MODAL
   ════════════════════════════════════════════════════════════ */
.catalogue-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 12, 22, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.catalogue-modal-backdrop--open {
  opacity: 1;
  pointer-events: auto;
}

.catalogue-modal {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.catalogue-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(10, 22, 40, 0.9);
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  z-index: 10;
}

.catalogue-modal__meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.catalogue-modal__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #ffffff;
  margin: 0;
  font-weight: 600;
}

.catalogue-modal__badge {
  background: rgba(201, 168, 76, 0.15);
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.catalogue-modal__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalogue-ctrl-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.catalogue-ctrl-btn:hover {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}

.catalogue-ctrl-btn--icon {
  width: 38px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}

.catalogue-ctrl-btn--close {
  background: rgba(198, 40, 40, 0.3);
  border-color: rgba(198, 40, 40, 0.5);
}

.catalogue-ctrl-btn--close:hover {
  background: var(--color-error);
  color: #ffffff;
}

/* Stage & Embed */
.catalogue-modal__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111a24;
  position: relative;
  overflow: hidden;
}

.catalogue-modal__iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

/* Fallback message inside stage */
.catalogue-modal__fallback {
  text-align: center;
  color: #ffffff;
  padding: 30px;
  display: none;
}

.catalogue-modal__fallback-cover {
  max-width: 240px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}


/* ── Responsive Breakpoints ────────────────────────────────── */
@media (max-width: 1100px) {
  .catalogues-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .catalogues-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .catalogue-card {
    padding: 14px 14px 18px 14px;
  }

  .catalogue-modal__header {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .catalogue-modal__title {
    font-size: 1.05rem;
  }
}
