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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #7c3aed, #db2777);
}

.like-heart {
    transition: all 0.15s ease;
    cursor: pointer;
}

.like-heart.liked {
    fill: #ed4956;
    stroke: #ed4956;
    animation: likeScale 0.45s ease;
}

.like-heart:not(.liked) {
    fill: none;
    stroke: currentColor;
}

@keyframes likeScale {
    0% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.2);
    }
    30% {
        transform: scale(0.95);
    }
    45%, 80% {
        transform: scale(1);
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.like-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.15s ease;
}

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

.like-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.like-info {
    flex: 1;
    min-width: 0;
}

.like-username {
    font-weight: 600;
    color: #111827;
    text-decoration: none;
}

.like-username:hover {
    text-decoration: underline;
}

.like-time {
    font-size: 0.75rem;
    color: #6b7280;
}
