/**
 * Coasta Google Reviews - Slider Styles
 */
.coasta-gr-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 780px;
    margin: 2em auto;
    color: #1f2937;
    box-sizing: border-box;
}

.coasta-gr-wrapper *,
.coasta-gr-wrapper *::before,
.coasta-gr-wrapper *::after {
    box-sizing: border-box;
}

/* Header */
.coasta-gr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25em;
    padding: 0 .5em;
}

.coasta-gr-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coasta-gr-header-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.coasta-gr-header-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
}

.coasta-gr-header-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    color: #4b5563;
    margin-top: 2px;
}

.coasta-gr-header-meta strong {
    color: #111827;
    font-weight: 700;
}

.coasta-gr-stars-inline {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.coasta-gr-count {
    color: #6b7280;
}

/* Slider */
.coasta-gr-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 0;
}

.coasta-gr-track {
    position: relative;
    min-height: 260px;
}

/* Cards */
.coasta-gr-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2em 3.5em;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
}

.coasta-gr-card.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s;
}

.coasta-gr-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.coasta-gr-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e5e7eb;
}

.coasta-gr-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.coasta-gr-author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.coasta-gr-author-name {
    font-weight: 600;
    color: #111827;
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coasta-gr-time {
    font-size: .8rem;
    color: #6b7280;
    margin-top: 2px;
}

.coasta-gr-google-badge {
    flex-shrink: 0;
    opacity: .85;
}

/* Stars */
.coasta-gr-stars {
    display: flex;
    gap: 1px;
    margin-bottom: 12px;
}

.coasta-gr-star.is-filled {
    color: #FBBC05;
}

.coasta-gr-star.is-empty {
    color: #e5e7eb;
}

/* Text */
.coasta-gr-text {
    font-size: .98rem;
    line-height: 1.65;
    color: #374151;
    margin: 0;
    font-style: normal;
    /* Limitează afișarea la 6 rânduri - stilul modern */
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.coasta-gr-text p {
    margin: 0 0 .5em 0;
}

.coasta-gr-text p:last-child {
    margin-bottom: 0;
}

/* Navigation */
.coasta-gr-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    z-index: 2;
    padding: 0;
}

.coasta-gr-nav:hover {
    background: #4285F4;
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.coasta-gr-nav:focus-visible {
    outline: 2px solid #4285F4;
    outline-offset: 2px;
}

.coasta-gr-prev {
    left: 12px;
}

.coasta-gr-next {
    right: 12px;
}

/* Dots */
.coasta-gr-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.coasta-gr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.coasta-gr-dot:hover {
    background: #9ca3af;
}

.coasta-gr-dot.is-active {
    background: #4285F4;
    transform: scale(1.3);
}

.coasta-gr-dot:focus-visible {
    outline: 2px solid #4285F4;
    outline-offset: 2px;
}

/* Error (doar pentru admin) */
.coasta-gr-error {
    padding: 12px 16px;
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    color: #991b1b;
    border-radius: 4px;
    font-size: .9rem;
}

/* Mobile */
@media (max-width: 600px) {
    .coasta-gr-wrapper {
        margin: 1.5em auto;
    }

    .coasta-gr-card {
        padding: 1.5em 1.25em 1.5em;
    }

    .coasta-gr-nav {
        width: 34px;
        height: 34px;
    }

    .coasta-gr-prev {
        left: 4px;
    }

    .coasta-gr-next {
        right: 4px;
    }

    .coasta-gr-track {
        min-height: 300px;
    }

    .coasta-gr-text {
        font-size: .92rem;
        -webkit-line-clamp: 8;
    }

    .coasta-gr-header {
        padding: 0 .25em;
    }

    .coasta-gr-header-title {
        font-size: 1rem;
    }
}

/* Accesibilitate - mișcare redusă */
@media (prefers-reduced-motion: reduce) {
    .coasta-gr-card {
        transition: opacity 0.2s ease, visibility 0s linear 0.2s;
        transform: none !important;
    }

    .coasta-gr-card.is-active {
        transition: opacity 0.2s ease, visibility 0s;
    }

    .coasta-gr-nav,
    .coasta-gr-dot {
        transition: none;
    }
}
