/**
 * Empty States Component
 * Theme-aware empty state illustrations and messages
 */

/* ===================================
   Empty State Container
   =================================== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    min-height: 400px;
}

.empty-state-sm {
    padding: 2rem 1rem;
    min-height: 250px;
}

.empty-state-lg {
    padding: 4rem 2rem;
    min-height: 500px;
}

/* ===================================
   Empty State Icon/Illustration
   =================================== */

.empty-state-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(var(--theme-primary-rgb), 0.1) 0%, 
        rgba(var(--theme-accent-rgb), 0.1) 100%);
}

.empty-state-icon i {
    font-size: 3rem;
    background: var(--theme-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    opacity: 0.8;
}

.empty-state-sm .empty-state-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.empty-state-sm .empty-state-icon i {
    font-size: 2rem;
}

.empty-state-lg .empty-state-icon {
    width: 160px;
    height: 160px;
    margin-bottom: 2rem;
}

.empty-state-lg .empty-state-icon i {
    font-size: 4rem;
}

/* ===================================
   Empty State Content
   =================================== */

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.empty-state-sm .empty-state-title {
    font-size: 1.25rem;
}

.empty-state-lg .empty-state-title {
    font-size: 1.75rem;
}

.empty-state-description {
    font-size: 1rem;
    color: var(--theme-text-secondary);
    margin-bottom: 1.5rem;
    max-width: 500px;
    line-height: 1.6;
}

.empty-state-sm .empty-state-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.empty-state-lg .empty-state-description {
    font-size: 1.125rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* ===================================
   Empty State Actions
   =================================== */

.empty-state-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.empty-state-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--theme-gradient-primary);
    border: none;
    border-radius: var(--border-radius-lg);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.empty-state-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.empty-state-btn-secondary {
    background: transparent;
    border: 2px solid var(--theme-primary);
    color: var(--theme-primary);
    box-shadow: none;
}

.empty-state-btn-secondary:hover {
    background: rgba(var(--theme-primary-rgb), 0.1);
}

/* ===================================
   Empty State Variants
   =================================== */

/* No Data */
.empty-state-no-data .empty-state-icon {
    background: linear-gradient(135deg, 
        rgba(var(--theme-info-rgb), 0.1) 0%, 
        rgba(var(--theme-primary-rgb), 0.1) 100%);
}

.empty-state-no-data .empty-state-icon i {
    background: var(--theme-gradient-info);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Error State */
.empty-state-error .empty-state-icon {
    background: linear-gradient(135deg, 
        rgba(var(--theme-danger-rgb), 0.1) 0%, 
        rgba(var(--theme-warning-rgb), 0.1) 100%);
}

.empty-state-error .empty-state-icon i {
    background: var(--theme-gradient-danger);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Success State */
.empty-state-success .empty-state-icon {
    background: linear-gradient(135deg, 
        rgba(var(--theme-success-rgb), 0.1) 0%, 
        rgba(var(--theme-success-rgb), 0.2) 100%);
}

.empty-state-success .empty-state-icon i {
    background: var(--theme-gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search No Results */
.empty-state-search .empty-state-icon {
    background: linear-gradient(135deg, 
        rgba(var(--theme-warning-rgb), 0.1) 0%, 
        rgba(var(--theme-accent-rgb), 0.1) 100%);
}

.empty-state-search .empty-state-icon i {
    background: var(--theme-gradient-warning);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Empty State with List
   =================================== */

.empty-state-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    text-align: left;
    max-width: 400px;
}

.empty-state-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--theme-text-secondary);
    font-size: 0.875rem;
}

.empty-state-list li i {
    color: var(--theme-primary);
    flex-shrink: 0;
}

/* ===================================
   Empty State Card
   =================================== */

.empty-state-card {
    background: var(--theme-bg-base);
    border: 2px dashed var(--theme-border-light);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    transition: all 0.3s ease;
}

.empty-state-card:hover {
    border-color: var(--theme-primary);
    background: rgba(var(--theme-primary-rgb), 0.02);
}

.empty-state-card.clickable {
    cursor: pointer;
}

.empty-state-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Empty State Grid (Multiple Cards)
   =================================== */

.empty-state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    margin-top: 2rem;
}

.empty-state-grid-item {
    background: var(--theme-bg-base);
    border: 2px dashed var(--theme-border-light);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.empty-state-grid-item:hover {
    border-color: var(--theme-primary);
    background: rgba(var(--theme-primary-rgb), 0.02);
    transform: translateY(-2px);
}

.empty-state-grid-item i {
    font-size: 2rem;
    color: var(--theme-primary);
    margin-bottom: 0.75rem;
}

.empty-state-grid-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-grid-item-description {
    font-size: 0.875rem;
    color: var(--theme-text-secondary);
}

/* ===================================
   Empty State Animation
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-state {
    animation: fadeInUp 0.5s ease;
}

.empty-state-icon {
    animation: fadeInUp 0.5s ease 0.1s both;
}

.empty-state-title {
    animation: fadeInUp 0.5s ease 0.2s both;
}

.empty-state-description {
    animation: fadeInUp 0.5s ease 0.3s both;
}

.empty-state-actions {
    animation: fadeInUp 0.5s ease 0.4s both;
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 640px) {
    .empty-state {
        padding: 2rem 1rem;
        min-height: 300px;
    }
    
    .empty-state-icon {
        width: 100px;
        height: 100px;
    }
    
    .empty-state-icon i {
        font-size: 2.5rem;
    }
    
    .empty-state-title {
        font-size: 1.25rem;
    }
    
    .empty-state-description {
        font-size: 0.875rem;
    }
    
    .empty-state-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .empty-state-btn {
        width: 100%;
        justify-content: center;
    }
    
    .empty-state-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
