/* ==========================================================================
   Shane Computers - Customer Review Cards 1:1 Auto-Slider
   ========================================================================== */

.customer-reviews-slider-section {
    width: 100%;
    padding: 20px 0;
    background: #08080c;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.reviews-slider-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 28px auto;
    padding: 0 20px;
}

.reviews-slider-header h2 {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    font-family: 'Kanit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.reviews-slider-header h2 i {
    color: #00d2ff;
    font-size: 28px;
}

.reviews-slider-header p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

/* Slider Outer Box */
.reviews-carousel-outer {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 10px 0;
}

/* Navigation Arrow Buttons */
.review-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.review-nav-btn:hover {
    background: #00d2ff;
    color: #050508;
    border-color: #00d2ff;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.7);
    transform: translateY(-50%) scale(1.12);
}

.review-nav-btn:active {
    transform: translateY(-50%) scale(0.96);
}

.review-nav-btn.prev-btn {
    left: 20px;
}

.review-nav-btn.next-btn {
    right: 20px;
}

/* Viewport / Scroll Container */
.review-slider-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 12px 18px;
}

.review-slider-viewport::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* Track holding the 1:1 cards */
.review-slider-track {
    display: flex;
    gap: 14px;
    align-items: center;
    width: max-content;
}

/* 1:1 Aspect Ratio Card */
.review-photo-card {
    position: relative;
    width: 220px;
    height: 220px;
    aspect-ratio: 1 / 1;
    flex: 0 0 220px;
    border-radius: 8px;
    overflow: hidden;
    background: #10131d;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.review-photo-card:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: rgba(0, 210, 255, 0.55);
    box-shadow: 0 12px 30px rgba(0, 210, 255, 0.25);
    z-index: 10;
}

/* Image inside 1:1 card */
.review-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
    transition: transform 0.45s ease;
}

.review-photo-card:hover img {
    transform: scale(1.07);
}

/* Bottom Bar / Gradient Overlay */
.review-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 10px 8px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 65%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
}

.review-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-customer-name {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 135px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.review-stars-badge {
    color: #fbbf24;
    font-size: 11px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.review-card-sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 2px;
}

.review-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #00d2ff;
    letter-spacing: 0.5px;
}

.review-date-badge {
    color: #cbd5e1;
    font-size: 10px;
}

/* Zoom/Magnify badge on card hover */
.review-magnify-icon {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transform: scale(0.75);
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

.review-photo-card:hover .review-magnify-icon {
    opacity: 1;
    transform: scale(1);
}

/* Live review badge for reviews fetched from Firebase */
.review-live-tag {
    position: absolute;
    top: 9px;
    left: 9px;
    background: rgba(0, 210, 255, 0.85);
    color: #000;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* ==========================================================================
   Fullscreen Lightbox Modal
   ========================================================================== */
.review-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 12, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.review-lightbox-box {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 210, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    animation: reviewZoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes reviewZoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.review-lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    background: #04060a;
}

.review-lightbox-details {
    padding: 16px 22px;
    background: #111a2e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.review-lightbox-details-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-lightbox-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.review-lightbox-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #94a3b8;
}

.review-lightbox-meta .stars {
    color: #fbbf24;
}

.review-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.review-lightbox-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: scale(1.1);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
    .review-photo-card {
        width: 195px;
        height: 195px;
        flex: 0 0 195px;
    }
}

@media (max-width: 768px) {
    .customer-reviews-slider-section {
        padding: 35px 0 25px 0;
    }

    .reviews-slider-header h2 {
        font-size: 24px;
    }

    .review-photo-card {
        width: 155px;
        height: 155px;
        flex: 0 0 155px;
    }

    .review-customer-name {
        font-size: 11.5px;
        max-width: 95px;
    }

    .review-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .review-nav-btn.prev-btn {
        left: 8px;
    }

    .review-nav-btn.next-btn {
        right: 8px;
    }
}

@media (max-width: 480px) {
    .review-photo-card {
        width: 140px;
        height: 140px;
        flex: 0 0 140px;
    }
}
