/* ============================================
   Empty States - Phase 2
   Better empty state messaging with CTAs
   ============================================ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    min-height: 300px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.empty-state-description {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.empty-state-action {
    margin-top: 1rem;
}

.empty-state-action .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.empty-state-action .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Specific empty states */
.empty-state-documents .empty-state-icon::before {
    content: '📄';
}

.empty-state-quizzes .empty-state-icon::before {
    content: '📝';
}

.empty-state-flashcards .empty-state-icon::before {
    content: '🎴';
}

.empty-state-search .empty-state-icon::before {
    content: '🔍';
}

.empty-state-error .empty-state-icon::before {
    content: '😕';
}

.empty-state-success .empty-state-icon::before {
    content: '🎉';
}

/* Empty state list alternative */
.empty-state-list {
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin: 2rem 0;
}

.empty-state-list .empty-state-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.empty-state-list .empty-state-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state-list .empty-state-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Loading empty state (skeleton replacement) */
.empty-state-loading {
    padding: 2rem;
}

.empty-state-loading .empty-state-icon {
    animation: spin 2s linear infinite;
}

.empty-state-loading .empty-state-icon::before {
    content: '⏳';
}

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

/* Empty state with illustration */
.empty-state-illustrated {
    position: relative;
}

.empty-state-illustrated::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Mini empty state for smaller sections */
.empty-state-mini {
    padding: 1.5rem 1rem;
    min-height: auto;
}

.empty-state-mini .empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.empty-state-mini .empty-state-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.empty-state-mini .empty-state-description {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .empty-state {
        padding: 2rem 1rem;
        min-height: 250px;
    }
    
    .empty-state-icon {
        font-size: 3rem;
    }
    
    .empty-state-title {
        font-size: 1.25rem;
    }
    
    .empty-state-description {
        font-size: 0.875rem;
    }
    
    .empty-state-illustrated::before {
        width: 150px;
        height: 150px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .empty-state-title {
        color: #f3f4f6;
    }
    
    .empty-state-description {
        color: #9ca3af;
    }
    
    .empty-state-list {
        background: #1f2937;
        border-color: #374151;
    }
    
    .empty-state-illustrated::before {
        background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    }
}

/* Helper classes for quick implementation */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

