/**
 * Post Reactions & Share Buttons Styles
 * リアクションボタン（like, love, bad）とシェアボタンのスタイル
 * Font Awesomeアイコンを使用
 */

/* いいね＋シェアのラッパー（シェア左・いいね右） */
.findout-post-actions-wrapper {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.findout-share-buttons-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* シェアボタン：アイコン自体をクリック対象にする（枠なし） */
.findout-share-btn,
button.findout-share-btn,
[type=button].findout-share-btn,
[type=submit].findout-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 40px;
}

.findout-share-btn:hover,
.findout-share-btn:focus,
button.findout-share-btn:hover,
button.findout-share-btn:focus,
[type=button].findout-share-btn:hover,
[type=button].findout-share-btn:focus,
[type=submit].findout-share-btn:hover,
[type=submit].findout-share-btn:focus {
    transform: scale(1.1);
}

.findout-share-btn .fa {
    font-size: var(--findout-share-icon-size, 28px);
    line-height: 1;
    transition: all 0.3s ease;
}

/* カラーモード：各SNSのブランドカラー（base の color:inherit !important を上書き） */
.findout-share-buttons-container.findout-share-icons-color .findout-share-line,
.findout-share-buttons-container.findout-share-icons-color .findout-share-line .fa,
.findout-share-buttons-container.findout-share-icons-color .findout-share-line:hover,
.findout-share-buttons-container.findout-share-icons-color .findout-share-line:hover .fa {
    color: #00B900 !important;
}
.findout-share-buttons-container.findout-share-icons-color .findout-share-instagram,
.findout-share-buttons-container.findout-share-icons-color .findout-share-instagram .fa,
.findout-share-buttons-container.findout-share-icons-color .findout-share-instagram:hover,
.findout-share-buttons-container.findout-share-icons-color .findout-share-instagram:hover .fa {
    color: #E4405F !important;
}
.findout-share-buttons-container.findout-share-icons-color .findout-share-fb,
.findout-share-buttons-container.findout-share-icons-color .findout-share-fb .fa,
.findout-share-buttons-container.findout-share-icons-color .findout-share-fb:hover,
.findout-share-buttons-container.findout-share-icons-color .findout-share-fb:hover .fa {
    color: #1877F2 !important;
}
.findout-share-buttons-container.findout-share-icons-color .findout-share-x,
.findout-share-buttons-container.findout-share-icons-color .findout-share-x .fa,
.findout-share-buttons-container.findout-share-icons-color .findout-share-x:hover,
.findout-share-buttons-container.findout-share-icons-color .findout-share-x:hover .fa {
    color: #14171A !important;
}
.findout-share-buttons-container.findout-share-icons-color .findout-share-copy_link,
.findout-share-buttons-container.findout-share-icons-color .findout-share-copy_link .fa,
.findout-share-buttons-container.findout-share-icons-color .findout-share-copy_link:hover,
.findout-share-buttons-container.findout-share-icons-color .findout-share-copy_link:hover .fa {
    color: #555 !important;
}

/* 単色モード：すべてのシェアアイコンを同じ色で表示 */
.findout-share-buttons-container.findout-share-icons-monochrome .findout-share-btn,
.findout-share-buttons-container.findout-share-icons-monochrome .findout-share-btn .fa,
.findout-share-buttons-container.findout-share-icons-monochrome .findout-share-line,
.findout-share-buttons-container.findout-share-icons-monochrome .findout-share-instagram,
.findout-share-buttons-container.findout-share-icons-monochrome .findout-share-fb,
.findout-share-buttons-container.findout-share-icons-monochrome .findout-share-x,
.findout-share-buttons-container.findout-share-icons-monochrome .findout-share-copy_link {
    color: #555 !important;
}
.findout-share-buttons-container.findout-share-icons-monochrome .findout-share-btn:hover,
.findout-share-buttons-container.findout-share-icons-monochrome .findout-share-btn:focus,
.findout-share-buttons-container.findout-share-icons-monochrome .findout-share-line:hover,
.findout-share-buttons-container.findout-share-icons-monochrome .findout-share-instagram:hover,
.findout-share-buttons-container.findout-share-icons-monochrome .findout-share-fb:hover,
.findout-share-buttons-container.findout-share-icons-monochrome .findout-share-x:hover,
.findout-share-buttons-container.findout-share-icons-monochrome .findout-share-copy_link:hover {
    color: #333 !important;
}

