/* =============================================================================
   Essay Feedback - Pure Reactions
   ============================================================================= */

.essay-feedback-container {
    margin: 80px auto 40px; /* 記事本文との距離を少し空ける */
    padding: 0 20px;
    max-width: 100%;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}

.ef-label {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 24px;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* リアクションエリア */
.ef-reactions {
    display: flex;
    justify-content: center;
    gap: 20px; /* ボタン間の距離 */
    flex-wrap: wrap;
}

/* ボタン本体（背景透明・枠線なし） */
.ef-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 70px;
    position: relative;
    overflow: hidden;
}

/* ホバー時のエフェクト */
.ef-btn:hover {
    background-color: #f7f9fa;
    transform: translateY(-4px);
}

.ef-btn:active {
    transform: scale(0.95);
}

/* 押された後の状態（クリック不可にするデザイン） */
.ef-btn.voted {
    cursor: default;
    pointer-events: none;
}

.ef-btn.voted .ef-icon {
    animation: pop 0.4s ease forwards;
}

/* アイコン */
.ef-icon {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 6px;
    filter: grayscale(30%);
    transition: filter 0.3s;
}

.ef-btn:hover .ef-icon {
    filter: grayscale(0%);
}

/* テキスト */
.ef-text {
    font-size: 11px;
    color: #666;
    font-weight: 600;
}

/* カウント数 */
.ef-count {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    min-height: 1em;
    font-feature-settings: "tnum"; /* 数字の幅を揃える */
}

/* 完了メッセージ */
#ef-thankyou-msg {
    margin-top: 20px;
    height: 20px;
    font-size: 13px;
    color: #2e7d32; /* 落ち着いた緑 */
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.5s;
}

#ef-thankyou-msg.show {
    opacity: 1;
}

/* ポップアニメーション */
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* スマホ調整 */
@media (max-width: 480px) {
    .ef-reactions {
        gap: 10px;
    }
    .ef-btn {
        padding: 10px;
        min-width: 60px;
    }
    .ef-icon {
        font-size: 28px;
    }
}