/* like.css */

/* --- 全体のコンテナ --- */
.action-section {
    display: flex;
    justify-content: space-between; /* 左右に配置 */
    align-items: center;
    padding: 20px 30px;
    margin: 40px auto; /* 上下の余白 */
    background-color: #1f1f1f; /* 少し明るい背景でエリアを区別 */
    border-radius: 12px;
    border: 1px solid #333;
    max-width: 1000px; /* コメント欄などと幅を合わせる */
    box-sizing: border-box;
    flex-wrap: wrap; /* スマホで縦並びになるように */
    gap: 20px;
}

/* --- 左側：いいねボタン --- */
.like-button {
    background: transparent;
    border: 2px solid #555;
    border-radius: 50px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #ccc;
    font-size: 0.95rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    outline: none;
}

.like-button:hover {
    border-color: #ff4081;
    background-color: rgba(255, 64, 129, 0.1);
    color: #fff;
}

/* ハートアイコン */
.heart-icon {
    fill: transparent;
    stroke: #888;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.like-button:hover .heart-icon {
    stroke: #ff4081;
}

/* いいね済み状態 */
.like-button.liked {
    border-color: #e91e63;
    background-color: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

.like-button.liked .heart-icon {
    fill: #e91e63;
    stroke: #e91e63;
    animation: heartBeat 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1.2); }
}

/* エフェクト */
.like-icon-wrapper { position: relative; display: flex; }
.like-ring {
    position: absolute; width: 100%; height: 100%;
    border-radius: 50%; border: 2px solid #e91e63; opacity: 0; pointer-events: none;
}
.like-button.liked .like-ring { animation: ringEffect 0.6s ease-out; }
@keyframes ringEffect {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}


/* --- 右側：SNSシェアボタン --- */
.action-group-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-label {
    color: #888;
    font-size: 0.9rem;
    margin-right: 5px;
}

.sns-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
    transition: opacity 0.3s;
}

.sns-btn:hover {
    opacity: 0.8;
}

.sns-btn svg {
    fill: currentColor;
}

/* X (Twitter) */
.sns-x {
    background-color: #000; /* Xのブランドカラー */
    border: 1px solid #444;
}

/* Facebook */
.sns-fb {
    background-color: #1877F2; /* FBのブランドカラー */
    border: 1px solid #1877F2;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .action-section {
        justify-content: center; /* 中央寄せ */
    }
}