/* Like Button Styles */
.article-like {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.like-button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.like-count {
    font-size: 12px;
    font-weight: bold;
    color: #C9A227;
    margin-top: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 2px 6px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.like-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.like-button i {
    font-size: 18px;
    color: #C9A227; /* Gold color matching the site theme */
    transition: all 0.2s ease;
}

.like-button.liked i {
    color: #C9A227;
}

.like-button i.far.fa-heart {
    /* Empty heart */
}

.like-button i.fas.fa-heart {
    /* Filled heart */
}

.like-button.liked i.far.fa-heart {
    display: none;
}

.like-button:not(.liked) i.fas.fa-heart {
    display: none;
}

/* Animation for like action */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

.like-button.animate i {
    animation: heartBeat 1s;
}

/* Make sure the post-item has position relative for absolute positioning of the like button */
.post-item {
    position: relative;
}

/* Ensure the post-image also has position relative */
.post-image {
    position: relative;
}

/* Styles for the like button in the article page */
.article-cover {
    position: relative;
}

/* Container for image and like button */
.article-image-container {
    position: relative;
    display: flex;
    align-items: center;
}

.article-image-container .article-cover {
    flex: 1;
}

/* Position the like button next to the photo */
.article-image-container .article-like {
    position: static;
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style for article page content container */
.article-content .article-like {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.article-cover .like-button {
    width: 48px;
    height: 48px;
}

.article-cover .like-button i {
    font-size: 24px;
}