/* Fancy Empty State Styles */
.fancy-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    min-height: 220px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-lg);
    margin: var(--spacing-sm);
    animation: fadeInEmpty 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    grid-column: 1 / -1;
    /* Critical: span all grid columns */
    width: auto;
    /* Allow it to fill the container */
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure parents don't clip the fancy empty state */
.studio-assets-grid:has(.fancy-empty-state) {
    display: block !important;
    /* Switch from grid to block when empty */
    max-height: none !important;
}

@keyframes fadeInEmpty {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-state-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.fancy-empty-state:hover .empty-state-icon-wrapper {
    transform: rotate(0deg) scale(1.05);
}

.empty-state-icon-wrapper .material-symbols-outlined {
    font-size: 24px;
    color: white;
}

.empty-state-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.empty-state-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 100%;
    line-height: 1.4;
    padding: 0 10px;
}

.empty-state-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 180px;
}

.empty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    width: 100%;
}

.btn-upload-fancy {
    background: var(--accent-primary);
    color: white;
}

.btn-upload-fancy:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.btn-forge-fancy {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-forge-fancy:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}

.btn-link-fancy {
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: underline;
    cursor: pointer;
    border: none;
    padding: 10px;
    margin-top: 5px;
    transition: color 0.2s;
    width: 100%;
    text-align: center;
}

.btn-link-fancy:hover {
    color: var(--text-main);
}