/* Performance Warning Message Styles */
.performance-warning {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 500px;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.performance-warning.show {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.performance-warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.performance-warning-content {
    flex: 1;
}

.performance-warning-content strong {
    display: block;
    font-weight: 600;
}

.performance-warning-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.performance-warning-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.performance-warning-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .performance-warning {
        left: 10px;
        right: 10px;
        transform: none;
        max-width: none;
        top: 10px;
    }
    
    .performance-warning.show {
        animation: slideDownMobile 0.3s ease-out;
    }
    
    @keyframes slideDownMobile {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Tablet */
@media (min-width: 601px) and (max-width: 900px) {
    .performance-warning {
        max-width: 90%;
    }
}
