/* Opinions Module Styles - Matching News Module with Better Cards */

/* Hide scrollbar for webkit browsers */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* Smooth scrolling for mobile */
.tw-overflow-auto {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Opinion card animations */
.tw-transition-all {
    position: relative;
    overflow: hidden;
}

.tw-transition-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.tw-transition-all:hover::before {
    left: 100%;
}

/* Touch-friendly scrolling on mobile */
@media (hover: none) and (pointer: coarse) {
    .tw-overflow-auto {
        scroll-snap-type: x mandatory;
    }
    
    .tw-snap-start {
        scroll-snap-align: start;
    }
}

/* Star rating styles */
.fa-star {
    transition: color 0.3s ease;
}

/* Loading animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tw-transition-all {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation for multiple cards */
.tw-transition-all:nth-child(1) { animation-delay: 0.1s; }
.tw-transition-all:nth-child(2) { animation-delay: 0.2s; }
.tw-transition-all:nth-child(3) { animation-delay: 0.3s; }
.tw-transition-all:nth-child(4) { animation-delay: 0.4s; }
.tw-transition-all:nth-child(5) { animation-delay: 0.5s; }
.tw-transition-all:nth-child(6) { animation-delay: 0.6s; }

/* Line clamp for text truncation */
.tw-line-clamp-6 {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
} 