/**
 * Category Page Improvements CSS
 * Stats banner, popularity badges, trust signals, testimonials
 */

/* ============================================
   Category Stats Banner
   ============================================ */
.category-stats-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-content strong {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-content span {
    font-size: 13px;
    opacity: 0.9;
}

/* ============================================
   Trust Signals
   ============================================ */
.category-trust-signals {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.trust-signal {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
    font-size: 14px;
}

.trust-signal i {
    font-size: 24px;
    color: #10b981;
}

.trust-signal strong {
    color: #6366f1;
}

/* ============================================
   Platform Cards with Popularity
   ============================================ */
.platform-card {
    position: relative;
    overflow: visible;
}

.platform-card.popular {
    border-color: #f59e0b;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.popularity-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.popularity-badge i {
    font-size: 14px;
    animation: flicker 1.5s ease-in-out infinite;
}

.platform-popularity {
    background: #f3f4f6;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.platform-popularity i {
    color: #6366f1;
    font-size: 14px;
}

/* ============================================
   Category Testimonials
   ============================================ */
.category-testimonials-section {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 16px;
}

.category-testimonials-section h3 {
    color: #1f2937;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.category-testimonials-section h3 i {
    color: #fbbf24;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.testimonial-card-compact {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.testimonial-card-compact:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 16px;
    margin-bottom: 15px;
}

.testimonial-text {
    color: #1f2937;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-metric {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

.testimonial-metric i {
    font-size: 14px;
}

.testimonial-author-compact {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.testimonial-author-compact strong {
    color: #1f2937;
    font-size: 14px;
}

.testimonial-author-compact span {
    color: #6b7280;
    font-size: 12px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .category-stats-banner {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .category-stats-banner {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
    }

    .stat-item {
        padding: 10px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .stat-content strong {
        font-size: 20px;
    }

    .stat-content span {
        font-size: 12px;
    }

    .category-trust-signals {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }

    .trust-signal {
        justify-content: center;
    }

    .popularity-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .platform-popularity {
        font-size: 12px;
        padding: 6px 10px;
    }

    .category-testimonials-section {
        padding: 30px 20px;
    }

    .category-testimonials-section h3 {
        font-size: 20px;
        flex-direction: column;
        gap: 5px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card-compact {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .category-stats-banner {
        padding: 15px;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-text {
        font-size: 14px;
    }
}
