/**
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.txt
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to a newer
* versions in the future. If you wish to customize this module for your needs
* please refer to CustomizationPolicy.txt file inside our module for more information.
*
* @author Webkul IN
* @copyright Since 2010 Webkul
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*/

/* Summary Section */
.summary-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.summary-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.summary-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #ff6b35;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.images-button {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Review List */
.review-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f387ae 0%, #ec75a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.review-customer {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a2e;
}

.review-rating {
    color: #ff6b35;
    font-size: 18px;
    letter-spacing: 2px;
}

.review-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.review-comment {
    color: #555;
    font-size: 14px;
    margin-bottom: 16px;
}

.review-thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.review-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s, border 0.2s;
    border: 2px solid transparent;
}

.review-thumbnail:hover {
    transform: scale(1.1);
}

/* Slideshow Modal */
.slideshow-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1c1a1a;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.slideshow-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slideshow-content {
    background: transparent;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 60px 120px 100px 120px;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
    z-index: 100;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Navigation Buttons on Screen Edges */
#prev-btn, #next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

#prev-btn {
    left: 20px;
}

#next-btn {
    right: 20px;
}

#prev-btn:hover, #next-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

/* Slideshow Main */
.slideshow-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 50px;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.slide-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.slide-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 400px;
    max-height: 70vh;
}

.slide-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Slide Info */
.slide-info {
    text-align: left;
    padding: 10px;
    backdrop-filter: blur(10px);
}

.slide-customer {
    color: white;
}

.d-flex {
    display: flex;
}

.slide-rating {
    color: #f34484;
    font-size: 18px;
}

.review-location {
    font-size: small;
    color: #888;
}

.reviewer-date {
    font-size: small;
    color: #ccc;
}

.slide-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.slide-comment {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Thumbnail Bar - Single row with scroll and drag */
.thumbnail-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 20px 80px;
    /* background: rgba(0, 0, 0, 0.7); */
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    cursor: grab;
}

.thumbnail-bar:active {
    cursor: grabbing;
}

.thumbnail-bar::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-bar::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnail-bar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.thumbnail {
    width: 90px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid rgba(245, 102, 157, 0.2);
    opacity: 0.5;
    flex-shrink: 0;
}

.thumbnail:hover {
    opacity: 1;
    border-color: rgba(245, 102, 157, 0.5);
}

.thumbnail.active {
    border-color: #ea0558;
    opacity: 1;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.5);
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.thumbnail.active {
    border-color: #ea0558;
    opacity: 1;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .slideshow-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .slideshow-modal {
        overflow-y: scroll;
    }

    .slide-info {
        text-align: center;
    }

    .slideshow-content {
        padding: 60px 80px 70px 80px;
    }

    .thumbnail-bar {
        display: none;
    }

    /* Hide navigation buttons */
    #prev-btn, #next-btn {
        background: transparent;
    }
}

@media (max-width: 768px) {
    .summary-stats {
        gap: 20px;
    }

    .stat-value {
        font-size: 28px;
    }

    .review-list {
        grid-template-columns: 1fr;
    }

    .slideshow-content {
        padding: 50px 20px 20px 20px;
    }

    .slideshow-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .slide-container {
        min-height: 200px;
        max-height: 50vh;
    }

    .slide-image {
        max-height: 50vh;
    }

    .slide-info {
        padding: 20px;
    }

    .slide-customer {
        font-size: 22px;
    }

    .slide-title {
        font-size: 20px;
    }

    .slide-comment {
        font-size: 15px;
    }

    .thumbnail-bar {
        padding: 15px 20px;
    }

    .thumbnail {
        width: 70px;
        height: 55px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    #prev-btn, #next-btn {
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 50%;
        font-size: 10px;
    }

    .close-btn {
        top: 10px;
        right: 10px;
        font-size: 20px;
        width: 25px;
        height: 25px;
    }
}