.findout-post-reactions-container {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.findout-reaction-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent !important;
    background-color: transparent !important;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    min-width: 40px;
    justify-content: center;
    color: inherit !important;
}

.findout-reaction-button:hover:not(:disabled),
button.findout-reaction-button:hover:not(:disabled),
[type=button].findout-reaction-button:hover:not(:disabled),
[type=submit].findout-reaction-button:hover:not(:disabled) {
    transform: scale(1.1);
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
}

.findout-reaction-button:active:not(:disabled),
button.findout-reaction-button:active:not(:disabled),
[type=button].findout-reaction-button:active:not(:disabled),
[type=submit].findout-reaction-button:active:not(:disabled) {
    transform: scale(0.95);
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
}

.findout-reaction-button:focus:not(:disabled),
.findout-reaction-button:focus-visible:not(:disabled),
button.findout-reaction-button:focus:not(:disabled),
button.findout-reaction-button:focus-visible:not(:disabled),
[type=button].findout-reaction-button:focus:not(:disabled),
[type=button].findout-reaction-button:focus-visible:not(:disabled),
[type=submit].findout-reaction-button:focus:not(:disabled),
[type=submit].findout-reaction-button:focus-visible:not(:disabled) {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
    outline: none !important;
}

.findout-reaction-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.findout-reaction-button.processing {
    opacity: 0.6;
    cursor: wait;
}

