/* ============================================================
   AE24 Google Reviews - Frontend Styles v7.0
   Matching HTML Preview Exactly
============================================================ */

/* ============================================================
   CSS VARIABLES (Defaults - overridden by inline styles)
============================================================ */
.ae24-testimonials {
    --ae24-max-width: 1140px;
    --ae24-section-padding-top: 48px;
    --ae24-section-padding-bottom: 48px;
    --ae24-section-padding-left: 20px;
    --ae24-section-padding-right: 20px;
    --ae24-header-margin-bottom: 40px;
    --ae24-card-spacing: 32px;
    --ae24-pagination-position: 24px;
    --ae24-card-border-radius: 16px;
    --ae24-card-padding: 28px;
    --ae24-card-min-height: 220px;
    --ae24-line-thickness: 3px;
    --ae24-line-width: 100%;
    --ae24-primary-color: #66B94A;
    --ae24-primary-color-end: #00D563;
    --ae24-avatar-size: 44px;
    --ae24-avatar-radius: 50%;
    --ae24-shadow-badge: 0 2px 12px rgba(0,0,0,0.06);
    --ae24-shadow-card: none;
    --ae24-shadow-card-hover: none;
    --ae24-shadow-avatar: 0 4px 12px rgba(102,185,74,0.35);
    --ae24-shadow-arrows: 0 2px 12px rgba(0,0,0,0.1);
    --ae24-card-hover-transform: none;
    --ae24-grid-columns-desktop: 3;
    --ae24-grid-columns-tablet: 2;
    --ae24-grid-columns-mobile: 1;
    
    /* Internal spacing variables */
    --ae24-text-margin-bottom: 0;
    --ae24-text-padding-right: 32px;
    --ae24-author-padding-top: 16px;
    --ae24-author-margin-top: 20px;
    --ae24-author-gap: 14px;
    --ae24-stars-margin-bottom: 12px;
    --ae24-quote-top: 16px;
    --ae24-quote-right: 20px;
    --ae24-quote-size: 52px;
    
    max-width: var(--ae24-max-width);
    margin: 0 auto;
    padding: var(--ae24-section-padding-top) var(--ae24-section-padding-right) var(--ae24-section-padding-bottom) var(--ae24-section-padding-left);
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
   HEADER STYLES
============================================================ */
.ae24-testimonials__header {
    text-align: center;
    margin-bottom: var(--ae24-header-margin-bottom);
}

/* Pill Header */
.ae24-header--pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: #ffffff;
    border: 1px solid rgba(102, 185, 74, 0.2);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    box-shadow: var(--ae24-shadow-badge);
}

