/* Modern Design Enhancements */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Modern glassmorphism effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Subtle animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations to cards */
.question-card {
    animation: fadeInUp 0.5s ease-out;
}

.sidebar-widget {
    animation: slideInRight 0.5s ease-out;
}

/* Stagger animation delays */
.question-card:nth-child(1) { animation-delay: 0.1s; }
.question-card:nth-child(2) { animation-delay: 0.2s; }
.question-card:nth-child(3) { animation-delay: 0.3s; }
.question-card:nth-child(4) { animation-delay: 0.4s; }
.question-card:nth-child(5) { animation-delay: 0.5s; }

/* Better focus states */
.question-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Improved category badge */
.category-badge {
    font-weight: 600;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

/* Better empty state */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state::before {
    content: '📭';
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Improved buttons */
.btn {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn-primary {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

/* Better question stats */
.question-stats {
    gap: 0.75rem;
}

.stat svg {
    opacity: 0.7;
}

.stat:hover svg {
    opacity: 1;
    transform: scale(1.1);
    transition: var(--transition);
}

/* Improved sidebar */
.sidebar-widget h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-widget h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Better user stats in sidebar */
.user-stats {
    gap: 0.75rem;
}

.stat-item {
    padding: 1rem;
    border-radius: 10px;
    transition: var(--transition);
}

.stat-item:hover {
    background: var(--bg-light);
    transform: translateX(4px);
}

/* Improved pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination .btn {
    min-width: 40px;
    text-align: center;
}

/* Better question header */
.question-header {
    margin-bottom: 1.25rem;
}

/* Improved content grid spacing */
.content-grid {
    gap: 2.5rem;
}

/* Better responsive spacing */
@media (max-width: 768px) {
    .question-card {
        padding: 1.5rem;
    }
    
    .category-header {
        padding: 2rem;
    }
    
    .category-header h1 {
        font-size: 2rem;
    }
}


