/**
 * Testimonials Component
 * Anasayfa yorum slider ve yorum gönderme formu
 * Universe Theme uyumlu
 */

/* ══════════════ TESTIMONIAL SLIDER ══════════════ */

.home-testimonials-section {
    background: var(--card-bg, #fff);
}

.home-testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 0 0 40px;
}

.home-testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 24px;
}

.home-testimonial-card {
    flex: 0 0 calc(50% - 12px);
    min-width: calc(50% - 12px);
    background: var(--gray-50, #fafafa);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--rui-border-color, #e1e1e1);
    box-shadow: 0 2px 12px rgba(11, 11, 11, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .25rem .75rem rgb(11 11 11 / .1);
    border-color: rgba(79, 92, 204, 0.2);
}

.home-testimonial-stars {
    color: #ffc107;
    font-size: 1.1rem;
    display: flex;
    gap: 2px;
}

.home-testimonial-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--body-color, #3f4259);
    margin: 0;
    flex: 1;
    font-style: normal;
    border: none;
    padding: 0;
    position: relative;
}

.home-testimonial-text::before {
    content: '\201C';
    font-size: 3rem;
    font-family: Georgia, serif;
    color: var(--main-theme-color, #4f5ccc);
    opacity: 0.15;
    position: absolute;
    top: -16px;
    left: -4px;
    line-height: 1;
}

.home-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--rui-border-color, #e9ecef);
}

.home-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--main-theme-color, #4f5ccc);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-testimonial-avatar span {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.home-testimonial-info {
    display: flex;
    flex-direction: column;
}

.home-testimonial-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--body-color, #3f4259);
}

