/**
 * Betformatics AJAX Shortcodes - Loading States
 */

/* Container placeholder */
.betformatics-ajax-shortcode {
    min-height: 100px;
    position: relative;
}

/* Loading state */
.betformatics-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #666;
    gap: 15px;
}

.betformatics-loading span {
    font-size: 14px;
    color: #888;
}

/* Spinner animation */
.betformatics-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: betformatics-spin 0.8s linear infinite;
}

@keyframes betformatics-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error state */
.betformatics-error {
    padding: 20px;
    text-align: center;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
}

/* Loaded state - remove min-height */
.betformatics-ajax-shortcode.loaded {
    min-height: auto;
}

/* Smooth transition when content loads */
.betformatics-ajax-shortcode.loaded > * {
    animation: betformatics-fadeIn 0.3s ease-in;
}

@keyframes betformatics-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
