/**
 * iScents Core 2 - Google Reviews Styles
 */

/* ========== SECTION HEADER ========== */

.iscents-google-reviews-wrapper {
    width: 100%;
    padding: 40px 0;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.reviews-section-header {
    text-align: center;
    margin-bottom: 30px;
}

.reviews-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #C9962E;
    margin-bottom: 8px;
}

.reviews-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.reviews-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 auto;
    line-height: 1.5;
    max-width: 700px;
}

/* ========== REVIEWS LAYOUT ========== */

.iscents-reviews-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

/* Scrolling Reviews Area */
.iscents-reviews-scroll-area {
    grid-column: span 2;
    position: relative;
    overflow: hidden;
    min-width: 0;
    box-sizing: border-box;
    width: 100%;
    display: block;
}

/* ========== CAROUSEL ========== */

.iscents-reviews-carousel {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.iscents-reviews-track {
    display: flex;
    gap: 20px; /* Same gap as grid gap */
    transition: transform 0.5s ease;
    will-change: transform;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

/* Review Card */
.iscents-review-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: calc(50% - 10px); /* 50% minus half of 20px gap */
    min-width: calc(50% - 10px);
    max-width: calc(50% - 10px);
    box-sizing: border-box;
    overflow: hidden;
    min-height: 250px;
    height: 100%;
}

.iscents-review-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #C9962E;
}

/* ========== REVIEW HEADER ========== */

.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.review-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.google-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.google-icon svg {
    width: 20px;
    height: 20px;
}

.stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star {
    font-size: 14px;
    color: #E0E0E0;
    line-height: 1;
}

.star.filled {
    color: #FABB05;
}

/* ========== REVIEW QUOTE ========== */

.review-quote-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
}

.review-quote-link:hover .review-quote {
    color: #4285F4;
}

.review-quote {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 15px;
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: flex;
    align-items: center;
}

/* ========== REVIEWER INFO ========== */

.reviewer-info {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    flex-shrink: 0;
}

.reviewer-details {
    flex: 1;
    min-width: 0;
}

.reviewer-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.reviewer-source {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.source-text {
    font-size: 11px;
    color: #666;
    text-decoration: none;
}

.source-link {
    color: #4285F4;
    transition: color 0.3s ease;
}

.source-link:hover {
    color: #1a73e8;
    text-decoration: underline;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #34A853;
    font-weight: 600;
}

.verified-badge svg {
    flex-shrink: 0;
}

/* Perfume Image */
.perfume-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.perfume-image img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #f0f0f0;
}

.perfume-name {
    font-size: 10px;
    font-weight: 600;
    color: #666;
    text-align: center;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== GOOGLE CARD (Fixed Right) ========== */

.iscents-google-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    grid-column: span 1;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 250px;
    width: 100%;
    height: 100%;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.iscents-google-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #C9962E;
}

.google-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
}

.google-icon-large {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.google-icon-large svg {
    width: 40px;
    height: 40px;
}

.google-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    flex-shrink: 0;
}

.google-card-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    word-wrap: break-word;
    flex-shrink: 0;
}

.view-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.view-google-btn svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.view-google-btn:hover {
    background: #333;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.view-google-btn:hover svg {
    transform: translateX(3px);
}

/* ========== CAROUSEL DOTS ========== */

.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    width: 100%;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #C9962E;
    width: 24px;
    border-radius: 4px;
}

.carousel-dot:hover {
    background: #C9962E;
}

/* ========== RESPONSIVE ========== */

/* Tablet (769px to 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .iscents-reviews-layout {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .iscents-reviews-scroll-area {
        grid-column: span 2;
        height: auto;
        width: 100%;
    }
    
    .iscents-google-card {
        grid-column: span 2;
        min-height: 200px;
        padding: 20px;
        width: 100%;
        height: auto;
    }
    
    .reviews-title {
        font-size: 24px;
    }
    
    .iscents-review-card {
        width: calc(50% - 7.5px);
        min-width: calc(50% - 7.5px);
        max-width: calc(50% - 7.5px);
        min-height: 200px;
    }
    
    .iscents-reviews-track {
        gap: 15px;
    }
}

/* Mobile (below 768px) */
@media screen and (max-width: 768px) {
    .iscents-reviews-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .iscents-reviews-scroll-area {
        grid-column: span 1;
        width: 100%;
        height: auto;
    }
    
    .iscents-google-card {
        grid-column: span 1;
        min-height: 200px;
        width: 100%;
        height: auto;
    }
    
    .iscents-review-card {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        min-height: 200px;
    }
    
    .iscents-reviews-track {
        gap: 15px;
    }
    
    .reviews-section-header {
        margin-bottom: 20px;
    }
    
    .reviews-title {
        font-size: 22px;
    }
    
    .reviews-subtitle {
        font-size: 13px;
    }
    
    .carousel-dots {
        margin-top: 20px;
        display: flex !important; /* Force show dots on mobile */
    }
    
    .review-quote {
        flex-grow: 0;
    }
    
    .reviewer-info {
        margin-top: 0;
    }
}

/* Small Mobile (below 480px) */
@media screen and (max-width: 480px) {
    .reviewer-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .perfume-image {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .perfume-image img {
        width: 40px;
        height: 40px;
    }
    
    .perfume-name {
        max-width: none;
        text-align: left;
    }
    
    .view-google-btn {
        width: 100%;
        justify-content: center;
    }
    
    .carousel-dots {
        margin-top: 15px;
        display: flex !important; /* Force show dots on mobile */
    }
    
    .iscents-google-card {
        width: 100%;
    }
}
/* Product links in perfume image */
.perfume-image-link {
    display: inline-flex; /* Changed from block to inline-flex */
    text-decoration: none;
    transition: opacity 0.3s ease;
    line-height: 0; /* Remove extra space below image */
}

.perfume-image-link:hover {
    opacity: 0.8;
}

.perfume-image-link img {
    display: block;
    width: 50px; /* Keep original size */
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #f0f0f0;
}

.perfume-name-link {
    text-decoration: none;
    display: inline-block;
    max-width: 60px; /* Match original max-width */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.perfume-name-link:hover .perfume-name {
    color: #C9962E;
}

.perfume-name-link .perfume-name {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #666;
    text-align: center;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* ========== HEADING STYLES ========== */

.reviews-section-header .heading-text {
    font-size: 3rem;
    line-height: 1.2;
    margin: 0 0 10px 0;
}

.reviews-section-header .mb-12 {
    margin-bottom: 12px;
}

/* Blockquote reset */
.review-quote {
    margin: 0;
    padding: 0;
    border: none;
}

/* Perfume Image Links */
.perfume-image-link {
    text-decoration: none;
    display: block;
}

.perfume-image-link img {
    transition: transform 0.3s ease;
}

.perfume-image-link:hover img {
    transform: scale(1.05);
}

.perfume-name-link {
    text-decoration: none;
    transition: color 0.3s ease;
}

.perfume-name-link:hover .perfume-name {
    color: #C9962E;
}