/**
 * Mobile Components
 * Utility components: follow buttons, avatars, icons, timestamps
 */

/* Clean Follow/Unfollow Button Styles - YouTube Style */
.user-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px; /* Match other buttons */
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 18px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    outline: none;
    text-transform: none;
    user-select: none;
    margin-left: 12px;
    vertical-align: middle;
    line-height: 1;
    box-sizing: border-box;
}

/* Follow state - prominent button */
.user-follow-btn:not(.following) {
    background-color: #f1f1f1;
    color: #0f0f0f;
}

.user-follow-btn:not(.following):hover:not(.loading) {
    background-color: #e5e5e5;
}

/* Following state - subtle gray button */
.user-follow-btn.following {
    background-color: rgba(255, 255, 255, 0.1);
    color: #aaaaaa;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-follow-btn.following:hover:not(.loading) {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Loading state */
.user-follow-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Spinner animation */
.user-follow-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .user-follow-btn {
        padding: 6px 16px;
        font-size: 13px;
        min-width: 85px;
    }
}

/* Comment Avatar Styles */
.userimg img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #333;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chat Timestamp Styles */
.chat-timestamp {
    color: #888 !important;
    font-size: 11px !important;
    display: block;
    margin-top: 2px;
    opacity: 0.7;
}

.leftchat .chat-timestamp {
    text-align: left;
}

.rightchat .chat-timestamp {
    text-align: right;
}

.chatuser-content {
    position: relative;
}

.comment-input-field .userimg img {
    width: 36px;
    height: 36px;
}


/* Icon styling in buttons */
.videocommon-btn i,
.video-action-btn i,
.user-follow-btn i {
    font-size: 16px;
    margin: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Ensure Livewire components inside buttons are properly aligned */
.videocommon-btn > div,
.video-action-btn > div {
    display: inline-flex;
    align-items: center;
    height: 100%;
    gap: 6px;
}
