/* =========================================
   HERO BANNERS - Digital Noir × Data Network
   Premium animated banners for Power Club
   ========================================= */

/* === FONTS === */
/* MOVED TO base.html.twig with async loading - DO NOT use @import here */

/* === VARIABLES === */
:root {
    --hero-accent: #00D4FF;
    --hero-accent-light: #5DE5FF;
    --hero-accent-dark: #00A3CC;
    --hero-dark: #0A0A0F;
    --hero-dark-soft: #12121A;
    --hero-primary: #4564ff;
    --hero-primary-light: #638fff;
}

/* =========================================
   1. HERO BANNER - PACK 1M FOURNISSEURS
   ========================================= */

.hero-suppliers {
    position: relative;
    min-height: 380px;
    background: linear-gradient(135deg, var(--hero-dark) 0%, var(--hero-dark-soft) 50%, #0D0D15 100%);
    border-radius: 1.5rem;
    overflow: hidden;
    isolation: isolate;
}

/* Animated Grid Background - Delayed for better LCP */
.hero-suppliers::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    animation-delay: 1s;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Radial Glow */
.hero-suppliers::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(99, 143, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* Network Canvas */
.network-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Globe Silhouette - Optimized: removed expensive drop-shadow filter */
.globe-silhouette {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    height: 100%;
    opacity: 0.4;
    z-index: 2;
    /* filter: drop-shadow removed for performance */
    animation: globeRotate 30s linear infinite;
    animation-delay: 1.5s;
    will-change: transform;
}

@keyframes globeRotate {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.globe-silhouette svg {
    width: 100%;
    height: 100%;
}

/* Content Container */
.hero-suppliers-content {
    position: relative;
    z-index: 10;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
}

/* Top Badge */
.supplier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    padding: 0.5rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: fit-content;
    backdrop-filter: blur(6px);
}

.supplier-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px #22c55e;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Main Counter Section */
.supplier-counter-section {
    margin: 1.5rem 0;
}

.counter-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.supplier-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: white;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.counter-number {
    position: relative;
}

.counter-suffix {
    font-size: 0.4em;
    opacity: 0.8;
}

/* Stats Row */
.supplier-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

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

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Title */
.hero-suppliers-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    color: white;
    margin: 1rem 0;
    max-width: 450px;
    line-height: 1.3;
}

.hero-suppliers-title span {
    color: #638fff;
    text-shadow: 0 0 30px rgba(99, 143, 255, 0.5);
}

/* CTA Button - Glass Style */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 1.75rem;
    border-radius: 100px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
}

.hero-cta-btn i {
    transition: transform 0.3s ease;
}

.hero-cta-btn:hover i {
    transform: translateX(4px);
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 4s ease-in-out infinite;
}

@keyframes floatParticle {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    20% { opacity: 1; transform: translateY(-20px) scale(1); }
    80% { opacity: 1; transform: translateY(-80px) scale(1); }
    100% { opacity: 0; transform: translateY(-100px) scale(0); }
}

/* =========================================
   2. WORLD MAP CARD - SVG Stylized
   ========================================= */

.world-map-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    min-height: 300px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.world-map-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(69, 100, 255, 0.3);
}

/* SVG Map Container */
.world-map-svg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.world-map-svg svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* City pulse animation */
.city-pulse {
    animation: cityPulse 2s ease-in-out infinite;
}

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

/* Connection line animation */
.connection-anim {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 3s ease-in-out infinite;
}

@keyframes drawLine {
    0% { stroke-dashoffset: 200; opacity: 0; }
    50% { stroke-dashoffset: 0; opacity: 0.6; }
    100% { stroke-dashoffset: -200; opacity: 0; }
}

/* Content Overlay */
.world-map-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

/* Map Badge */
.world-map-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    padding: 0.5rem 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    width: fit-content;
}

.world-map-badge i {
    color: #638fff;
}

/* Footer */
.world-map-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* Stats */
.world-map-stats {
    display: flex;
    gap: 0.75rem;
}

.world-stat {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}

.world-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    display: block;
}

.world-stat-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CTA Button - Glass */
.world-map-cta {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.world-map-card:hover .world-map-cta {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

/* =========================================
   3. RESPONSIVE ADJUSTMENTS
   ========================================= */

@media (max-width: 991.98px) {
    .hero-suppliers {
        min-height: 450px;
    }

    .hero-suppliers-content {
        padding: 1.5rem;
    }

    .supplier-counter {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .supplier-stats {
        gap: 1rem;
    }

    .china-silhouette {
        width: 80%;
        right: -20%;
        opacity: 0.1;
    }

    .map-stats {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .map-stat {
        min-width: 80px;
        padding: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .hero-suppliers-content {
        padding: 1.25rem;
    }

    .supplier-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stat-item {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
}

/* =========================================
   4. ANIMATIONS ON SCROLL (Optional)
   ========================================= */

.hero-suppliers[data-animate] .supplier-badge,
.hero-suppliers[data-animate] .supplier-counter-section,
.hero-suppliers[data-animate] .hero-suppliers-title,
.hero-suppliers[data-animate] .hero-cta-btn {
    opacity: 0;
    transform: translateY(20px);
}

.hero-suppliers.animate-in .supplier-badge {
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.1s;
}

.hero-suppliers.animate-in .supplier-counter-section {
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.hero-suppliers.animate-in .hero-suppliers-title {
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

.hero-suppliers.animate-in .hero-cta-btn {
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.4s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
