/* ============================================================
   GLOWCRAFT SALON — IN-BROWSER HTML5 PDF VIEWER STYLING
   Provides native, smooth in-page reading on mobile and desktop
   without triggering browser auto-download prompts.
   ============================================================ */

.gc-pdf-viewer {
  width: 100%;
  background: #1c1c1c;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Sticky Luxury Toolbar ── */
.gc-pdf-toolbar {
  display: none !important;
}

.gc-pdf-tb-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gc-pdf-tb-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.gc-pdf-page-count {
  font-size: 1.2rem;
  color: #C9A96E;
  font-weight: 500;
}

.gc-pdf-tb-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gc-pdf-btn {
  background: #2a2a2a;
  color: #e5e5e5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.gc-pdf-btn:hover {
  background: #383838;
  color: #C9A96E;
  border-color: rgba(201, 169, 110, 0.4);
}

.gc-pdf-page-indicator {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  padding: 0 6px;
  min-width: 52px;
  text-align: center;
}

.gc-pdf-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
}

.gc-pdf-btn-download {
  background: #C9A96E !important;
  color: #111111 !important;
  border-color: #C9A96E !important;
  gap: 6px;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 700;
}

.gc-pdf-btn-download:hover {
  background: #d4b882 !important;
  color: #000 !important;
}

/* ── Canvas Display Stage ── */
.gc-pdf-stage {
  width: 100%;
  height: calc(100vh - 140px);
  min-height: 600px;
  max-height: 920px;
  overflow-y: auto;
  overflow-x: auto;
  background: #222222;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.gc-pdf-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.gc-pdf-page-card {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.gc-pdf-canvas,
.gc-pdf-page-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #ffffff;
}

.gc-pdf-card-label {
  width: 100%;
  background: #faf8f5;
  color: #666666;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 12px;
  border-top: 1px solid #ebe5dc;
}

/* ── Loader ── */
.gc-pdf-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 20px;
  color: #ffffff;
  font-size: 1.4rem;
}

.gc-pdf-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(201, 169, 110, 0.2);
  border-top-color: #C9A96E;
  border-radius: 50%;
  animation: gcSpin 0.9s linear infinite;
}

@keyframes gcSpin {
  to { transform: rotate(360deg); }
}

/* ── Fallback ── */
.gc-pdf-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 50px 20px;
}

.gc-pdf-fallback-card {
  background: #2b2b2b;
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 12px;
  padding: 36px 28px;
  max-width: 460px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.gc-pdf-fallback-card h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  margin: 16px 0 8px;
  color: #fff;
}

.gc-pdf-fallback-card p {
  color: #bbb;
  font-size: 1.35rem;
  margin-bottom: 24px;
}

.gc-pdf-fb-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.gc-btn-gold {
  background: #C9A96E;
  color: #111;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.35rem;
}

.gc-btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.35rem;
}

/* ── Mobile View Responsive Refinements ── */
@media (max-width: 768px) {
  .gc-pdf-toolbar {
    padding: 8px 12px;
    gap: 8px;
  }
  .gc-pdf-tb-title {
    font-size: 1.4rem;
  }
  .gc-pdf-stage {
    padding: 14px 6px;
    height: 72vh;
    min-height: 480px;
  }
  .gc-pdf-btn {
    height: 34px;
    min-width: 34px;
    padding: 0 8px;
  }
  .gc-pdf-divider {
    display: none;
  }
  .gc-pdf-page-card {
    border-radius: 3px;
    width: 100% !important;
  }
}
