/* html/assets/css/common/payslip-reaction.css */
/* 明細評価（リアクション）用スタイル */

/* 評価ボタン基本スタイル調整 */
.c-detail__evaluation {
    display: flex;
    gap: 10px;
}

.c-detail__evaluation a,
.c-detail__evaluation button {
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    text-decoration: none;
}

/* 評価済みコンテナ */
.c-detail__evaluation.-voted a,
.c-detail__evaluation.-voted button {
    cursor: default;
}

/* 無効化（シークレット明細） */
.c-detail__evaluation.-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.c-detail__evaluation.-disabled a,
.c-detail__evaluation.-disabled button {
    cursor: not-allowed;
}

/* 送信中 */
.c-detail__evaluation.-submitting a,
.c-detail__evaluation.-submitting button {
    opacity: 0.6;
    pointer-events: none;
}

/* ホバー効果（未評価時のみ） */
.c-detail__evaluation:not(.-voted):not(.-disabled) .helpful:hover {
    transform: scale(1.05);
}

.c-detail__evaluation:not(.-voted):not(.-disabled) .really:hover {
    transform: scale(1.05);
}

/* ログイン促進ポップアップ */
.reaction-login-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.reaction-login-popup.-active {
    opacity: 1;
    visibility: visible;
}

.reaction-login-popup__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.reaction-login-popup__inner {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 90%;
    width: 350px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.reaction-login-popup__title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.reaction-login-popup__text {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.reaction-login-popup__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reaction-login-popup__buttons .c-btn__link {
    display: block;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}

.reaction-login-popup__buttons .c-btn__link.-gradation {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
}

.reaction-login-popup__buttons .c-btn__link.-darkgray {
    background: #666;
    color: #fff;
}

/* トーストメッセージ */
.reaction-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.reaction-toast.-show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.reaction-toast.-success {
    background: #4caf50;
}

.reaction-toast.-error {
    background: #f44336;
}

.reaction-toast.-info {
    background: #2196f3;
}
