/* KuzFit WordPress Plugin Styles */

/* KuzFit iframe embed container */
#kuzfit-embed-container {
    position: fixed;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -9999;
    opacity: 0;
    pointer-events: none;
}

#kuzfit-embed-iframe {
    width: 1px;
    height: 1px;
    border: none;
    opacity: 0;
}

/* Image processed state */
.kuzfit-processed {
    /* Images that have been processed by the plugin */
}

/* Loading state for images */
.kuzfit-loading {
    position: relative;
}

.kuzfit-loading::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: kuzfit-spin 1s linear infinite;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
}

.kuzfit-loading::after {
    content: 'Loading...';
    position: absolute;
    top: 28px;
    right: 8px;
    font-size: 9px;
    color: #666;
    white-space: nowrap;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: normal;
}

/* Spinner animation */
@keyframes kuzfit-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image loaded state */
.kuzfit-loaded::before,
.kuzfit-loaded::after {
    display: none;
}

/* Error state */
.kuzfit-error::before {
    content: '⚠';
    position: absolute;
    top: 8px;
    right: 8px;
    color: #e74c3c;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.kuzfit-error::after {
    content: 'Error';
    position: absolute;
    top: 28px;
    right: 8px;
    font-size: 9px;
    color: #e74c3c;
    background: rgba(255, 255, 255, 0.9);
    padding: 1px 4px;
    border-radius: 2px;
    z-index: 100;
}