/* User Dashboard Widget Styles - Theme Compatible */

.user-dashboard-widget {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.user-dashboard-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--accent-purple, #7c3aed) 0%,
        var(--accent-pink, #ec4899) 50%,
        var(--accent-cyan, #06b6d4) 100%
    );
    opacity: 0.8;
}

.user-dashboard-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(148, 163, 184, 0.3);
}

.dashboard-widget-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.dashboard-widget-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent-purple, #8b5cf6);
    margin-bottom: 8px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.dashboard-widget-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color, #ffffff);
    margin: 0;
    text-align: center;
    letter-spacing: -0.02em;
}

.dashboard-widget-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

/* Character Container */
.dashboard-character-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    min-height: 12.5rem;
}

.dashboard-character-image {
    width: 11.25rem;
    height: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.4));
    animation: float 3s infinite ease-in-out;
    transition: transform 0.3s ease;
}

.dashboard-character-image:hover {
    transform: scale(1.05);
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* User Info */
.dashboard-user-info {
    width: 100%;
    text-align: center;
}

.dashboard-welcome-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-color, #ffffff);
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.dashboard-welcome-text span {
    background: linear-gradient(135deg, 
        var(--accent-purple, #8b5cf6) 0%,
        var(--accent-pink, #ec4899) 50%,
        var(--accent-cyan, #06b6d4) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.dashboard-stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 0.625rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

.dashboard-stat-item:hover {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(139, 92, 246, 0.3);
}

.dashboard-stat-item i {
    font-size: 1rem;
    color: var(--accent-purple, #8b5cf6);
}

.dashboard-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.dashboard-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-color, #ffffff);
    letter-spacing: -0.01em;
}

/* Action Buttons */
.dashboard-widget-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 100%;
    margin-top: 0.5rem;
}

.dashboard-btn-primary,
.dashboard-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.625rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

.dashboard-btn-primary {
    background: linear-gradient(135deg, 
        var(--accent-purple, #8b5cf6) 0%,
        var(--accent-pink, #ec4899) 100%
    );
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.dashboard-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, 
        var(--accent-purple, #7c3aed) 0%,
        var(--accent-pink, #db2777) 100%
    );
}

.dashboard-btn-primary:active {
    transform: translateY(0);
}

.dashboard-btn-secondary {
    background: rgba(15, 23, 42, 0.5);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.dashboard-btn-secondary:hover {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}

.dashboard-btn-secondary:active {
    transform: translateY(0);
}

.dashboard-btn-primary i,
.dashboard-btn-secondary i {
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .user-dashboard-widget {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .dashboard-character-image {
        width: 9.375rem;
    }
    
    .dashboard-character-container {
        min-height: 10rem;
    }
    
    .dashboard-widget-title {
        font-size: 1.125rem;
    }
    
    .dashboard-welcome-text {
        font-size: 1rem;
    }
}

/* Loading State */
.dashboard-character-image[src=""] {
    opacity: 0;
}

.dashboard-character-image:not([src=""]) {
    opacity: 1;
    transition: opacity 0.3s ease;
}