.reaction-icon {
    font-size: var(--findout-like-icon-size, 28px);
    line-height: 1;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Like ボタン */
.findout-reaction-like .reaction-icon {
    color: #4CAF50;
}

.findout-reaction-like.reacted .reaction-icon {
    color: #4CAF50;
    animation: reactionPulse 0.5s ease;
}

.findout-reaction-like:hover:not(:disabled) .reaction-icon {
    transform: scale(1.15);
}

.findout-reaction-like:hover:not(:disabled),
button.findout-reaction-like:hover:not(:disabled),
[type=button].findout-reaction-like:hover:not(:disabled),
[type=submit].findout-reaction-like:hover:not(:disabled) {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
}

/* Love ボタン */
.findout-reaction-love .reaction-icon {
    color: #f44336;
}

.findout-reaction-love.reacted .reaction-icon {
    color: #f44336;
    animation: reactionPulse 0.5s ease;
}

.findout-reaction-love:hover:not(:disabled) .reaction-icon {
    transform: scale(1.15);
}

.findout-reaction-love:hover:not(:disabled),
button.findout-reaction-love:hover:not(:disabled),
[type=button].findout-reaction-love:hover:not(:disabled),
[type=submit].findout-reaction-love:hover:not(:disabled) {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
}

/* Bad ボタン */
.findout-reaction-bad .reaction-icon {
    color: #757575;
}

.findout-reaction-bad.reacted .reaction-icon {
    color: #757575;
    animation: reactionPulse 0.5s ease;
}

/* 単色モード：いいねアイコンを統一色で表示 */
.findout-post-reactions-container.findout-like-icons-monochrome .reaction-icon,
.findout-post-reactions-container.findout-like-icons-monochrome .findout-reaction-like .reaction-icon,
.findout-post-reactions-container.findout-like-icons-monochrome .findout-reaction-love .reaction-icon,
.findout-post-reactions-container.findout-like-icons-monochrome .findout-reaction-bad .reaction-icon {
    color: #555 !important;
}

.findout-post-reactions-container.findout-like-icons-monochrome .findout-reaction-button:hover:not(:disabled) .reaction-icon {
    color: #333 !important;
}

.findout-reaction-bad:hover:not(:disabled) .reaction-icon {
    transform: scale(1.15);
}

.findout-reaction-bad:hover:not(:disabled),
button.findout-reaction-bad:hover:not(:disabled),
[type=button].findout-reaction-bad:hover:not(:disabled),
[type=submit].findout-reaction-bad:hover:not(:disabled) {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
}

.findout-reaction-like.reacted:hover:not(:disabled),
.findout-reaction-love.reacted:hover:not(:disabled),
.findout-reaction-bad.reacted:hover:not(:disabled),
button.findout-reaction-like.reacted:hover:not(:disabled),
button.findout-reaction-love.reacted:hover:not(:disabled),
button.findout-reaction-bad.reacted:hover:not(:disabled),
[type=button].findout-reaction-like.reacted:hover:not(:disabled),
[type=button].findout-reaction-love.reacted:hover:not(:disabled),
[type=button].findout-reaction-bad.reacted:hover:not(:disabled),
[type=submit].findout-reaction-like.reacted:hover:not(:disabled),
[type=submit].findout-reaction-love.reacted:hover:not(:disabled),
[type=submit].findout-reaction-bad.reacted:hover:not(:disabled) {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
}

.findout-reaction-like:active:not(:disabled),
.findout-reaction-love:active:not(:disabled),
.findout-reaction-bad:active:not(:disabled),
button.findout-reaction-like:active:not(:disabled),
button.findout-reaction-love:active:not(:disabled),
button.findout-reaction-bad:active:not(:disabled),
[type=button].findout-reaction-like:active:not(:disabled),
[type=button].findout-reaction-love:active:not(:disabled),
[type=button].findout-reaction-bad:active:not(:disabled),
[type=submit].findout-reaction-like:active:not(:disabled),
[type=submit].findout-reaction-love:active:not(:disabled),
[type=submit].findout-reaction-bad:active:not(:disabled) {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
}

.findout-reaction-like.reacted:active:not(:disabled),
.findout-reaction-love.reacted:active:not(:disabled),
.findout-reaction-bad.reacted:active:not(:disabled),
button.findout-reaction-like.reacted:active:not(:disabled),
button.findout-reaction-love.reacted:active:not(:disabled),
button.findout-reaction-bad.reacted:active:not(:disabled),
[type=button].findout-reaction-like.reacted:active:not(:disabled),
[type=button].findout-reaction-love.reacted:active:not(:disabled),
[type=button].findout-reaction-bad.reacted:active:not(:disabled),
[type=submit].findout-reaction-like.reacted:active:not(:disabled),
[type=submit].findout-reaction-love.reacted:active:not(:disabled),
[type=submit].findout-reaction-bad.reacted:active:not(:disabled) {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
}

.findout-reaction-like:focus:not(:disabled),
.findout-reaction-like:focus-visible:not(:disabled),
.findout-reaction-love:focus:not(:disabled),
.findout-reaction-love:focus-visible:not(:disabled),
.findout-reaction-bad:focus:not(:disabled),
.findout-reaction-bad:focus-visible:not(:disabled),
button.findout-reaction-like:focus:not(:disabled),
button.findout-reaction-like:focus-visible:not(:disabled),
button.findout-reaction-love:focus:not(:disabled),
button.findout-reaction-love:focus-visible:not(:disabled),
button.findout-reaction-bad:focus:not(:disabled),
button.findout-reaction-bad:focus-visible:not(:disabled),
[type=button].findout-reaction-like:focus:not(:disabled),
[type=button].findout-reaction-like:focus-visible:not(:disabled),
[type=button].findout-reaction-love:focus:not(:disabled),
[type=button].findout-reaction-love:focus-visible:not(:disabled),
[type=button].findout-reaction-bad:focus:not(:disabled),
[type=button].findout-reaction-bad:focus-visible:not(:disabled),
[type=submit].findout-reaction-like:focus:not(:disabled),
[type=submit].findout-reaction-like:focus-visible:not(:disabled),
[type=submit].findout-reaction-love:focus:not(:disabled),
[type=submit].findout-reaction-love:focus-visible:not(:disabled),
[type=submit].findout-reaction-bad:focus:not(:disabled),
[type=submit].findout-reaction-bad:focus-visible:not(:disabled) {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
    outline: none !important;
}

.findout-reaction-like.reacted:focus:not(:disabled),
.findout-reaction-like.reacted:focus-visible:not(:disabled),
.findout-reaction-love.reacted:focus:not(:disabled),
.findout-reaction-love.reacted:focus-visible:not(:disabled),
.findout-reaction-bad.reacted:focus:not(:disabled),
.findout-reaction-bad.reacted:focus-visible:not(:disabled),
button.findout-reaction-like.reacted:focus:not(:disabled),
button.findout-reaction-like.reacted:focus-visible:not(:disabled),
button.findout-reaction-love.reacted:focus:not(:disabled),
button.findout-reaction-love.reacted:focus-visible:not(:disabled),
button.findout-reaction-bad.reacted:focus:not(:disabled),
button.findout-reaction-bad.reacted:focus-visible:not(:disabled),
[type=button].findout-reaction-like.reacted:focus:not(:disabled),
[type=button].findout-reaction-like.reacted:focus-visible:not(:disabled),
[type=button].findout-reaction-love.reacted:focus:not(:disabled),
[type=button].findout-reaction-love.reacted:focus-visible:not(:disabled),
[type=button].findout-reaction-bad.reacted:focus:not(:disabled),
[type=button].findout-reaction-bad.reacted:focus-visible:not(:disabled),
[type=submit].findout-reaction-like.reacted:focus:not(:disabled),
[type=submit].findout-reaction-like.reacted:focus-visible:not(:disabled),
[type=submit].findout-reaction-love.reacted:focus:not(:disabled),
[type=submit].findout-reaction-love.reacted:focus-visible:not(:disabled),
[type=submit].findout-reaction-bad.reacted:focus:not(:disabled),
[type=submit].findout-reaction-bad.reacted:focus-visible:not(:disabled) {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
    outline: none !important;
}

.reaction-count {
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    color: #666666;
    position: absolute;
    top: -8px;
    right: -12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 2px 6px;
    line-height: 1.2;
}

.findout-reaction-button.reacted .reaction-count {
    color: #333333;
    border-color: #ccc;
}

@keyframes reactionPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* ラッパー内のリアクションコンテナは余白なし */
.findout-post-actions-wrapper .findout-post-reactions-container {
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .findout-post-actions-wrapper {
        gap: 16px;
    }
    
    .findout-share-buttons-container {
        gap: 10px;
    }
    
    .findout-share-btn {
        width: 36px;
        height: 36px;
    }
    
    .findout-post-reactions-container {
        gap: 15px;
    }
    
    .reaction-count {
        font-size: 12px;
        top: -6px;
        right: -10px;
        padding: 1px 5px;
    }
}

@media (max-width: 480px) {
    .findout-post-actions-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .findout-post-reactions-container {
        gap: 12px;
    }
    
    .reaction-count {
        font-size: 11px;
        top: -5px;
        right: -8px;
        padding: 1px 4px;
    }
}

/* SAKINA 未契約時の有料案内モーダル */
.findout-paid-feature-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.findout-paid-feature-modal.is-open {
    display: flex;
}

.findout-paid-feature-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    cursor: pointer;
}

.findout-paid-feature-modal__panel {
    position: relative;
    z-index: 1;
    max-width: 420px;
    width: 100%;
    padding: 24px 22px 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    color: #111827;
    font-size: 15px;
    line-height: 1.6;
}

.findout-paid-feature-modal__line1 {
    margin: 0 0 14px;
    font-weight: 600;
}

.findout-paid-feature-modal__line2 {
    margin: 0 0 20px;
}

.findout-paid-feature-modal__line2 a {
    color: #0073aa;
    text-decoration: underline;
    font-weight: 600;
}

.findout-paid-feature-modal__line2 a:hover,
.findout-paid-feature-modal__line2 a:focus {
    color: #006494;
}

.findout-paid-feature-modal__close {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    cursor: pointer;
}

.findout-paid-feature-modal__close:hover,
.findout-paid-feature-modal__close:focus {
    background: #e2e8f0;
}
