/**
 * Anke Likes System - スタイル
 */

/* いいねボタン */
.anke-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #666;
}

.anke-like-btn:hover {
    background: #f8f8f8;
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.anke-like-btn.liked {
    background: #fff0f0;
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.anke-like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.anke-like-btn .like-icon {
    font-size: 18px;
    line-height: 1;
}

.anke-like-btn .like-count {
    font-weight: 600;
}

/* いいねアニメーション */
.anke-like-btn.like-animation {
    animation: likeAnimation 0.3s ease;
}

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

/* いいねボタン（小サイズ） */
.anke-like-btn.small {
    padding: 4px 12px;
    font-size: 12px;
}

.anke-like-btn.small .like-icon {
    font-size: 14px;
}

/* いいねしたユーザー一覧ボタン */
.anke-like-users-btn {
    display: inline-block;
    padding: 4px 8px;
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
}

.anke-like-users-btn:hover {
    color: #666;
}

/* モーダル */
.anke-like-users-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anke-like-users-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.anke-like-users-modal .modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.anke-like-users-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.anke-like-users-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.anke-like-users-modal .modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.anke-like-users-modal .modal-close:hover {
    background: #f0f0f0;
    color: #666;
}

.anke-like-users-modal .modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.anke-like-users-modal .like-users-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.anke-like-users-modal .like-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.anke-like-users-modal .like-user-item:hover {
    background: #f8f8f8;
}

.anke-like-users-modal .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.anke-like-users-modal .user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    display: inline-block;
}

.anke-like-users-modal .user-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .anke-like-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .anke-like-users-modal .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .anke-like-users-modal .modal-header {
        padding: 15px;
    }
    
    .anke-like-users-modal .modal-body {
        padding: 15px;
    }
}
