/* ================================
   📊 METRICS SYSTEM
   ================================ */

/* ===== SUCCESS METRICS ===== */

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.metric-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
}

/* ===== SATISFACTION METRIC ===== */
.satisfaction-metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, 
        rgba(255, 59, 48, 0.08) 0%, 
        rgba(255, 149, 0, 0.08) 100%
    );
    border: 1px solid rgba(255, 59, 48, 0.15);
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    position: absolute;
    bottom: -10%;
    right: -20%;
    z-index: 10;
    overflow: hidden;
    cursor: default;
    transition: all 0.3s ease;
    max-width: 280px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.satisfaction-metric:hover {
    /* Sehr subtile Hover-Animation */
    transform: translateY(-1px);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.14);
}

.satisfaction-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF3B30, #FF9500);
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.3);
    flex-shrink: 0;
}

.satisfaction-icon i {
    font-size: 1.4rem;
    color: white;
    animation: heartBeat 4s ease-in-out infinite;
}

.heart-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 59, 48, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: heartPulse 2s ease-in-out infinite;
}

.satisfaction-content {
    flex: 1;
}

.satisfaction-number {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF3B30, #FF9500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: block;
    margin-bottom: 0.25rem;
}

.satisfaction-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.375rem;
    white-space: nowrap;
}

.satisfaction-stars {
    display: flex;
    gap: 0.25rem;
}

.satisfaction-stars i {
    font-size: 0.8rem;
    color: #FFD60A;
    animation: starTwinkle 6s ease-in-out infinite;
}

.satisfaction-stars i:nth-child(1) { animation-delay: 0s; }
.satisfaction-stars i:nth-child(2) { animation-delay: 0.2s; }
.satisfaction-stars i:nth-child(3) { animation-delay: 0.4s; }
.satisfaction-stars i:nth-child(4) { animation-delay: 0.6s; }
.satisfaction-stars i:nth-child(5) { animation-delay: 0.8s; }

.satisfaction-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.08) 0%, 
        rgba(255, 149, 0, 0.08) 100%
    );
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.satisfaction-metric:hover .satisfaction-glow {
    /* Glow füllt die ganze Box aus */
    opacity: 1;
}

/* ===== ANIMATIONS ===== */

@keyframes heartBeat {
    0%, 100% { 
        transform: scale(1); 
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.01); 
        filter: brightness(1.02);
    }
}

@keyframes heartPulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.3);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(255, 107, 107, 0);
    }
}

@keyframes starTwinkle {
    0%, 100% { 
        opacity: 0.95; 
        transform: scale(1) rotate(0deg);
    }
    33% { 
        opacity: 1; 
        transform: scale(1.01) rotate(-0.5deg);
    }
    66% { 
        opacity: 0.98; 
        transform: scale(1.005) rotate(0.5deg);
    }
}

/* ===== DARK MODE SUPPORT ===== */

.dark-mode .metric {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .satisfaction-metric {
    background: linear-gradient(135deg, 
        rgba(255, 59, 48, 0.15) 0%, 
        rgba(255, 149, 0, 0.15) 100%
    );
    border-color: rgba(255, 59, 48, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .satisfaction-metric {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .satisfaction-number {
        font-size: 2rem;
    }
    
    .metric {
        padding: 0.75rem;
    }
    
    .metric-number {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .satisfaction-metric {
        padding: 1rem;
    }
    
    .satisfaction-icon {
        width: 40px;
        height: 40px;
    }
    
    .satisfaction-icon i {
        font-size: 1.25rem;
    }
    
    .satisfaction-number {
        font-size: 1.75rem;
    }
} 