/**
 * Gorilla Dash Review Carousel - Light Theme
 *
 * Light theme with Apple-inspired design
 * Clean, minimal aesthetic with soft colors and subtle shadows
 */

/* ===== SECTION WRAPPER ===== */
.gorilladash-review-carousel-section {
    background: #F5F5F7;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.gorilladash-review-carousel-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* ===== SWIPER CONTAINER ===== */
.gorilladash-review-swiper {
    position: relative;
    overflow: visible;
    padding: 20px 0;
}

.gorilladash-review-swiper .swiper-wrapper {
    align-items: stretch;
}

/* ===== SWIPER SLIDE ===== */
.gorilladash-review-swiper .swiper-slide {
    width: 674px;
    height: auto;
    display: flex;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Active slide styling */
.gorilladash-review-swiper .swiper-slide-active .gorilladash-review-card {
    opacity: 1;
    transform: scale(1);
}

/* Non-active slides */
.gorilladash-review-swiper .swiper-slide:not(.swiper-slide-active) .gorilladash-review-card {
    opacity: 0.4;
}

/* ===== REVIEW CARD ===== */
.gorilladash-review-card {
    flex: 0 0 90%;
    background: #FFFFFF;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #D2D2D7;
    border-radius: 17px;
    padding: 43px 42px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 60px;
    transition: all 0.3s ease;
    opacity: 0.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gorilladash-review-star {
    font-size: 16px;
    color: rgb(255, 193, 7)
}

.gorilladash-review-card.active {
    opacity: 1;
    transform: scale(1);
}

.gorilladash-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: #B8B8BD;
}

/* ===== REVIEW CONTENT AREA ===== */
.gorilladash-review-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    flex: 1;
}

/* ===== QUOTE ICON ===== */
.gorilladash-review-quote-icon {
    width: 54px;
    height: 35px;
    flex-shrink: 0;
}

.gorilladash-quote-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    opacity: 0.3;
}

/* ===== REVIEW TEXT ===== */
.gorilladash-review-text {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #1D1D1F;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== READ MORE LINK ===== */
.gorilladash-review-read-more {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #06C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gorilladash-review-read-more:hover {
    color: #0077ED;
}

/* ===== REVIEW FOOTER ===== */
.gorilladash-review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* ===== AUTHOR SECTION ===== */
.gorilladash-review-author-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gorilladash-review-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0071E3;
    flex-shrink: 0;
}

.gorilladash-review-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gorilladash-review-author-name {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #1D1D1F;
    margin: 0;
    line-height: 1.3;
}

.gorilladash-review-service-type {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: #86868B;
    margin: 0;
    line-height: 1.3;
}

/* ===== SOURCE AND RATING ===== */
.gorilladash-review-source-rating {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.gorilladash-review-source-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.review-rating-container {
    border-radius: 26.52706rem;
    background: rgba(255, 255, 255, 0.10);
    padding: 2px 8px;
}

/* ===== NAVIGATION BUTTONS ===== */
.gorilladash-carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.gorilladash-carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(1px);
    border: 1px solid #007AFF;
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    padding: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #007AFF;
}

.gorilladash-carousel-btn:hover:not(:disabled) {
    opacity: 0.7;
    transform: scale(1.1);
}

.gorilladash-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gorilladash-carousel-btn:disabled:hover {
    transform: none;
}

.gorilladash-nav-image {
    display: block;
    width: auto;
    height: 48px;
}

.gorilladash-carousel-prev {
    /* Previous button */
}

.gorilladash-carousel-next {
    /* Next button */
}

/* ===== LOADING STATE ===== */
.gorilladash-review-carousel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 20px;
}

.gorilladash-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 0, 0, 0.06);
    border-top-color: #0071E3;
    border-radius: 50%;
    animation: gorilladash-spin 1s linear infinite;
}

@keyframes gorilladash-spin {
    to {
        transform: rotate(360deg);
    }
}

