/* ========================================
   OPINIE KLIENTÓW I FAQ - PEARL THEME
   ======================================== */

/* ===== KLIKALNE LOGO KLIENTA Z TOOLTIPEM ===== */
.client-logo-clickable {
    cursor: pointer;
    position: relative;
    transition: all var(--transition-base);
}

.client-logo-clickable:hover {
    transform: translateY(-8px) scale(1.05);
    z-index: 100;
}

.client-logo-clickable:hover .client-logo-placeholder {
    border-color: var(--brand-green);
    box-shadow: var(--shadow-2xl);
}

.client-logo-tooltip {
    position: absolute;
    bottom: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    width: 280px;
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--brand-green);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.client-logo-clickable:hover .client-logo-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: all;
}

.client-logo-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.tooltip-stars {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.tooltip-stars svg {
    width: 16px;
    height: 16px;
    fill: #FFC107;
}

.tooltip-preview {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.tooltip-author {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    margin-bottom: 0.5rem;
}

.tooltip-cta {
    text-align: center;
    padding: 0.5rem;
    background: var(--gradient-brand-soft);
    color: var(--brand-blue);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
}

/* ===== MODAL OPINII ===== */
.testimonial-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 45, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9998;
    animation: fadeIn 0.3s ease-out;
}

.testimonial-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-modal.modal-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}

.testimonial-modal-content {
    padding: 3rem 2.5rem;
    position: relative;
}

.testimonial-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
}

.testimonial-modal-close:hover {
    background: #DC2626;
    color: white;
    transform: rotate(90deg);
}

.testimonial-modal-close svg {
    width: 20px;
    height: 20px;
}

.testimonial-modal-company-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-brand-soft);
    color: var(--brand-blue);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.testimonial-modal-quote-icon {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--brand-green);
    opacity: 0.2;
}

.testimonial-modal-quote-icon svg {
    width: 48px;
    height: 48px;
}

.testimonial-modal-text {
    margin-bottom: 2rem;
}

.testimonial-modal-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
}

.testimonial-modal-author {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-100);
}

.testimonial-modal-author h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.testimonial-modal-author p {
    font-size: 1rem;
    color: var(--text-tertiary);
}

.testimonial-modal-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: center;
    margin-top: 1rem;
}

.testimonial-modal-rating svg {
    width: 20px;
    height: 20px;
    fill: #FFC107;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 768px) {
    .client-logo-tooltip {
        width: 240px;
        padding: 1rem;
    }

    .testimonial-modal {
        width: 95%;
        max-height: 90vh;
    }

    .testimonial-modal-content {
        padding: 2rem 1.5rem;
    }

    .testimonial-modal-text p {
        font-size: 1rem;
    }

    .testimonial-modal-author h3 {
        font-size: 1.25rem;
    }
}

.testimonial-modal::-webkit-scrollbar {
    width: 6px;
}

.testimonial-modal::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius-md);
}

.testimonial-modal::-webkit-scrollbar-thumb {
    background: var(--brand-green);
    border-radius: var(--radius-md);
}

.testimonial-modal::-webkit-scrollbar-thumb:hover {
    background: var(--brand-blue);
}