/* Base style for like button */
.like-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    color: #1f2a44;
    border: none;
    border-radius: 24px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    font-family: 'Mukta', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

/* Liked state */
.like-button.liked {
    background: linear-gradient(145deg, #ff4d4d, #e63939);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(230, 57, 57, 0.4);
}

/* Icon styling */
.like-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

/* Hover effect */
.like-button:hover {
    background: linear-gradient(145deg, #f0f0f0, #d9d9d9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Active effect (when clicked) */
.like-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Guest button styling */
.like-button-guest {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(145deg, #f0f0f0, #e6e6e6);
    color: #6b7280;
    border: none;
    border-radius: 24px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    font-family: 'Mukta', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    transition: all 0.3s ease;
    cursor: not-allowed;
    opacity: 0.7;
}

.like-button-guest:hover {
    background: linear-gradient(145deg, #e6e6e6, #d9d9d9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Livewire loading state */
.like-button[wire:loading] {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 640px) {
    .share-wrap {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    .like-button,
    .like-button-guest {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .like-button i,
    .like-button-guest i {
        font-size: 0.9rem;
    }
}

/* Accessibility */
.like-button:focus,
.like-button-guest:focus {
    outline: 2px solid #ff4d4d;
    outline-offset: 2px;
    border-radius: 24px;
}


/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .share-wrap {
        background-color: #1f2a44;
    }

    .h4-small {
        color: #d1d5db;
    }

    .like-button {
        background: linear-gradient(145deg, #374151, #2d3748);
        color: #d1d5db;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    }

    .like-button.liked {
        background: linear-gradient(145deg, #ff6666, #e63939);
        box-shadow: 0 4px 12px rgba(230, 57, 57, 0.4);
    }

    .like-button:hover {
        background: linear-gradient(145deg, #4b5563, #374151);
    }

    .like-button-guest {
        background: linear-gradient(145deg, #374151, #2d3748);
        color: #9ca3af;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    }

    .like-button-guest:hover {
        background: linear-gradient(145deg, #4b5563, #374151);
    }
}

/* Heartbeat animation */
.like-button.liked i {
    animation: heartbeat 0.4s ease;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}


/* Comment section styling  */

/* Comments Section */
.comments-section .comments-section-comment-list {
    margin-bottom: 2rem;
}

.comments-section .comments-section-comment-item {
    margin-bottom: 1.5rem;
}

.comments-section .comments-section-each-comment {
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comments-section .comments-section-each-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comments-section .comments-section-comment-figure {
    flex-shrink: 0;
}

.comments-section .comments-section-avatar-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.comments-section .comments-section-comment-content {
    font-size: 0.95rem;
}

.comments-section .comments-section-comment-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.comments-section .comments-section-comment-meta .comments-section-post-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.comments-section .comments-section-comment-comment {
    color: #444;
    line-height: 1.6;
}

.comments-section .comments-section-item-btn {
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
}

.comments-section .comments-section-item-btn:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Reply Section */
.comments-section .comments-section-children {
    border-left: 2px solid #e9ecef;
    padding-left: 1.5rem;
}

/* Comment and Reply Forms */
.comments-section .comments-section-comment-textarea {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: border-color 0.2s ease;
}

.comments-section .comments-section-comment-textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.comments-section .comments-section-axil-btn-fill {
    background-color: #007bff;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.comments-section .comments-section-axil-btn-fill:hover {
    background-color: #0056b3;
}

.comments-section .comments-section-axil-btn-outline {
    background-color: transparent;
    border: 1px solid #007bff;
    color: #007bff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.comments-section .comments-section-axil-btn-outline:hover {
    background-color: #007bff;
    color: #fff;
}

.comments-section .comments-section-axil-btn-large {
    font-size: 1rem;
}

/* Unauthenticated State */
.comments-section .comments-section-comment-login-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.comments-section .comments-section-comment-login-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .comments-section .comments-section-avatar-img {
        width: 40px;
        height: 40px;
    }

    .comments-section .comments-section-comment-title {
        font-size: 1rem;
    }

    .comments-section .comments-section-comment-content {
        font-size: 0.9rem;
    }

    .comments-section .comments-section-axil-btn-fill,
    .comments-section .comments-section-axil-btn-outline {
        padding: 0.5rem 1rem;
    }
}