/* ============================================
   CIRCULAR GAUGE COMPONENT - Premium Marketing Design
   v7.3.5 - Kynini's World
   ============================================ */

/* Container principal des jauges */
.gauges-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Wrapper individuel de jauge */
.gauge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Jauge circulaire */
.circular-gauge {
    position: relative;
    width: 100px;
    height: 100px;
}

/* SVG de la jauge */
.gauge-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

/* Cercle de fond */
.gauge-bg {
    fill: none;
    stroke: rgba(139, 92, 246, 0.15);
    stroke-width: 8;
}

/* Cercle de progression - Seniority (violet/or) */
.gauge-progress-seniority {
    fill: none;
    stroke: url(#gradient-seniority);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.6));
}

/* Cercle de progression - Early Status (vert/violet) */
.gauge-progress-early {
    fill: none;
    stroke: url(#gradient-early);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.6));
}

/* Contenu central de la jauge */
.gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

/* Valeur principale */
.gauge-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7, #ec4899, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.gauge-value-early {
    background: linear-gradient(135deg, #22c55e, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Unité (%, years, etc.) */
.gauge-unit {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Label sous la jauge */
.gauge-label {
    margin-top: 0.5rem;
    text-align: center;
}

.gauge-label-text {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gauge-label-icon {
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

/* Effet de brillance animé */
.gauge-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.2), transparent 60%);
    animation: gauge-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

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

/* Particules décoratives */
.gauge-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: 50%;
}

.gauge-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #f59e0b;
    border-radius: 50%;
    animation: particle-float 4s ease-in-out infinite;
    opacity: 0;
}

.gauge-particle:nth-child(1) { top: 20%; left: 80%; animation-delay: 0s; }
.gauge-particle:nth-child(2) { top: 70%; left: 85%; animation-delay: 1s; }
.gauge-particle:nth-child(3) { top: 85%; left: 40%; animation-delay: 2s; }

@keyframes particle-float {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
}

/* Badge de bonus */
.gauge-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
    animation: badge-bounce 2s ease-in-out infinite;
    z-index: 20;
}

@keyframes badge-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Responsive */
@media (max-width: 400px) {
    .gauges-container {
        gap: 1rem;
    }
    
    .circular-gauge {
        width: 85px;
        height: 85px;
    }
    
    .gauge-value {
        font-size: 1.25rem;
    }
    
    .gauge-label-text {
        font-size: 0.6rem;
    }
}

/* Animation d'entrée */
.gauge-enter {
    animation: gauge-enter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes gauge-enter {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Effet de hover */
.gauge-wrapper:hover .circular-gauge {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.gauge-wrapper:hover .gauge-glow {
    animation: gauge-pulse-fast 1s ease-in-out infinite;
}

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


/* ============================================
   COMPACT MODE - Jauges de part et d'autre de la card
   v7.3.8
   ============================================ */

/* Wrapper compact */
.gauge-wrapper-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Jauge circulaire compacte */
.circular-gauge-compact {
    position: relative;
    width: 55px;
    height: 55px;
}

/* SVG compact */
.gauge-svg-compact {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

/* Cercle de fond compact */
.gauge-bg-compact {
    fill: none;
    stroke: rgba(139, 92, 246, 0.15);
    stroke-width: 6;
}

/* Cercle de progression compact - Seniority */
.gauge-progress-seniority-compact {
    fill: none;
    stroke: url(#gradient-seniority);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.6));
}

/* Cercle de progression compact - Early Status */
.gauge-progress-early-compact {
    fill: none;
    stroke: url(#gradient-early);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.6));
}

/* Contenu central compact */
.gauge-center-compact {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

/* Valeur principale compacte */
.gauge-value-compact {
    font-size: 0.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7, #ec4899, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.gauge-value-early-compact {
    background: linear-gradient(135deg, #22c55e, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Unité compacte */
.gauge-unit-compact {
    font-size: 0.4rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Label compact */
.gauge-label-compact {
    margin-top: 0.25rem;
    text-align: center;
}

.gauge-label-text-compact {
    font-size: 0.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gauge-label-icon-compact {
    font-size: 0.5rem;
    margin-right: 0.15rem;
}

/* Effet de brillance compact */
.gauge-glow-compact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.15), transparent 60%);
    animation: gauge-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

.gauge-glow-early {
    background: radial-gradient(circle at 30% 30%, rgba(34, 197, 94, 0.15), transparent 60%);
}

/* Badge compact */
.gauge-badge-compact {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 0.4rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.5);
    animation: badge-bounce 2s ease-in-out infinite;
    z-index: 20;
}

/* Responsive compact */
@media (max-width: 360px) {
    .circular-gauge-compact {
        width: 45px;
        height: 45px;
    }
    
    .gauge-value-compact {
        font-size: 0.65rem;
    }
    
    .gauge-unit-compact {
        font-size: 0.35rem;
    }
    
    .gauge-label-text-compact {
        font-size: 0.45rem;
    }
}
