/**
 * WordPress HTML Debugger Frontend CSS
 * 
 * @package WP_HTML_Debugger
 * @version 1.0.0
 */

/* Notification styles */
.wp-html-debugger-notification {
    position: fixed;
    top: 32px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    z-index: 999999;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 350px;
    word-wrap: break-word;
    animation: wp-html-debugger-slide-in 0.3s ease-out;
}

.wp-html-debugger-notification.wp-html-debugger-success {
    background: #00a32a;
    color: white;
}

.wp-html-debugger-notification.wp-html-debugger-error {
    background: #d63384;
    color: white;
}

.wp-html-debugger-notification.wp-html-debugger-info {
    background: #0073aa;
    color: white;
}

.wp-html-debugger-notification.wp-html-debugger-warning {
    background: #dba617;
    color: white;
}

/* Animation */
@keyframes wp-html-debugger-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Debug indicator (optional visual indicator) */
.wp-html-debugger-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0073aa;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 999998;
    cursor: pointer;
    font-family: monospace;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.wp-html-debugger-indicator:hover {
    background: #005a87;
    transform: scale(1.05);
}

.wp-html-debugger-indicator.has-issues {
    background: #d63384;
    animation: wp-html-debugger-pulse 2s infinite;
}

@keyframes wp-html-debugger-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Hide indicator when admin bar is not present */
body:not(.admin-bar) .wp-html-debugger-notification {
    top: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wp-html-debugger-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        top: 10px;
    }
    
    body.admin-bar .wp-html-debugger-notification {
        top: 56px; /* Mobile admin bar height */
    }
    
    .wp-html-debugger-indicator {
        bottom: 10px;
        right: 10px;
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wp-html-debugger-notification {
        border: 2px solid;
    }
    
    .wp-html-debugger-notification.wp-html-debugger-success {
        border-color: #004d1a;
    }
    
    .wp-html-debugger-notification.wp-html-debugger-error {
        border-color: #8b1538;
    }
    
    .wp-html-debugger-notification.wp-html-debugger-info {
        border-color: #004d6b;
    }
    
    .wp-html-debugger-notification.wp-html-debugger-warning {
        border-color: #996f00;
    }
}

/* Print styles */
@media print {
    .wp-html-debugger-notification,
    .wp-html-debugger-indicator {
        display: none !important;
    }
}