.ae24-header__dot {
    width: 8px;
    height: 8px;
    background: var(--ae24-primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Rating Header */
.ae24-header--rating {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 28px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--ae24-shadow-badge);
}

.ae24-header__score {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.ae24-header__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.ae24-header__stars {
    display: flex;
    gap: 2px;
}

.ae24-header__count {
    font-size: 13px;
    color: #666;
}

/* Google Header */
.ae24-header--google {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: var(--ae24-shadow-badge);
}

.ae24-header__glogo {
    flex-shrink: 0;
}

.ae24-header__ginfo {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ae24-header__gtitle {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.ae24-header__grating {
    font-size: 14px;
    color: #5f6368;
}

/* ============================================================
   STAR RATINGS
============================================================ */
.ae24-star {
    width: 18px;
    height: 18px;
}

.ae24-star--full {
    fill: #FBBC04;
}

.ae24-star--half {
    fill: #FBBC04;
    opacity: 0.6;
}

.ae24-star--empty {
    fill: #dadce0;
}

.ae24-review__stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--ae24-stars-margin-bottom);
}

.ae24-review__stars .ae24-star {
    width: 16px;
    height: 16px;
}

/* ============================================================
   GRID LAYOUT
============================================================ */
.ae24-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(var(--ae24-grid-columns-mobile), 1fr);
    gap: var(--ae24-card-spacing);
}

@media (min-width: 768px) {
    .ae24-testimonials__grid {
        grid-template-columns: repeat(var(--ae24-grid-columns-tablet), 1fr);
    }
}

@media (min-width: 1024px) {
    .ae24-testimonials__grid {
        grid-template-columns: repeat(var(--ae24-grid-columns-desktop), 1fr);
    }
}

/* ============================================================
   SWIPER LAYOUT
============================================================ */
.ae24-swiper-wrapper {
    position: relative;
}

.ae24-swiper {
    overflow: hidden;
}

.ae24-swiper .swiper-slide {
    height: auto;
}

/* ============================================================
   BASE REVIEW CARD
============================================================ */
.ae24-review {
    background: #ffffff;
    border-radius: var(--ae24-card-border-radius);
    padding: var(--ae24-card-padding);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: var(--ae24-card-min-height);
    height: 100%;
    box-sizing: border-box;
    box-shadow: var(--ae24-shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ae24-review:hover {
    transform: var(--ae24-card-hover-transform);
    box-shadow: var(--ae24-shadow-card-hover);
}

/* Quote Mark */
.ae24-review__quote {
    position: absolute;
    top: var(--ae24-quote-top);
    right: var(--ae24-quote-right);
    font-size: var(--ae24-quote-size);
    font-family: Georgia, serif;
    color: rgba(102, 185, 74, 0.1);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* Review Text */
.ae24-review__text {
    font-size: 15px;
    line-height: 1.75;
    color: #333;
    margin: 0 0 var(--ae24-text-margin-bottom) 0;
    padding-right: var(--ae24-text-padding-right);
    flex: 1;
}

/* Author Section */
.ae24-review__author {
    display: flex;
    align-items: center;
    gap: var(--ae24-author-gap);
    padding-top: var(--ae24-author-padding-top);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: var(--ae24-author-margin-top);
}

/* Avatar */
.ae24-review__avatar {
    width: var(--ae24-avatar-size);
    height: var(--ae24-avatar-size);
    border-radius: var(--ae24-avatar-radius);
    background: linear-gradient(135deg, var(--ae24-primary-color) 0%, var(--ae24-primary-color-end) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: var(--ae24-shadow-avatar);
}

.ae24-review__info {
    flex: 1;
    min-width: 0;
}

.ae24-review__name {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.ae24-review__meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #888;
}

.ae24-review__location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ae24-review__location svg {
    width: 13px;
    height: 13px;
    color: var(--ae24-primary-color);
    flex-shrink: 0;
}

/* Google Badge */
.ae24-review__google {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #5f6368;
    margin-top: 4px;
}

.ae24-review__google svg {
    flex-shrink: 0;
}

/* ============================================================
   CARD STYLE: TOP LINE (Default)
============================================================ */
.ae24-review--top-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--ae24-line-width);
    max-width: calc(100% - 48px);
    height: var(--ae24-line-thickness);
    background: linear-gradient(90deg, var(--ae24-primary-color), var(--ae24-primary-color-end));
    border-radius: 0 0 4px 4px;
}

/* ============================================================
   CARD STYLE: LEFT BORDER
============================================================ */
.ae24-review--left-border {
    border-left: var(--ae24-line-thickness) solid var(--ae24-primary-color);
    border-radius: 0 var(--ae24-card-border-radius) var(--ae24-card-border-radius) 0;
}

/* ============================================================
   CARD STYLE: BORDERED
============================================================ */
.ae24-review--bordered {
    border: 1px solid #e5e5e5;
    box-shadow: none;
}

.ae24-review--bordered:hover {
    border-color: var(--ae24-primary-color);
    box-shadow: 0 0 0 1px var(--ae24-primary-color);
}

/* ============================================================
   CARD STYLE: GRADIENT BACKGROUND
============================================================ */
.ae24-review--gradient {
    background: linear-gradient(135deg, rgba(102, 185, 74, 0.04) 0%, #ffffff 50%, rgba(0, 213, 99, 0.03) 100%);
    border: 1px solid rgba(102, 185, 74, 0.12);
}

/* ============================================================
   CARD STYLE: ELEVATED
============================================================ */
.ae24-review--elevated {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.ae24-review--elevated:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* ============================================================
   CARD STYLE: CLEAN (Like top-line but without the line)
============================================================ */
.ae24-review--clean {
    background: #ffffff;
}

/* ============================================================
   CARD STYLE: MINIMAL
============================================================ */
.ae24-review--minimal {
    background: #fafafa;
    border-radius: 8px;
}

.ae24-review--minimal .ae24-review__quote {
    display: none;
}

.ae24-review--minimal .ae24-review__author {
    border-top: none;
    padding-top: 12px;
}

/* ============================================================
   AVATAR SHAPES
============================================================ */
.ae24-review--avatar-circle .ae24-review__avatar {
    border-radius: 50%;
}

.ae24-review--avatar-rounded-square .ae24-review__avatar {
    border-radius: 12px;
}

/* ============================================================
   PAGINATION
============================================================ */
.ae24-swiper-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: var(--ae24-pagination-position);
}

.ae24-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #d0d0d0;
    opacity: 1;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ae24-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--ae24-primary-color);
    width: 24px;
}

/* ============================================================
   NAVIGATION ARROWS
============================================================ */
.ae24-swiper-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: var(--ae24-shadow-arrows);
}

.ae24-swiper-nav:hover {
    border-color: var(--ae24-primary-color);
    box-shadow: 0 4px 20px rgba(102, 185, 74, 0.25);
}

.ae24-swiper-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.ae24-swiper-nav svg {
    width: 20px;
    height: 20px;
    color: #333;
}

.ae24-swiper-nav.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ae24-swiper-prev {
    left: -24px;
}

.ae24-swiper-next {
    right: -24px;
}

/* Default: show arrows on desktop only (1200px+) */
@media (min-width: 1200px) {
    .ae24-swiper-nav {
        display: flex;
    }
}

@media (max-width: 1200px) {
    .ae24-swiper-prev {
        left: 8px;
    }
    
    .ae24-swiper-next {
        right: 8px;
    }
}

/* ============================================================
   RESPONSIVE - TABLET (768px - 1023px)
============================================================ */
@media (max-width: 1023px) and (min-width: 768px) {
    .ae24-testimonials {
        padding: 40px 16px;
    }
    
    .ae24-testimonials__header {
        margin-bottom: 32px;
    }
    
    .ae24-review {
        padding: 24px;
        min-height: 200px;
        border-radius: 14px;
    }
    
    .ae24-review__quote {
        font-size: 46px;
        top: 14px;
        right: 18px;
    }
    
    .ae24-review__text {
        font-size: 14px;
        line-height: 1.7;
        padding-right: 28px;
    }
    
    .ae24-review__author {
        gap: 12px;
        margin-top: 16px;
        padding-top: 14px;
    }
    
    .ae24-review__avatar {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
    
    .ae24-review__name {
        font-size: 14px;
    }
    
    .ae24-review__location {
        font-size: 12px;
    }
    
    .ae24-header--pill {
        padding: 10px 22px;
        font-size: 14px;
    }
    
    .ae24-header--rating {
        padding: 14px 22px;
        gap: 14px;
    }
    
    .ae24-header__score {
        font-size: 32px;
    }
}

/* ============================================================
   RESPONSIVE - MOBILE (max 767px)
============================================================ */
@media (max-width: 767px) {
    .ae24-testimonials {
        padding: 32px 16px;
        --ae24-card-spacing: 16px;
    }
    
    .ae24-testimonials__header {
        margin-bottom: 24px;
    }
    
    /* Header - Pill */
    .ae24-header--pill {
        padding: 10px 18px;
        font-size: 13px;
        gap: 8px;
        border-radius: 40px;
    }
    
    .ae24-header__dot {
        width: 6px;
        height: 6px;
    }
    
    /* Header - Rating */
    .ae24-header--rating {
        padding: 12px 18px;
        gap: 12px;
        border-radius: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .ae24-header__score {
        font-size: 28px;
    }
    
    .ae24-header__info {
        text-align: center;
    }
    
    .ae24-header__stars {
        justify-content: center;
    }
    
    .ae24-header__count {
        font-size: 12px;
    }
    
    /* Header - Google */
    .ae24-header--google {
        padding: 12px 16px;
        gap: 10px;
        border-radius: 10px;
    }
    
    .ae24-header--google svg {
        width: 32px;
        height: 32px;
    }
    
    .ae24-header__gtitle {
        font-size: 14px;
    }
    
    .ae24-header__grating {
        font-size: 12px;
    }
    
    /* Cards */
    .ae24-review {
        padding: 20px;
        min-height: auto;
        border-radius: 12px;
    }
    
    /* Quote - smaller and less intrusive on mobile */
    .ae24-review__quote {
        font-size: 36px;
        top: 10px;
        right: 14px;
        opacity: 0.7;
    }
    
    /* Text */
    .ae24-review__text {
        font-size: 14px;
        line-height: 1.65;
        padding-right: 20px;
    }
    
    /* Author section */
    .ae24-review__author {
        gap: 10px;
        margin-top: 14px;
        padding-top: 12px;
    }
    
    /* Avatar */
    .ae24-review__avatar {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .ae24-review--avatar-rounded-square .ae24-review__avatar {
        border-radius: 8px;
    }
    
    .ae24-review__name {
        font-size: 13px;
        margin-bottom: 1px;
    }
    
    .ae24-review__meta {
        font-size: 11px;
    }
    
    .ae24-review__location {
        gap: 3px;
    }
    
    .ae24-review__location svg {
        width: 11px;
        height: 11px;
    }
    
    .ae24-review__google {
        font-size: 11px;
        margin-top: 3px;
    }
    
    .ae24-review__google svg {
        width: 12px;
        height: 12px;
    }
    
    /* Stars on cards */
    .ae24-review__stars {
        margin-bottom: 10px;
    }
    
    .ae24-review__stars .ae24-star {
        width: 14px;
        height: 14px;
    }
    
    /* Card styles adjustments */
    .ae24-review--top-line::before {
        max-width: calc(100% - 32px);
        height: 2px;
    }
    
    .ae24-review--left-border {
        border-left-width: 3px;
        border-radius: 0 12px 12px 0;
    }
    
    .ae24-review--elevated {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .ae24-review--elevated:hover {
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
        transform: none;
    }
    
    /* Disable hover effects on mobile */
    .ae24-review:hover {
        transform: none;
    }
    
    /* Pagination */
    .ae24-swiper-pagination {
        margin-top: 20px;
        gap: 6px;
    }
    
    .ae24-swiper-pagination .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }
    
    .ae24-swiper-pagination .swiper-pagination-bullet-active {
        width: 18px;
    }
    
    /* Grid layout mobile */
    .ae24-testimonials__grid {
        gap: 16px;
    }
}

/* ============================================================
   RESPONSIVE - SMALL MOBILE (max 480px)
============================================================ */
@media (max-width: 480px) {
    .ae24-testimonials {
        padding: 24px 12px;
    }
    
    .ae24-testimonials__header {
        margin-bottom: 20px;
    }
    
    .ae24-header--pill {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .ae24-header--rating {
        padding: 10px 14px;
        gap: 10px;
    }
    
    .ae24-header__score {
        font-size: 24px;
    }
    
    .ae24-review {
        padding: 16px;
        border-radius: 10px;
    }
    
    .ae24-review__quote {
        font-size: 32px;
        top: 8px;
        right: 12px;
    }
    
    .ae24-review__text {
        font-size: 13px;
        line-height: 1.6;
        padding-right: 16px;
    }
    
    .ae24-review__author {
        gap: 8px;
        margin-top: 12px;
        padding-top: 10px;
    }
    
    .ae24-review__avatar {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
    
    .ae24-review__name {
        font-size: 12px;
    }
    
    .ae24-review__meta {
        font-size: 10px;
    }
    
    .ae24-review__google {
        font-size: 10px;
    }
    
    .ae24-swiper-pagination {
        margin-top: 16px;
    }
}

/* ============================================================
   NO REVIEWS MESSAGE
============================================================ */
.ae24-no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* ============================================================
   UTILITY
============================================================ */
.hidden {
    display: none !important;
}
