/* ============================================================================
   Arwah Empty State & Skeleton Styles
   ============================================================================ */

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    min-height: 320px;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.empty-state-title {
    font-family: 'Scheherazade New', serif;
    font-size: 24px;
    font-weight: 700;
    color: #3E2723;
    margin: 0 0 12px 0;
}

.empty-state-description {
    font-family: 'Markazi Text', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #757575;
    max-width: 480px;
    margin: 0 0 24px 0;
}

.empty-state-examples {
    margin: 24px 0;
}

.examples-label {
    font-family: 'Markazi Text', serif;
    font-size: 16px;
    color: #757575;
    margin: 0 0 12px 0;
}

.examples-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.example-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #FAF8F5;
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    font-family: 'Markazi Text', serif;
    font-size: 16px;
    color: #5D4037;
}

.empty-state-cta {
    margin-top: 8px;
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    min-height: 320px;
}

.error-state-icon {
    color: #EF5350;
    margin-bottom: 16px;
}

.error-state-title {
    font-family: 'Scheherazade New', serif;
    font-size: 22px;
    font-weight: 700;
    color: #3E2723;
    margin: 0 0 8px 0;
}

.error-state-description {
    font-family: 'Markazi Text', serif;
    font-size: 16px;
    color: #757575;
    margin: 0 0 24px 0;
}

.error-state-retry {
    margin-top: 8px;
}

/* Loading Skeletons */
.skeleton-container {
    display: grid;
    gap: 24px;
    padding: 24px 0;
}

/* Card Skeleton */
.skeleton-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.skeleton-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(90deg, #F0F0F0 25%, #E0E0E0 50%, #F0F0F0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 16px;
    background: linear-gradient(90deg, #F0F0F0 25%, #E0E0E0 50%, #F0F0F0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 20px;
    width: 70%;
    margin-bottom: 12px;
}

.skeleton-line {
    width: 100%;
}

.skeleton-line.short {
    width: 60%;
}

/* List Skeleton */
.skeleton-list-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, #F0F0F0 25%, #E0E0E0 50%, #F0F0F0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    flex-shrink: 0;
}

.skeleton-content {
    flex: 1;
}

/* Text Block Skeleton */
.skeleton-text-block {
    padding: 16px;
}

/* Skeleton Animation */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Grid layouts for skeletons */
.skeleton-container.grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.skeleton-container.grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Mobile responsive */
@media (max-width: 640px) {
    .empty-state {
        padding: 32px 16px;
        min-height: 240px;
    }
    
    .empty-state-icon {
        font-size: 48px;
    }
    
    .empty-state-title {
        font-size: 20px;
    }
    
    .empty-state-description {
        font-size: 16px;
    }
    
    .error-state {
        padding: 32px 16px;
        min-height: 240px;
    }
    
    .skeleton-container {
        gap: 16px;
    }
}
