/**
 * GBP Template Skins
 * Layered on top of assets/gbp-saas.css. Each skin is a modifier class
 * (.gbp-tpl-review-{slug} / .gbp-tpl-gallery-{slug}) applied to the
 * existing .gbp-reviews / .gbp-gallery wrapper — same markup, same
 * front-end JS (load-more, lightbox, slider nav), different look.
 */

.gbp-sample-badge {
    display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
    padding: 3px 9px; border-radius: 999px; background: #fef3c7; color: #92400e; text-transform: uppercase;
}
.gbp-sample-badge--corner { position: absolute; top: 8px; right: 8px; z-index: 2; }
.gbp-review-card--demo, .gbp-gallery__tile--demo { position: relative; }

/* Template cards: clean, available previews without payment-lock overlays. */
/* =========================================================
   REVIEW TEMPLATES (15)
   ========================================================= */

/* 1. Modern Grid — the base style already IS this; light touch only */
.gbp-tpl-review-modern-grid .gbp-review-card { border-radius: 18px; }

/* 2. Classic */
.gbp-tpl-review-classic .gbp-review-card { border-radius: 4px; border: 1px solid #d8d4cb; box-shadow: none; }
.gbp-tpl-review-classic .gbp-review-card:hover { transform: none; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.gbp-tpl-review-classic .gbp-section-header__title { font-family: Georgia, 'Times New Roman', serif; }

/* 3. Minimal */
.gbp-tpl-review-minimal .gbp-review-card { border: none; border-radius: 0; padding: 12px 0; box-shadow: none; border-bottom: 1px solid var(--gbp-border, #e8e6e1); }
.gbp-tpl-review-minimal .gbp-review-card:hover { transform: none; box-shadow: none; }
.gbp-tpl-review-minimal .gbp-review-card__badge { display: none; }

/* 4. Glass */
.gbp-tpl-review-glass { padding: 28px; border-radius: 22px; background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(236,72,153,.10)); }
.gbp-tpl-review-glass .gbp-review-card { background: rgba(255,255,255,.55); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.5); box-shadow: 0 8px 32px rgba(31,38,135,.15); }

/* 5. Dark */
.gbp-tpl-review-dark { background: #0f1117; padding: 28px; border-radius: 22px; }
.gbp-tpl-review-dark .gbp-review-card { background: #1a1d29; border-color: #2a2e3d; }
.gbp-tpl-review-dark .gbp-review-card__name, .gbp-tpl-review-dark .gbp-section-header__title { color: #f3f4f6; }
.gbp-tpl-review-dark .gbp-review-card__text { color: #d1d5db; }
.gbp-tpl-review-dark .gbp-review-card__footer { border-top-color: #2a2e3d; }
.gbp-tpl-review-dark .gbp-section-header__count { color: #9aa0ac; }

/* 6. Luxury */
.gbp-tpl-review-luxury { background: #14110d; padding: 30px; border-radius: 18px; }
.gbp-tpl-review-luxury .gbp-review-card { background: #1e1a13; border: 1px solid #4a3c1f; border-radius: 6px; }
.gbp-tpl-review-luxury .gbp-review-card__name, .gbp-tpl-review-luxury .gbp-section-header__title { color: #f3e6c8; font-family: Georgia, serif; }
.gbp-tpl-review-luxury .gbp-review-card__text { color: #cbbf9f; }
.gbp-tpl-review-luxury .gbp-star.is-filled { fill: #d4af37; }
.gbp-tpl-review-luxury .gbp-review-card__avatar-fallback { background: #d4af37; color: #14110d; }
.gbp-tpl-review-luxury .gbp-review-card__footer { border-top-color: #4a3c1f; }

/* 7. Masonry */
.gbp-tpl-review-masonry .gbp-reviews__track { display: block; columns: 3 260px; column-gap: 20px; }
.gbp-tpl-review-masonry .gbp-review-card { display: inline-block; width: 100%; margin: 0 0 20px; break-inside: avoid; }
@media (max-width: 900px) { .gbp-tpl-review-masonry .gbp-reviews__track { columns: 2 220px; } }
@media (max-width: 640px) { .gbp-tpl-review-masonry .gbp-reviews__track { columns: 1; } }

/* 8. Slider — uses existing --slider layout, just a visual nudge */
.gbp-tpl-review-slider .gbp-review-card { border-radius: 20px; }

/* 9. Carousel — peeking cards, tighter snap */
.gbp-tpl-review-carousel .gbp-reviews__track { scroll-padding-left: 20px; }
.gbp-tpl-review-carousel .gbp-review-card { flex: 0 0 min(300px, 78vw) !important; border-radius: 24px; }

/* 10. Badge — compact chips */
.gbp-tpl-review-badge .gbp-reviews__track { display: flex; flex-wrap: wrap; gap: 12px; }
.gbp-tpl-review-badge .gbp-review-card { flex: 0 0 auto; width: auto; max-width: 300px; padding: 14px 18px; border-radius: 999px; flex-direction: row; align-items: center; }
.gbp-tpl-review-badge .gbp-review-card__text, .gbp-tpl-review-badge .gbp-review-card__footer { display: none; }

/* 11. Timeline */
.gbp-tpl-review-timeline .gbp-reviews__track { display: block; position: relative; padding-left: 28px; border-left: 2px solid var(--gbp-border, #e8e6e1); }
.gbp-tpl-review-timeline .gbp-review-card { margin-bottom: 24px; border-radius: 10px; }
.gbp-tpl-review-timeline .gbp-review-card::before { content: ''; position: absolute; left: -34px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--gbp-accent, #0F6E5C); border: 2px solid #fff; }

/* 12. List */
.gbp-tpl-review-list .gbp-reviews__track { display: block; }
.gbp-tpl-review-list .gbp-review-card { flex-direction: row; align-items: flex-start; gap: 16px; border-radius: 10px; margin-bottom: 12px; padding: 16px 20px; }
.gbp-tpl-review-list .gbp-review-card__header { flex-direction: column; align-items: flex-start; width: 160px; flex-shrink: 0; }
.gbp-tpl-review-list .gbp-review-card__badge { display: none; }

/* 13. Elegant */
.gbp-tpl-review-elegant .gbp-review-card { border: none; box-shadow: none; padding: 30px 10px; text-align: center; }
.gbp-tpl-review-elegant .gbp-review-card__header { flex-direction: column; }
.gbp-tpl-review-elegant .gbp-review-card__text { font-family: Georgia, serif; font-style: italic; font-size: 16px; }
.gbp-tpl-review-elegant .gbp-review-card__badge { margin: 0 auto; }

/* 14. Business */
.gbp-tpl-review-business .gbp-review-card { border-radius: 6px; border-left: 4px solid #1d4ed8; border-top: 1px solid var(--gbp-border,#e8e6e1); border-right: 1px solid var(--gbp-border,#e8e6e1); border-bottom: 1px solid var(--gbp-border,#e8e6e1); }
.gbp-tpl-review-business .gbp-review-card__avatar-fallback { background: var(--gbp-accent); border-radius: 6px; }
.gbp-tpl-review-business .gbp-review-card { border-left-color: var(--gbp-accent); }

/* 15. Clean */
.gbp-tpl-review-clean .gbp-review-card { border: none; box-shadow: none; background: transparent; padding: 20px 0; }
.gbp-tpl-review-clean .gbp-review-card:hover { transform: none; }
.gbp-tpl-review-clean .gbp-review-card__footer { border-top: none; }

/* =========================================================
   GALLERY TEMPLATES (15)
   ========================================================= */
.gbp-tpl-layout-scroll .gbp-gallery__grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    gap: 16px; padding: 4px 2px 8px; scrollbar-width: none;
}
.gbp-tpl-layout-scroll .gbp-gallery__grid::-webkit-scrollbar { display: none; }
.gbp-tpl-layout-scroll .gbp-gallery__tile { flex: 0 0 min(520px, 88vw); scroll-snap-align: start; }
.gbp-tpl-layout-scroll .gbp-gallery__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }


/* 1. Grid — base default */
.gbp-tpl-gallery-grid .gbp-gallery__tile { border-radius: 12px; }

/* 2. Metro — mixed large/small tiles */
.gbp-tpl-gallery-metro .gbp-gallery__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 120px; gap: 10px; }
.gbp-tpl-gallery-metro .gbp-gallery__tile { aspect-ratio: auto; }
.gbp-tpl-gallery-metro .gbp-gallery__tile:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.gbp-tpl-gallery-metro .gbp-gallery__tile:nth-child(6n+4) { grid-row: span 2; }

/* 3. Masonry */
.gbp-tpl-gallery-masonry .gbp-gallery__grid { display: block; columns: 4 180px; column-gap: 14px; }
.gbp-tpl-gallery-masonry .gbp-gallery__tile { display: block; width: 100%; margin-bottom: 14px; aspect-ratio: auto; break-inside: avoid; }
.gbp-tpl-gallery-masonry .gbp-gallery__tile:nth-child(odd) img { aspect-ratio: 3/4; }
.gbp-tpl-gallery-masonry .gbp-gallery__tile:nth-child(even) img { aspect-ratio: 1/1; }

/* 4. Carousel — horizontal scroll-snap */
.gbp-tpl-gallery-carousel .gbp-gallery__grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; grid-template-columns: none; padding-bottom: 6px; }
.gbp-tpl-gallery-carousel .gbp-gallery__tile { flex: 0 0 220px; scroll-snap-align: start; }

/* 5. Slider — single full-width photo */
.gbp-tpl-gallery-slider .gbp-gallery__grid { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; grid-template-columns: none; }
.gbp-tpl-gallery-slider .gbp-gallery__tile { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 16/9; border-radius: 0; }

/* 6. Pinterest */
.gbp-tpl-gallery-pinterest .gbp-gallery__grid { display: block; columns: 5 160px; column-gap: 12px; }
.gbp-tpl-gallery-pinterest .gbp-gallery__tile { display: block; width: 100%; margin-bottom: 12px; aspect-ratio: 3/4; break-inside: avoid; border-radius: 16px; }

/* 7. Stack — overlapping */
.gbp-tpl-gallery-stack .gbp-gallery__grid { display: flex; padding-left: 24px; }
.gbp-tpl-gallery-stack .gbp-gallery__tile { flex: 0 0 160px; aspect-ratio: 3/4; margin-left: -24px; border: 3px solid #fff; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.15); transition: transform .25s ease, z-index 0s; }
.gbp-tpl-gallery-stack .gbp-gallery__tile:hover { transform: translateY(-10px) scale(1.05); z-index: 5; }

/* 8. Cards — rounded with caption bar */
.gbp-tpl-gallery-cards .gbp-gallery__tile { border-radius: 16px; box-shadow: 0 6px 16px rgba(0,0,0,.08); }

/* 9. Minimal */
.gbp-tpl-gallery-minimal .gbp-gallery__grid { gap: 2px; }
.gbp-tpl-gallery-minimal .gbp-gallery__tile { border-radius: 0; }

/* 10. Luxury */
.gbp-tpl-gallery-luxury { background: #14110d; padding: 24px; border-radius: 18px; }
.gbp-tpl-gallery-luxury .gbp-gallery__tile { border: 2px solid #d4af37; border-radius: 4px; }

/* 11. Lightbox Focus — large tiles */
.gbp-tpl-gallery-lightbox .gbp-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gbp-tpl-gallery-lightbox .gbp-gallery__tile { aspect-ratio: 4/3; border-radius: 18px; }

/* 12. Hover Zoom — stronger zoom + tint */
.gbp-tpl-gallery-hover-zoom .gbp-gallery__tile img { transition: transform .6s ease; }
.gbp-tpl-gallery-hover-zoom .gbp-gallery__tile:hover img { transform: scale(1.25) rotate(1deg); }

/* 13. Classic — bordered thumbnails */
.gbp-tpl-gallery-classic .gbp-gallery__tile { border: 3px solid #fff; outline: 1px solid #d8d4cb; border-radius: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }

/* 14. Modern — soft shadow rounded */
.gbp-tpl-gallery-modern .gbp-gallery__tile { border-radius: 22px; box-shadow: 0 10px 26px rgba(0,0,0,.12); }

/* 15. Rounded — fully rounded corners */
.gbp-tpl-gallery-rounded .gbp-gallery__tile { border-radius: 28px; }

@media (max-width: 640px) {
    .gbp-tpl-gallery-metro .gbp-gallery__grid { grid-template-columns: repeat(2, 1fr); }
    .gbp-tpl-gallery-masonry .gbp-gallery__grid,
    .gbp-tpl-gallery-pinterest .gbp-gallery__grid { columns: 2 140px; }
}


/* Slider controls are shared by review and gallery slider templates. */
.gbp-reviews--slider .gbp-reviews__arrow,
.gbp-tpl-layout-scroll .gbp-gallery__arrow {
    width: 42px; height: 42px;
    border-color: var(--gbp-border); background: var(--gbp-card); color: var(--gbp-ink);
}
.gbp-reviews--slider .gbp-reviews__arrow:hover,
.gbp-tpl-layout-scroll .gbp-gallery__arrow:hover {
    background: var(--gbp-accent); color: #fff; border-color: var(--gbp-accent);
}
.gbp-reviews--slider .gbp-reviews__arrow:disabled,
.gbp-tpl-layout-scroll .gbp-gallery__arrow:disabled {
    opacity: .38; cursor: default; transform: none;
}


/* Shared template behaviour: preview and live widget use the same compact content rules. */
.gbp-tpl-review-modern-grid .gbp-review-card,
.gbp-tpl-review-classic .gbp-review-card,
.gbp-tpl-review-business .gbp-review-card,
.gbp-tpl-review-clean .gbp-review-card { max-width: 100%; }
.gbp-tpl-review-slider .gbp-reviews__track,
.gbp-tpl-review-carousel .gbp-reviews__track { gap: 14px; }
.gbp-tpl-review-slider .gbp-review-card,
.gbp-tpl-review-carousel .gbp-review-card { flex-basis: min(320px, 82vw) !important; }
.gbp-tpl-review-slider .gbp-reviews__nav,
.gbp-tpl-review-carousel .gbp-reviews__nav { margin-top: 10px; }
.gbp-tpl-review-dark .gbp-review-card__more,
.gbp-tpl-review-luxury .gbp-review-card__more { color: #60A5FA !important; }
.gbp-tpl-review-dark .gbp-review-card__more:hover,
.gbp-tpl-review-luxury .gbp-review-card__more:hover { color: #93C5FD !important; }
