/* Real Stats Manager Styles */

/* Loading state styles */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3b82f6;
}

.loading-state p {
    margin: 0;
    font-size: 0.875rem;
}

/* Empty state styles */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px dashed #d1d5db;
}

.empty-state i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.empty-state h4 {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 1.125rem;
    font-weight: 600;
}

.empty-state p {
    margin: 0 0 1.5rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.empty-state .btn {
    margin-top: 0.5rem;
}

/* Stat change indicators */
.stat-change {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0;
}

.stat-change.positive {
    color: #059669;
}

.stat-change.negative {
    color: #dc2626;
}

.stat-change.neutral {
    color: #6b7280;
}

/* Match score classes */
.match-score.high {
    background: #dcfce7;
    color: #166534;
}

.match-score.medium {
    background: #fef3c7;
    color: #92400e;
}

.match-score.low {
    background: #fee2e2;
    color: #991b1b;
}

/* Applied badge */
.applied-badge {
    background: #e5e7eb;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Real-time update indicator */
.stats-updated {
    animation: statsFlash 0.5s ease-in-out;
}

@keyframes statsFlash {
    0% { background-color: transparent; }
    50% { background-color: #f0f9ff; }
    100% { background-color: transparent; }
}

/* Hero stats loading animation */
.hero-stats .stat-card h3:contains("Loading...") {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Dashboard stat cards data attributes styling */
[data-stat] {
    transition: all 0.3s ease;
}

[data-stat]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Match item enhancements */
.match-item {
    transition: background-color 0.2s ease;
}

.match-item:hover {
    background-color: #f9fafb;
}

.match-info h4 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: #111827;
}

.match-info p {
    margin: 0 0 0.5rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .loading-state,
    .empty-state {
        padding: 1.5rem 1rem;
    }
    
    .empty-state i {
        font-size: 2.5rem;
    }
    
    .empty-state h4 {
        font-size: 1rem;
    }
}

/* Recommendations loading styles */
.recommendations-loading {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.loading-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.loading-logo {
    width: 48px;
    height: 48px;
    background: #e2e8f0;
    border-radius: 8px;
    animation: pulse 2s ease-in-out infinite;
}

.loading-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.loading-title {
    height: 20px;
    background: #e2e8f0;
    border-radius: 4px;
    width: 70%;
    animation: pulse 2s ease-in-out infinite;
}

.loading-company {
    height: 16px;
    background: #e2e8f0;
    border-radius: 4px;
    width: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.loading-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.loading-line {
    height: 14px;
    background: #e2e8f0;
    border-radius: 4px;
    animation: pulse 2s ease-in-out infinite;
}

.loading-line.short {
    width: 75%;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        background-color: #e2e8f0;
    }
    50% { 
        opacity: 0.5; 
        background-color: #cbd5e1;
    }
}

/* Empty state for recommendations */
.empty-state-recommendations {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

.empty-state-recommendations .empty-icon {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.empty-state-recommendations h3 {
    margin: 0 0 0.75rem 0;
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
}

.empty-state-recommendations p {
    margin: 0 0 2rem 0;
    color: #6b7280;
    font-size: 1rem;
    max-width: 400px;
}

.empty-state-recommendations .empty-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .loading-state,
    .empty-state {
        color: #d1d5db;
    }
    
    .empty-state {
        background: #1f2937;
        border-color: #374151;
    }
    
    .empty-state h4 {
        color: #f9fafb;
    }
    
    .empty-state i {
        color: #6b7280;
    }
    
    .stat-change.neutral {
        color: #9ca3af;
    }
    
    .applied-badge {
        background: #374151;
        color: #d1d5db;
    }

    .loading-card {
        background: #1f2937;
        border-color: #374151;
    }
    
    .loading-logo,
    .loading-title,
    .loading-company,
    .loading-line {
        background: #374151;
    }
    
    @keyframes pulse {
        0%, 100% { 
            opacity: 1; 
            background-color: #374151;
        }
        50% { 
            opacity: 0.5; 
            background-color: #4b5563;
        }
    }
    
    .empty-state-recommendations {
        background: #1f2937;
        border-color: #374151;
        color: #d1d5db;
    }
    
    .empty-state-recommendations h3 {
        color: #f9fafb;
    }
    
    .empty-state-recommendations .empty-icon {
        color: #6b7280;
    }
}