.gorilladash-review-carousel-loading p {
    margin: 0;
    font-size: 16px;
    color: #86868B;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .gorilladash-review-carousel-section {
        padding: 48px 0;
    }

    .gorilladash-review-carousel-wrapper {
        padding: 0;
    }

    /* Swiper slide width for tablet */
    .gorilladash-review-swiper .swiper-slide {
        width: 560px;
    }

    .gorilladash-review-card {
        padding: 36px 32px;
        gap: 50px;
    }

    .gorilladash-review-content {
        gap: 28px;
    }

    .gorilladash-review-text {
        font-size: 20px;
        -webkit-line-clamp: 4;
    }

    .gorilladash-review-read-more {
        font-size: 16px;
    }

    .gorilladash-review-avatar {
        width: 60px;
        height: 60px;
    }

    .gorilladash-review-author-name {
        font-size: 15px;
        color: #1D1D1F;
    }

    .gorilladash-review-service-type {
        font-size: 15px;
    }

    .gorilladash-carousel-nav {
        margin-top: 32px;
        gap: 16px;
    }

    .gorilladash-nav-image {
        height: 40px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    .gorilladash-review-carousel-section {
        padding: 40px 0;
    }

    .gorilladash-review-carousel-wrapper {
        padding: 0;
    }

    /* Swiper slide width for mobile */
    .gorilladash-review-swiper .swiper-slide {
        width: 360px;
    }

    .gorilladash-review-card {
        padding: 32px 24px;
        gap: 40px;
    }

    .gorilladash-review-content {
        gap: 24px;
    }

    .gorilladash-review-quote-icon {
        width: 44px;
        height: 28px;
    }

    .gorilladash-review-text {
        font-size: 18px;
        -webkit-line-clamp: 4;
    }

    .gorilladash-review-read-more {
        font-size: 15px;
    }

    .gorilladash-review-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .gorilladash-review-avatar {
        width: 56px;
        height: 56px;
    }

    .gorilladash-review-author-name {
        font-size: 14px;
        color: #1D1D1F;
    }

    .gorilladash-review-service-type {
        font-size: 14px;
    }

    .gorilladash-review-source-rating {
        align-self: flex-end;
        gap: 16px;
    }

    .gorilladash-carousel-nav {
        margin-top: 28px;
        gap: 12px;
    }

    .gorilladash-nav-image {
        height: 36px;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .gorilladash-review-carousel-wrapper {
        padding: 0;
    }

    /* Swiper slide width for small mobile */
    .gorilladash-review-swiper .swiper-slide {
        width: 280px;
    }

    .gorilladash-review-card {
        padding: 28px 20px;
        gap: 32px;
    }

    .gorilladash-review-content {
        gap: 20px;
    }

    .gorilladash-review-quote-icon {
        width: 40px;
        height: 26px;
    }

    .gorilladash-review-text {
        font-size: 16px;
        -webkit-line-clamp: 3;
    }

    .gorilladash-review-read-more {
        font-size: 14px;
    }

    .gorilladash-review-avatar {
        width: 48px;
        height: 48px;
    }

    .gorilladash-review-author-name {
        font-size: 13px;
        color: #1D1D1F;
    }

    .gorilladash-review-service-type {
        font-size: 13px;
    }

    .gorilladash-review-source-icon {
        width: 28px;
        height: 28px;
    }

    .gorilladash-carousel-nav {
        margin-top: 24px;
        gap: 10px;
    }

    .gorilladash-nav-image {
        height: 32px;
    }
}

/* ===== ACCESSIBILITY ===== */
.gorilladash-carousel-btn:focus {
    outline: none;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .gorilladash-review-carousel-track,
    .gorilladash-review-card,
    .gorilladash-carousel-btn {
        transition: none;
    }

    .gorilladash-spinner {
        animation: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .gorilladash-carousel-nav {
        display: none;
    }

    .gorilladash-review-carousel-section {
        background: white;
    }

    .gorilladash-review-carousel-title,
    .gorilladash-review-text,
    .gorilladash-review-author-name {
        color: black;
    }

    .gorilladash-review-card {
        break-inside: avoid;
        page-break-inside: avoid;
        background: white;
        border: 1px solid #D2D2D7;
    }
}

/* ===============================================
   BLOCK EDITOR COMPATIBILITY STYLES
   =============================================== */

.wp-block-gorilladash-review-carousel {
    margin: 40px 0;
}

/* Ensure the carousel container is properly styled when used as a block */
.wp-block-gorilladash-review-carousel .gorilladash-review-carousel-wrapper {
    padding: 40px 0;
}

/* Wide alignment */
.wp-block-gorilladash-review-carousel.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Full alignment */
.wp-block-gorilladash-review-carousel.alignfull {
    max-width: 100%;
}

.wp-block-gorilladash-review-carousel.alignfull .gorilladash-review-carousel-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive adjustments for block */
@media (max-width: 768px) {
    .wp-block-gorilladash-review-carousel .gorilladash-review-carousel-wrapper {
        padding: 24px 0;
    }
}

/* Override section padding when used as a block */
.wp-block-gorilladash-review-carousel .gorilladash-review-carousel-section {
    padding: 48px 0;
}
