* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.nav-btn {
    transition: all 0.2s ease;
    color: #9CA3AF;
}

.nav-btn:hover {
    color: #FFFFFF;
    background-color: #374151;
}

.nav-btn.active {
    color: #60A5FA;
    background-color: #1F2937;
}

.post-card {
    background: #1F2937;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.2s ease;
    border: 1px solid #374151;
}

.post-card:hover {
    border-color: #4B5563;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.tag {
    display: inline-block;
    background: #1F2937;
    color: #60A5FA;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #374151;
}

.tag:hover {
    background: #374151;
    border-color: #60A5FA;
}

.comment-section {
    background: #111827;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.comment {
    background: #1F2937;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.avatar-small {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.user-card {
    background: #1F2937;
    padding: 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.user-card:hover {
    background: #374151;
}

.like-btn, .comment-btn {
    transition: all 0.2s ease;
}

.like-btn:hover, .comment-btn:hover {
    transform: scale(1.1);
}

.like-btn.liked {
    color: #EF4444;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1F2937;
}

::-webkit-scrollbar-thumb {
    background: #4B5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

@media (max-width: 1024px) {
    aside {
        display: none;
    }

    main {
        margin-left: 0 !important;
    }
}

@media (max-width: 640px) {
    nav .flex.items-center.space-x-4 {
        display: none;
    }

    #searchInput {
        width: 150px;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification {
    position: fixed;
    top: 5rem;
    right: 1rem;
    background: #1F2937;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left: 4px solid #10B981;
}

.notification.error {
    border-left: 4px solid #EF4444;
}