.home-testimonial-type {
    font-size: 0.8rem;
    color: var(--gray-500, #6c757d);
}

/* Slider Kontrolleri */
.home-testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.home-testimonials-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50% !important;
    border: 2px solid var(--rui-border-color, #e0e0e0);
    background: var(--gray-50, #fafafa);
    color: var(--body-color, #3f4259);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    padding: 0;
    line-height: 1;
    outline: none;
}

.home-testimonials-btn:hover {
    background: var(--main-theme-color, #4f5ccc);
    border-color: var(--main-theme-color, #4f5ccc);
    color: #fff;
    transform: scale(1.05);
}

.home-testimonials-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.home-testimonials-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rui-border-color, #d0d0d0);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.home-testimonials-dot.active {
    background: var(--main-theme-color, #4f5ccc);
    width: 28px;
    border-radius: 5px;
}

/* ══════════════ TESTIMONIALS INTRO (Sol Panel) ══════════════ */

.home-testimonials-intro {
    padding-right: 20px;
}

.home-testimonials-intro .home-section-title {
    margin-bottom: 12px;
    font-size: 2rem;
    font-weight: 800;
}

.home-testimonials-intro .home-section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--main-theme-color, #4f5ccc);
    border-radius: 2px;
    margin-top: 12px;
}

.home-testimonials-intro .home-section-subtitle {
    margin-bottom: 28px;
    color: var(--text-secondary, #757474);
    line-height: 1.6;
}

.home-testimonials-count {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 8px;
}

.home-testimonials-count-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--main-theme-color, #4f5ccc);
    line-height: 1;
}

.home-testimonials-count-label {
    font-size: 0.95rem;
    color: var(--gray-500, #6c757d);
    font-weight: 500;
}

.home-testimonials-avg-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: #ffc107;
    font-size: 1.1rem;
}

/* Ürün adı badge'i */
.home-testimonial-item-name {
    font-size: 0.8rem;
    color: var(--main-theme-color, #4f5ccc);
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(79, 92, 204, 0.08);
    border-radius: 20px;
    display: inline-block;
    margin-bottom: -8px;
}

/* Devamını oku linki */
.home-testimonial-readmore {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--main-theme-color, #4f5ccc);
    text-decoration: none;
    transition: color 0.2s;
}

.home-testimonial-readmore:hover {
    color: var(--main-theme-color-dark, #3d49a8);
}

/* Tarih */
.home-testimonial-date {
    font-size: 0.75rem;
    margin-top: 2px;
}

/* ══════════════ REVIEW FORM ══════════════ */

.rui-review-form {
    background: var(--gray-50, #f8f9fa);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--rui-border-color, #e9ecef);
}

.rui-review-form-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--body-color, #3f4259);
}

.rui-star-picker-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--body-color, #3f4259);
}

.rui-star-picker-stars {
    display: flex;
    gap: 6px;
    font-size: 1.5rem;
}

.rui-star-picker-stars i {
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.rui-star-picker-stars i:hover,
.rui-star-picker-stars i.hovered {
    color: #ffc107;
    transform: scale(1.15);
}

.rui-star-picker-stars i.selected {
    color: #ffc107;
}

.rui-review-submitted,
.rui-review-login-prompt {
    background: var(--gray-50, #f8f9fa);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--gray-600, #6c757d);
}

.rui-review-login-prompt a {
    color: var(--main-theme-color, #4f5ccc);
    font-weight: 600;
}

.rui-empty-reviews {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500, #adb5bd);
}

.rui-empty-reviews i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

/* Danışmanlık detay sayfası - kullanıcının kendi yorumu */
.rui-review-section {
    border-top: 1px solid var(--rui-border-color, #e9ecef);
    padding-top: 24px;
}

.rui-review-mine {
    background: var(--gray-50, #f8f9fa);
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid var(--rui-border-color, #e9ecef);
}

.rui-review-mine .rui-review-name {
    font-size: 1rem;
    margin: 0 0 6px;
}

.rui-review-mine .rui-review-rating i {
    color: #ffc107;
}

.rui-review-mine .rui-review-content p {
    margin: 10px 0 0;
    color: var(--body-color, #3f4259);
}

/* ══════════════ RESPONSIVE ══════════════ */

@media (max-width: 992px) {
    .home-testimonials-intro {
        text-align: center;
        padding-right: 0;
        margin-bottom: 24px;
    }

    .home-testimonials-intro .home-section-title,
    .home-testimonials-intro .home-section-subtitle {
        text-align: center;
    }

    .home-testimonials-intro .home-section-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    .home-testimonials-count {
        justify-content: center;
    }

    .home-testimonials-avg-stars {
        justify-content: center;
    }

    .home-testimonial-card {
        flex: 0 0 calc(50% - 12px);
        min-width: calc(50% - 12px);
    }
}

@media (max-width: 576px) {
    .home-testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 24px;
    }

    .home-testimonials-track {
        gap: 16px;
    }

    .home-testimonials-count-number {
        font-size: 2.2rem;
    }

    .home-testimonials-intro .home-section-title {
        font-size: 1.5rem;
    }
}

/* ══════════════ DARK MODE ══════════════ */

.theme-dark .home-testimonials-section {
    background: var(--gray-100, #1e1e2e);
}

.theme-dark .home-testimonial-card {
    background: var(--body-bg, #27272a);
    border-color: var(--rui-border-color, #3f3f46);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.theme-dark .home-testimonial-card:hover {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 147, 232, 0.3);
}

.theme-dark .home-testimonial-text::before {
    color: #8b93e8;
}

.theme-dark .home-testimonial-text {
    color: var(--body-color, #e4e4e7);
}

.theme-dark .home-testimonial-name {
    color: var(--body-color, #e4e4e7);
}

.theme-dark .home-testimonial-author {
    border-top-color: var(--rui-border-color, #3f3f46);
}

.theme-dark .home-testimonials-btn {
    background: var(--body-bg, #27272a);
    border-color: var(--rui-border-color, #3f3f46);
    color: var(--body-color, #e4e4e7);
}

.theme-dark .home-testimonials-dot {
    background: var(--gray-600, #52525b);
}

.theme-dark .home-testimonial-item-name {
    background: rgba(79, 92, 204, 0.2);
    color: #8b93e8;
}

.theme-dark .home-testimonials-count-number {
    color: #8b93e8;
}

.theme-dark .home-testimonial-readmore {
    color: #8b93e8;
}

.theme-dark .rui-review-form {
    background: var(--gray-100, #27272a);
    border-color: var(--rui-border-color, #3f3f46);
}

.theme-dark .rui-review-form-title {
    color: var(--body-color, #e4e4e7);
}

.theme-dark .rui-star-picker-stars i {
    color: var(--gray-600, #52525b);
}

.theme-dark .rui-review-submitted,
.theme-dark .rui-review-login-prompt {
    background: var(--gray-100, #27272a);
}

.theme-dark .rui-empty-reviews {
    color: var(--gray-500, #71717a);
}
