/**
 * Directory Block Styles
 * 
 * Note: This block uses avatar block CSS classes for consistent avatar styling:
 * - wpuf-avatar--small, wpuf-avatar--medium, wpuf-avatar--large, wpuf-avatar--xlarge
 * - wpuf-avatar--circle, wpuf-avatar--square, wpuf-avatar--rounded
 * - wpuf-avatar--initials, wpuf-avatar--image, wpuf-avatar-loading
 */

/* Directory Layout Selection Styles */

/* Confirmation Modal Styles */
.wpuf-directory-confirmation-modal .components-modal__content {
    padding: 24px;
}

.wpuf-modal-content p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #1e1e1e;
}

.wpuf-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.wpuf-confirm-button {
    background-color: #d63638 !important;
    border-color: #d63638 !important;
}

.wpuf-confirm-button:hover {
    background-color: #b32d2e !important;
    border-color: #b32d2e !important;
}

/* Back Button Styles */
.wpuf-back-to-layout-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    background-color: #f9fafb !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    transition: all 0.2s ease-in-out !important;
}

.wpuf-back-to-layout-btn:hover {
    background-color: #f3f4f6 !important;
    border-color: #9ca3af !important;
    color: #111827 !important;
}

.wpuf-back-to-layout-btn svg {
    margin-right: 8px !important;
}

/* Layout Selection Grid */
.wpuf-grid {
    display: grid;
}

.wpuf-grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:wpuf-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.wpuf-gap-6 {
    gap: 1.5rem;
}

/* Card Styles */
.wpuf-cursor-pointer {
    cursor: pointer;
}

.wpuf-transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.wpuf-duration-300 {
    transition-duration: 300ms;
}

.wpuf-ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.wpuf-border {
    border-width: 1px;
}

.wpuf-border-gray-200 {
    border-color: #e5e7eb;
}

.wpuf-border-blue-300 {
    border-color: #93c5fd;
}

.wpuf-rounded-lg {
    border-radius: 0.5rem;
}

.wpuf-shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.wpuf-scale-105 {
    transform: scale(1.05);
}

/* Card Media Styles */
.wpuf-aspect-video {
    aspect-ratio: 16 / 9;
}

.wpuf-bg-gray-50 {
    background-color: #f9fafb;
}

.wpuf-flex {
    display: flex;
}

.wpuf-items-center {
    align-items: center;
}

.wpuf-justify-center {
    justify-content: center;
}

.wpuf-w-full {
    width: 100%;
}

.wpuf-h-full {
    height: 100%;
}

.wpuf-object-cover {
    object-fit: cover;
}

/* Card Body Styles */
.wpuf-p-4 {
    padding: 1rem;
}

.wpuf-p-8 {
    padding: 2rem;
}

.wpuf-mb-2 {
    margin-bottom: 0.5rem;
}

.wpuf-mb-6 {
    margin-bottom: 1.5rem;
}

.wpuf-mb-8 {
    margin-bottom: 2rem;
}

.wpuf-mr-2 {
    margin-right: 0.5rem;
}

/* Text Styles */
.wpuf-text-center {
    text-align: center;
}

.wpuf-text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.wpuf-text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.wpuf-text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.wpuf-text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.wpuf-font-semibold {
    font-weight: 600;
}

.wpuf-font-medium {
    font-weight: 500;
}

.wpuf-text-gray-600 {
    color: #4b5563;
}

.wpuf-text-gray-400 {
    color: #9ca3af;
}

/* Layout Selection Controls */
.wpuf-layout-selection-controls {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: 16px;
}

/* Blank Directory Layout Styles */
.wpuf-blank-directory-container {
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

.wpuf-blank-directory-notice {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.wpuf-blank-directory-notice p {
    margin: 0;
}

/* Search and Sorting Controls */
.wpuf-search-wrapper,
.wpuf-sorting-wrapper {
    flex: 1;
    min-width: 0;
}

.wpuf-search-wrapper {
    max-width: 40%;
}

.wpuf-sorting-preview {
    width: 100%;
}

.wpuf-search-preview input {
    max-width: 100%;
    min-width: 200px;
}

.wpuf-sorting-preview select {
    min-width: 120px;
}

/* Table Preview Styles */
.wpuf-table-preview-container {
    transition: all 0.2s ease-in-out;
}

.wpuf-table-preview-container:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.wpuf-table-preview {
    overflow-x: auto;
}

/* Loading and Error States */
.wpuf-animate-spin {
    animation: wpuf-spin 1s linear infinite;
}

@keyframes wpuf-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Text Utilities */
.wpuf-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Grid Utilities */
.wpuf-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wpuf-gap-2 {
    gap: 0.5rem;
}

.wpuf-gap-3 {
    gap: 0.75rem;
}

/* Spacing Utilities */
.wpuf-mt-3 {
    margin-top: 0.75rem;
}

.wpuf-pt-3 {
    padding-top: 0.75rem;
}

.wpuf-mb-3 {
    margin-bottom: 0.75rem;
}

.wpuf-mb-4 {
    margin-bottom: 1rem;
}

.wpuf-ml-6 {
    margin-left: 1.5rem;
}

.wpuf-ml-2 {
    margin-left: 0.5rem;
}

/* Border Utilities */
.wpuf-border-t {
    border-top-width: 1px;
}

.wpuf-border-gray-200 {
    border-color: #e5e7eb;
}

/* Hide the "Unmatched" block from the block editor's list view */
/* Hide the entire table row for unmatched-blocks */
.block-editor-list-view-tree tr[data-block*="unmatched-blocks"] {
    display: none !important;
}
