/**
 * Elfsight-Style Google Reviews for Riva Hotel Alsancak
 * Matching Elfsight widget design exactly
 */

/* Main Container */
#google-reviews-carousel {
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Carousel Wrapper to contain arrows */
.riva-owl__carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

@media (max-width: 768px) {
    .riva-owl__carousel-wrapper {
        padding: 0 30px;
    }
}

@media (max-width: 480px) {
    .riva-owl__carousel-wrapper {
        padding: 0;
    }
}

/* Review Card - Elfsight Style */
.testimonials-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 10px;
    min-height: 280px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonials-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.testimonials-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header Section */
.testimonials-card__top {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.testimonials-card__image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.testimonials-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials-card__image__placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.testimonials-card__top__content {
    flex: 1;
    min-width: 0;
}

.testimonials-card__name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #202124;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
}

.testimonials-card__ratings {
    display: flex;
    align-items: center;
    gap: 2px;
}

.testimonials-card__ratings i {
    font-size: 16px;
    color: #fbbc04;
}

.testimonials-card__ratings i.far {
    color: #dadce0;
}

/* Content Section */
.testimonials-card__content {
    flex: 1;
    margin-bottom: 12px;
}

.testimonials-card__text {
    color: #5f6368;
    line-height: 1.6;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 84px;
    display: block;
}

/* Meta Section */
.testimonials-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #5f6368;
    margin-top: auto;
}

.testimonials-card__date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.testimonials-card__date i {
    font-size: 12px;
    color: #80868b;
}

.testimonials-card__source {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #4285f4;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.testimonials-card__source i {
    font-size: 14px;
}

/* Google Logo Style */
.testimonials-card__source .fab.fa-google {
    background: linear-gradient(to right, #4285f4, #34a853, #fbbc04, #ea4335);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Overall Rating Section */
.testimonials-one__content__ratings {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 12px 0;
}

.testimonials-one__content__ratings i {
    color: #fbbc04;
    font-size: 22px;
}

.testimonials-one__content__ratings i.far {
    color: #dadce0;
}

.testimonials-one__content__text {
    font-size: 15px;
    color: #5f6368;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 8px 0 0 0;
}

/* Owl Carousel Customization - Elfsight Style */
#google-reviews-carousel.owl-carousel {
    position: relative;
}

#google-reviews-carousel.owl-carousel .owl-stage-outer {
    padding: 10px 0;
    overflow: visible;
}

#google-reviews-carousel.owl-carousel .owl-item {
    opacity: 1;
}

#google-reviews-carousel.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
    margin: 0;
}

#google-reviews-carousel.owl-carousel .owl-nav button {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff !important;
    color: #5f6368 !important;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

#google-reviews-carousel.owl-carousel .owl-nav button.owl-prev {
    left: 0;
}

#google-reviews-carousel.owl-carousel .owl-nav button.owl-next {
    right: 0;
}

#google-reviews-carousel.owl-carousel .owl-nav button:hover {
    background: #f8f9fa !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

#google-reviews-carousel.owl-carousel .owl-nav button.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#google-reviews-carousel.owl-carousel .owl-dots {
    display: none !important;
}

#google-reviews-carousel.owl-carousel .owl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dadce0;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    outline: none;
}

#google-reviews-carousel.owl-carousel .owl-dot:hover {
    background: #bdc1c6;
}

#google-reviews-carousel.owl-carousel .owl-dot.active {
    background: #4285f4;
    width: 24px;
    border-radius: 4px;
}

/* Loading State */
.testimonials-loading {
    text-align: center;
    padding: 60px 20px;
    color: #5f6368;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.testimonials-loading i {
    font-size: 36px;
    color: #4285f4;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.testimonials-error {
    text-align: center;
    padding: 40px 20px;
    color: #ea4335;
    background: #fce8e6;
    border-radius: 8px;
    margin: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-card {
        padding: 20px;
        min-height: 240px;
        margin: 8px;
    }
    
    .testimonials-card__image,
    .testimonials-card__image__placeholder {
        width: 40px;
        height: 40px;
    }
    
    .testimonials-card__image__placeholder {
        font-size: 18px;
    }
    
    .testimonials-card__name {
        font-size: 14px;
    }
    
    .testimonials-card__text {
        font-size: 13px;
    }
    
    .testimonials-card__meta {
        font-size: 12px;
    }
    
    #google-reviews-carousel.owl-carousel .owl-nav button {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    #google-reviews-carousel.owl-carousel .owl-nav button.owl-prev {
        left: -10px;
    }
    
    #google-reviews-carousel.owl-carousel .owl-nav button.owl-next {
        right: -10px;
    }
}

@media (max-width: 480px) {
    .testimonials-card {
        padding: 16px;
        margin: 6px;
    }
    
    #google-reviews-carousel.owl-carousel .owl-nav {
        display: none;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonials-card {
    animation: fadeInUp 0.5s ease-out;
}
