/* BioInsul - Custom Styles */

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ==================== TOP 3 PODIUM - PREMIUM 3D DESIGN ==================== */

/* Podium container with perspective for 3D effects */
.podium-container {
    perspective: 1000px;
}

/* Card base with 3D transform */
.podium-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.podium-card:hover {
    transform: translateY(-15px) rotateX(2deg);
}

/* Gold card special glow */
.podium-gold {
    animation: goldGlow 3s ease-in-out infinite alternate;
}

@keyframes goldGlow {
    0% {
        box-shadow: 0 25px 50px -15px rgba(245,158,11,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    }
    100% {
        box-shadow: 0 25px 60px -10px rgba(245,158,11,0.6), inset 0 1px 0 rgba(255,255,255,0.3);
    }
}

/* Shine sweep animation */
@keyframes shineSweep {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    animation: shineSweep 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}

/* Score number pulse */
.score-glow {
    animation: scoreGlow 2s ease-in-out infinite alternate;
}

@keyframes scoreGlow {
    0% {
        text-shadow: 0 0 20px rgba(255,255,255,0.3);
    }
    100% {
        text-shadow: 0 0 40px rgba(255,255,255,0.6), 0 0 80px rgba(251,191,36,0.4);
    }
}

/* Badge bounce on hover */
.badge-hover:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Floating animation for leader crown */
@keyframes floatCrown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.crown-float {
    animation: floatCrown 2s ease-in-out infinite;
}

/* Smooth transitions */
.modal-enter {
    animation: modalEnter 0.3s ease-out;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Product Card Styles */
.product-card {
    transition: all 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card.leader {
    border-color: #fbbf24;
    box-shadow: 0 0 0 1px #fbbf24;
}

/* Score Colors */
.score-excellent {
    background-color: #dcfce7;
    color: #15803d;
}

.score-good {
    background-color: #ecfccb;
    color: #65a30d;
}

.score-average {
    background-color: #fef9c3;
    color: #ca8a04;
}

.score-low {
    background-color: #ffedd5;
    color: #ea580c;
}

/* Badge Colors */
.badge-leader {
    background-color: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

.badge-acoustic {
    background-color: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.badge-carbon {
    background-color: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}

.badge-lab {
    background-color: #f3e8ff;
    color: #7c3aed;
    border-color: #e9d5ff;
}

.badge-default {
    background-color: #e0e7ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

/* Badge Partenaire */
.badge-partner {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4f46e5;
    border-color: #a5b4fc;
}

/* Badge Thermique */
.badge-thermal {
    background-color: #fef3c7;
    color: #d97706;
    border-color: #fde68a;
}

/* Badge Certifié */
.badge-certified {
    background-color: #d1fae5;
    color: #059669;
    border-color: #a7f3d0;
}

/* Partner Card Style */
.product-card.partner {
    border-color: #a5b4fc;
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}

.product-card.partner:hover {
    border-color: #818cf8;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

/* Compare Button Active State */
.compare-btn-active {
    background-color: #ecfdf5;
    border-color: #059669;
    color: #047857;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Chart Container */
.chart-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .product-card {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
}

/* Leader badge positioning */
.leader-badge {
    position: absolute;
    top: -0.75rem;
    left: 1rem;
    z-index: 10;
}

/* Sticky header shadow on scroll */
.header-scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Focus states for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Pulse animation for badges */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Table hover effect */
tbody tr:hover {
    background-color: #f8fafc;
}

/* Transition for modal backgrounds */
.modal-backdrop {
    transition: opacity 0.2s ease;
}

/* Custom checkbox style for compare */
.compare-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.375rem;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.compare-checkbox.checked {
    background-color: #059669;
    border-color: #059669;
    color: white;
}

/* Hero gradient overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.9) 0%, rgba(13, 148, 136, 0.85) 50%, rgba(6, 95, 70, 0.9) 100%);
}

/* Card grid responsive */
@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    .product-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
