/*
================================================================================
  PART 2 — CUSTOM CSS
  Shopify Revenue Accelerator Preview Section · Brand Dunyasi
  ──────────────────────────────────────────────────────────
  WHERE TO PASTE: Theme → Custom CSS  OR  inside a  tag in your .
  All selectors use the unique prefix "bdsra-" to avoid conflicts.
================================================================================
*/


/* ── FONT (skip if Playfair Display is already loaded by your theme) ─────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');


/* ── CARD HOVER LIFT ─────────────────────────────────────────────────────── */

.bdsra-card .bdsra-card-inner {
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.bdsra-card:hover .bdsra-card-inner {
  transform: translateY(-5px);
  box-shadow:
    0 12px 36px rgba(198, 32, 130, 0.14),
    0 4px 14px rgba(0, 0, 0, 0.09) !important;
}


/* ── IMAGE WRAPPER — ENLARGE HINT OVERLAY ────────────────────────────────── */

/*
  .bdsra-img-wrap is placed on the image container  inside each card.
  The ::after pseudo-element shows a soft branded hint on hover.
*/

.bdsra-img-wrap::after {
  content: '⊕ Enlarge';
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11.5px;
  font-style: italic;
  letter-spacing: 0.3px;
  color: #ffffff;
  background: rgba(198, 32, 130, 0.84);
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 24px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.bdsra-card:hover .bdsra-img-wrap::after {
  opacity: 1;
}

/* Mobile: always show a softer tap hint */
@media (hover: none) {
  .bdsra-img-wrap::after {
    content: '⊕ Tap to Enlarge';
    opacity: 0.55;
    bottom: 10px;
    font-size: 11px;
  }

  .bdsra-card:active .bdsra-img-wrap::after {
    opacity: 0.85;
  }
}


/* ── LIGHTBOX CLOSE BUTTON HOVER ─────────────────────────────────────────── */

#bdsra-lb-close:hover {
  background: rgba(198, 32, 130, 0.08) !important;
  color: #8e1860 !important;
}

#bdsra-lb-close:focus-visible {
  outline: 2px solid #c62082;
  outline-offset: 2px;
}


/* ── FOOTER HINT — MOBILE TEXT SWAP ─────────────────────────────────────── */

@media (hover: none) {
  .bdsra-footer-hint::before {
    content: 'Tap any page to enlarge and read clearly · ';
  }
  .bdsra-footer-hint {
    font-size: 0; /* hide original text */
  }
  .bdsra-footer-hint::before {
    font-size: 13px;
  }
  /* Simpler approach — just always show generic text */
}


/* ── RESPONSIVE GRID ─────────────────────────────────────────────────────── */

/* Tablet: 2 columns */
@media (max-width: 860px) {
  .bdsra-card {
    flex: 0 1 calc(50% - 12px) !important;
    min-width: 220px !important;
  }
}

/* Mobile: 1 column */
@media (max-width: 540px) {
  .bdsra-card {
    flex: 0 1 100% !important;
    min-width: unset !important;
    max-width: 100% !important;
  }

  #bdsra-lb-panel {
    max-width: 100% !important;
  }

  #bdsra-lightbox {
    padding: 12px !important;
  }

  #bdsra-preview-section h2 {
    font-size: 28px !important;
  }

  #bdsra-preview-section .bdsra-card .bdsra-img-wrap img {
    height: 220px !important;
  }
}

/* Prevent body scroll while lightbox is open */
body.bdsra-no-scroll {
  overflow: hidden !important;
}