/* Trustpilot Reviews Page Styles */
/* Additional animations and enhancements */

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Review cards animation on load */
.review-card {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }
.review-card:nth-child(6) { animation-delay: 0.6s; }

/* Star rating hover effect */
.review-rating {
    position: relative;
}

.review-rating::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: #00b67a;
    transition: width 0.3s ease;
}

.review-card:hover .review-rating::after {
    width: 100%;
}

/* Avatar hover effect */
.reviewer-avatar {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reviewer-avatar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.review-card:hover .reviewer-avatar::before {
    width: 100px;
    height: 100px;
}

/* Verified badge animation */
.verified-badge {
    position: relative;
    overflow: hidden;
}

.verified-badge::after {
    content: '✓';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.review-card:hover .verified-badge::after {
    right: 4px;
    opacity: 1;
}

/* Treatment tag hover effect */
.review-treatment {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.review-treatment:hover {
    background-color: #00b67a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 182, 122, 0.2);
}

/* Progress bars for star ratings */
.rating-distribution {
    margin-top: 24px;
    padding: 24px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rating-label {
    min-width: 60px;
    font-size: 14px;
    color: #697586;
}

.rating-progress {
    flex: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.rating-fill {
    height: 100%;
    background-color: #00b67a;
    border-radius: 4px;
    transition: width 0.8s ease;
    position: relative;
}

.rating-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.rating-count {
    min-width: 40px;
    text-align: right;
    font-size: 14px;
    color: #697586;
}

/* Floating action button */
.floating-review-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #00b67a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 182, 122, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-review-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 182, 122, 0.4);
}

.floating-review-btn svg {
    width: 24px;
    height: 24px;
}

/* Tooltip */
.tooltip {
    position: absolute;
    background-color: #191919;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tooltip.show {
    opacity: 1;
}

/* Loading skeleton */
.review-skeleton {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.skeleton-header {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-text.name {
    width: 120px;
    margin-bottom: 8px;
}

.skeleton-text.meta {
    width: 180px;
}

.skeleton-text.title {
    width: 60%;
    height: 20px;
    margin-bottom: 12px;
}

.skeleton-text.content {
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-text.content:nth-child(2) {
    width: 90%;
}

.skeleton-text.content:nth-child(3) {
    width: 95%;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Trust score animation */
.trustscore-number {
    position: relative;
}

.trustscore-number::after {
    content: attr(data-score);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #00b67a;
    opacity: 0;
    animation: scoreGlow 3s infinite;
}

@keyframes scoreGlow {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .floating-review-btn {
        width: 50px;
        height: 50px;
        bottom: 16px;
        right: 16px;
    }
    
    .review-card {
        padding: 16px;
    }
    
    .helpful-section {
        font-size: 12px;
    }
    
    .review-treatment {
        font-size: 12px;
        padding: 3px 10px;
    }
}


/* Print styles */
@media print {
    .header,
    .filter-section,
    .floating-review-btn,
    .load-more-section,
    .trustpilot-cta {
        display: none;
    }
    
    .review-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }
}