/* ═══════════════════════════════════════════════════════════════
   GoDiving Reviews Widget — Frontend Styles
   ═══════════════════════════════════════════════════════════════ */

.gd-reviews-widget {
    background: #0E2D4E;
    border-radius: 12px;
    padding: 24px;
    font-family: inherit;
    color: #fff;
    box-sizing: border-box;
}
.gd-reviews-widget *, .gd-reviews-widget *::before, .gd-reviews-widget *::after {
    box-sizing: border-box;
}

/* ── Title ──────────────────────────────────────────────────────── */

.gdr-title { margin-bottom: 18px; }
.gdr-title-main { font-size: 24px; font-weight: 700; color: #fff; line-height: 1.2; }
.gdr-title-sub { font-size: 15px; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* ── Header ────────────────────────────────────────────────────── */

.gdr-header {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    align-items: stretch;
}

/* Score block — 1 unit, centered */
.gdr-score { flex: 0 0 auto; width: 200px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gdr-score-num { font-size: 52px; font-weight: 500; line-height: 1.1; color: #fff; }
.gdr-score-stars { display: flex; gap: 3px; margin: 8px 0; justify-content: center; }
.gdr-score-stars svg { width: 24px; height: 24px; }
.gdr-review-count { font-size: 14px; color: #fff; margin-bottom: 8px; }
.gdr-trust-badge {
    display: inline-flex; align-items: center; gap: 5px; font-size: 11px;
    color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 50px;
    padding: 4px 12px 4px 8px;
}
.gdr-trust-badge strong { color: #22c55e; font-weight: 600; }

/* Rating bars — twice the width of score */
.gdr-bars { flex: 0 0 auto; width: 280px; display: flex; flex-direction: column; gap: 0; justify-content: center; }
.gdr-bar-row { display: flex; align-items: center; gap: 10px; }
.gdr-bar-label { font-size: 13px; color: rgba(255,255,255,0.5); width: 26px; text-align: right; flex-shrink: 0; }
.gdr-bar-track { flex: 1; height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.gdr-bar-fill { height: 100%; background: #22c55e; border-radius: 4px; transition: width 0.3s; }
.gdr-bar-count { font-size: 13px; color: rgba(255,255,255,0.5); width: 32px; text-align: right; flex-shrink: 0; }

/* Guest photos — fills remaining space and full header height */
.gdr-photos { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gdr-photos-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 8px; flex-shrink: 0; }
.gdr-photos-wrap { position: relative; flex: 1; display: flex; align-items: stretch; }
.gdr-photos-strip {
    display: flex; gap: 6px; overflow-x: auto; scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 38px;
}
.gdr-photos-strip::-webkit-scrollbar { display: none; }
.gdr-photo-thumb {
    flex: 0 0 auto; width: 80px; border-radius: 6px; overflow: hidden;
    position: relative; cursor: pointer;
}
.gdr-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gdr-photo-name {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.55); color: #fff; font-size: 9px;
    padding: 2px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gdr-photos-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 32px !important; height: 32px !important; min-height: 32px; max-height: 32px;
    border-radius: 50%;
    background: #FF8600; border: none;
    color: #fff; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2; padding: 0;
    flex-shrink: 0; align-self: auto;
}
.gdr-photos-left { left: -8px; }
.gdr-photos-right { right: -8px; }

/* ── Cards ──────────────────────────────────────────────────────── */

.gdr-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.gdr-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    color: #111;
    display: flex;
    flex-direction: column;
}
.gdr-card[data-hidden="1"] { display: none; }
.gdr-card-top { display: flex; justify-content: space-between; align-items: center; }
.gdr-card-name { font-size: 15px; font-weight: 600; color: #111; }
.gdr-card-stars { display: flex; gap: 1px; flex-shrink: 0; }
.gdr-card-meta { font-size: 13px; color: #888; margin: 3px 0 10px; }
.gdr-card-text { font-size: 16px; color: #444; line-height: 1.6; flex: 1; }

.gdr-card-images { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.gdr-card-img {
    width: 68px; height: 68px; border-radius: 6px; object-fit: cover;
    border: 1px solid #e5e7eb; cursor: pointer;
}

.gdr-card-verified {
    border-top: 1px solid #f0f0f0;
    margin-top: 12px; padding-top: 10px;
    font-size: 12px; font-weight: 500; color: #333;
    display: flex; align-items: center; gap: 4px;
}
.gdr-verified-check { color: #22c55e; font-weight: 600; font-size: 14px; }

/* ── Pagination ─────────────────────────────────────────────────── */

.gdr-pagination {
    display: flex; justify-content: center; align-items: center; gap: 14px;
    margin-top: 16px;
}
.gdr-page-btn {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    color: #fff; font-size: 13px; padding: 7px 16px; border-radius: 6px;
    cursor: pointer; transition: background 0.2s;
}
.gdr-page-btn:hover { background: rgba(255,255,255,0.15); }
.gdr-page-btn:disabled { opacity: 0.35; cursor: default; }
.gdr-page-info { font-size: 13px; color: rgba(255,255,255,0.45); }

/* ── Lightbox ───────────────────────────────────────────────────── */

.gdr-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.85);
    display: flex; align-items: center; justify-content: center;
    padding: 60px 70px;
    cursor: pointer;
}
.gdr-lb-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; color: #fff; font-size: 32px;
    cursor: pointer; z-index: 10; padding: 4px 8px;
}
.gdr-lb-prev, .gdr-lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 22px; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
}
.gdr-lb-prev { left: 14px; }
.gdr-lb-next { right: 14px; }
.gdr-lb-content {
    text-align: center; max-width: 70vw; cursor: default;
}
.gdr-lb-img {
    max-width: 100%; max-height: 60vh; border-radius: 8px;
    display: block; margin: 0 auto;
}
.gdr-lb-caption { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 12px; }
.gdr-lb-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.gdr-lb-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.25); transition: background 0.2s;
}
.gdr-lb-dot.active { background: #FAC775; }

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 699px) {
    .gdr-header { flex-direction: column; gap: 14px; align-items: stretch; }
    .gdr-score { width: 100%; }
    .gdr-bars { width: 100%; align-items: center; }
    .gdr-bar-row { width: 100%; max-width: 280px; }
    .gdr-photos { width: 100%; max-width: 100%; align-items: center; }
    .gdr-photos-label { text-align: center; }
    .gdr-cards { grid-template-columns: 1fr; }
    .gdr-photo-thumb { flex: 0 0 64px; }
    .gdr-title-main { font-size: 20px; }
    .gdr-title-sub { font-size: 14px; }
}

@media (min-width: 700px) {
    .gdr-photo-thumb { flex: 0 0 80px; }
}
