﻿/*
body {
    font-family: system-ui,Roboto,Helvetica,Arial,sans-serif;
    line-height: 1.6;
    max-width: 720px;
    margin: auto;
    padding: 16px;
}
*/
.post {
    border: 1px solid #8caeb5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    background-color: #dbdad9;
}

.reaction-bar {
    display: none;
    top: -50px;
    left: 0;
    width: 320px;

    margin: 0px;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 6px 12px;
    padding-bottom: 15px;
    z-index: 10;
    display: none;
    position: absolute;
}

    .reaction-bar.show {
        display: flex;
    }

/*按讚樣式*/
.reaction-btn {
    cursor: pointer;
    user-select: none;
    transition: transform .15s ease;
    margin-right: 8px;
    font-size: 1.2rem;
    margin: 0px;
}

    .reaction-btn.hovering {
        transform: scale(1.5);
    }

    .reaction-btn.highlight {
        display: inline-block;
        transform: scale(1.5);
    }

.reaction-wrapper {
    margin:0px;
}
.ReactionFunc-Left, .ReactionFunc-Center, .ReactionFunc-Right {
    padding: 0 5px;
}
.counts-count-wrapper, .counts-emoji-wrapper {
    cursor: pointer;
}
.like-wrapper, .counts-wrapper, .CenterReply-wrapper {
    /*border: 1px solid #4c6aca;*/
    border: none;
    padding: 0px;
    cursor: pointer;
    margin: 0px;
}
.CenterReply-wrapper {
    color: #0d6efd;
}
.counts {
    margin-left: auto;
    font-size: .9rem;
    color: #555;
    white-space: nowrap;
}

.counts-emoji {
    display: inline-block;
    text-align: center;
    width: 24px;
    height: 24px;
    line-height: 22px;
    margin-right: 0px;
    font-size: 1rem;
    border-radius: 50%;
    border: 1px solid #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.counts-count {
    font-size: 1rem;
}

.Counts-List {
    position: absolute;
    display: none;
    top: 1.5rem;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 10rem;
    border-radius: 15px;
    padding: 10px;
}
    .Counts-List .Counts-Item {
        text-align: left;
        padding: 0px;
    }


.like-button {
    cursor: pointer;
    color: #0d6efd;
}

/*移過去變大，移開變小*/
.reaction-btn.hovering {
    transform: scale(1.5);
}

.reaction-btn:not(.hovering):not(.highlight) {
    transform: scale(1.0);
}

@media (max-width: 768px) {
    .reaction-bar {
        /* 移除 position: fixed 和 transform */
        position: absolute !important;
        top: -40px !important; /* 或需要的相對位移 */
        left: 0 !important;
        transform: none !important;
        z-index: 999;
        width: 190px;
    }
}

@media (hover: none) {
    .reaction-btn:hover {
        /* 手機上忽略 hover 效果 */
        transform: none !important;
    }
}
