/**
 * Pretpot Floating Testimonials Styles
 */

/* Wrapper */
.pretpot-ft-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Header */
.pretpot-ft-header {
    margin-bottom: 30px;
}

.pretpot-ft-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
}

.pretpot-ft-subtitle {
    margin: 10px 0 0;
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Container */
.pretpot-ft-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

/* Base Item Styles */
.pretpot-ft-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    /* CSS Variables for animation */
    --float-duration: 6s;
    --float-distance: 20px;
    --float-delay: 0s;
}

.pretpot-ft-item:hover {
    z-index: 10;
}

.pretpot-ft-item:focus {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* ========== FLOATING ANIMATION ========== */
.pretpot-ft-item[data-float="yes"] {
    animation-name: pretpot-ft-float;
    animation-duration: var(--float-duration);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-delay: var(--float-delay);
}

/* Staggered animations for variety */
.pretpot-ft-item[data-float="yes"]:nth-child(2) {
    animation-delay: calc(var(--float-delay) - 1s);
    animation-duration: calc(var(--float-duration) * 1.1);
}

.pretpot-ft-item[data-float="yes"]:nth-child(3) {
    animation-delay: calc(var(--float-delay) - 2s);
    animation-duration: calc(var(--float-duration) * 0.9);
}

.pretpot-ft-item[data-float="yes"]:nth-child(4) {
    animation-delay: calc(var(--float-delay) - 3s);
}

@keyframes pretpot-ft-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(calc(var(--float-distance) * -0.5)) translateX(2px);
    }
    50% {
        transform: translateY(calc(var(--float-distance) * -1)) translateX(-2px);
    }
    75% {
        transform: translateY(calc(var(--float-distance) * -0.5)) translateX(2px);
    }
}

/* ========== ROUND STYLE (BUBBLES) ========== */
.pretpot-ft-bubble {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pretpot-ft-bubble:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.pretpot-ft-bubble-inner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: inherit;
}

.pretpot-ft-bubble img,
.pretpot-ft-bubble-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pretpot-ft-bubble:hover img {
    transform: scale(1.1);
}

/* ========== PILL STYLE ========== */
.pretpot-ft-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    padding: 8px 16px 8px 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pretpot-ft-pill:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.pretpot-ft-pill-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
}

.pretpot-ft-pill-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pretpot-ft-pill-name {
    margin-left: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    color: #ffffff;
}

/* Placeholder */
.pretpot-ft-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
}

.pretpot-ft-placeholder i {
    font-size: inherit;
}

/* ========== MODAL ========== */
.pretpot-ft-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.pretpot-ft-modal.active {
    opacity: 1;
    visibility: visible;
}

.pretpot-ft-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
}

.pretpot-ft-modal-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.3);
}

.pretpot-ft-modal.active .pretpot-ft-modal-content {
    transform: scale(1) translateY(0);
}

.pretpot-ft-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: #666;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 2;
}

.pretpot-ft-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
    color: #333;
}

.pretpot-ft-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.pretpot-ft-modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    background: #f0f0f0;
}

.pretpot-ft-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pretpot-ft-modal-meta {
    flex: 1;
    min-width: 0;
}

.pretpot-ft-modal-name {
    margin: 0 0 5px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.pretpot-ft-modal-position {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

.pretpot-ft-modal-body {
    position: relative;
    padding-left: 20px;
    border-left: 3px solid #667eea;
    margin-bottom: 20px;
}

.pretpot-ft-quote-icon {
    position: absolute;
    top: -10px;
    left: -15px;
    font-size: 40px;
    color: #667eea;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.pretpot-ft-modal-text {
    margin: 0;
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

.pretpot-ft-modal-rating {
    color: #ffc107;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .pretpot-ft-modal-content {
        padding: 25px;
        margin: 10px;
    }
    
    .pretpot-ft-modal-avatar {
        width: 60px;
        height: 60px;
    }
    
    .pretpot-ft-modal-name {
        font-size: 1.2rem;
    }
    
    .pretpot-ft-bubble {
        width: 60px;
        height: 60px;
    }
    
    .pretpot-ft-pill {
        padding: 6px 12px 6px 6px;
    }
    
    .pretpot-ft-pill-avatar {
        width: 40px;
        height: 40px;
    }
    
    .pretpot-ft-pill-name {
        font-size: 0.85rem;
        margin-left: 8px;
    }
}