/**
 * Standard Block Template - style.css
 *
 * CSS template for WPUF User Directory blocks.
 * This file contains standard styles that all blocks should follow.
 *
 * @since 4.2.0
 */

/* Block Container */
.wpuf-block-template {
    position: relative;
    width: 100%;
}

/* Block Content */
.wpuf-block-template-content {
    position: relative;
}

/* Block Wrapper */
.wpuf-block-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Block Label */
.wpuf-block-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

/* Block Data */
.wpuf-block-data {
    display: block;
}

/* Dynamic Content */
.wpuf-dynamic-content {
    min-height: 1rem;
}

/* Display Styles */
.wpuf-display-default {
    /* Default display style */
}

.wpuf-display-compact {
    /* Compact display style */
    font-size: 0.9em;
    line-height: 1.4;
}

.wpuf-display-detailed {
    /* Detailed display style */
    font-size: 1.1em;
    line-height: 1.6;
}

/* Animation Support */
.wpuf-animation-enabled {
    transition: all 0.3s ease-in-out;
}

.wpuf-animation-enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Loading State */
.wpuf-block-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    color: #666;
    font-style: italic;
}

/* Error State */
.wpuf-block-error {
    padding: 1rem;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    font-size: 0.9em;
}

/* User Data Preview (Editor Only) */
.wpuf-user-data-preview {
    padding: 0.5rem;
    background-color: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.wpuf-user-data-preview strong {
    color: #0066cc;
}

/* Fallback Data (Editor Only) */
.wpuf-fallback-data {
    padding: 0.5rem;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.wpuf-fallback-data strong {
    color: #856404;
}

/* Block Preview (Editor Only) */
.wpuf-block-preview {
    padding: 1rem;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 4px;
    text-align: center;
    color: #6c757d;
}

.wpuf-block-preview h4 {
    margin: 0 0 0.5rem 0;
    color: #495057;
}

.wpuf-block-preview p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wpuf-block-wrapper {
        gap: 0.25rem;
    }

    .wpuf-block-label {
        font-size: 0.9em;
    }

    .wpuf-display-detailed {
        font-size: 1em;
    }
}



/* High Contrast Mode */
@media (prefers-contrast: high) {
    .wpuf-block-template {
        border: 1px solid currentColor;
    }

    .wpuf-block-label {
        font-weight: bold;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .wpuf-animation-enabled {
        transition: none;
    }

    .wpuf-animation-enabled:hover {
        transform: none;
        box-shadow: none;
    }
}
