/* 賞賛タグ機能のスタイル */

.special-tags-container {
    margin-top: 10px;
    padding: 8px 0;
    border-top: 1px solid #eee;
}

.special-tags-container .title-container {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.special-tags-container .title-container span {
    font-size: 12px;
    color: #666;
    margin-right: 8px;
    font-weight: 500;
}

.add-special-tag-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: block !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    height: 36px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.add-special-tag-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-color: #adb5bd !important;
}

.add-special-tag-btn:active {
    transform: translateY(1px) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.special-tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.special-tag-label {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: #ffffff !important;
    padding: 8px 20px 8px 20px !important;
    border-radius: 15px !important;
    font-size: 14px !important;
    display: inline-block !important;
    margin: 8px 8px 3px 0 !important;
    letter-spacing: 1px !important;
    font-weight: bold !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    position: relative !important;
    transition: opacity 0.2s ease !important;
}

.special-tag-label:hover {
    opacity: 0.8;
}

/* モーダルスタイル */
#specialTagModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
}

#specialTagModal .modal-content {
    background-color: #fefefe !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 10000 !important;
    padding: 20px 25px 25px 25px !important;
    border: none !important;
    border-radius: 12px !important;
    width: 90% !important;
    max-width: 520px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    animation: slideIn 0.3s ease !important;
}

#specialTagModal .modal-content li:hover {
    background: none !important;
}

#specialTagModal .modal-content li {
    padding: 0 !important;
}

#specialTagModal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

#specialTagModal .close:hover {
    color: #333;
}

#specialTagModal h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

#specialTagModal .modal-info {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #495057;
    line-height: 1.4;
    text-align: left;
}

#specialTagOptions {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

#specialTagOptions li:hover {
    background: none !important;
}

.special-tag-option {
    margin-bottom: 5px;
    border-radius: 8px;
    display: block;
}

.special-tag-option .tag-preview {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: block !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
    border: none !important;
    text-decoration: none !important;
    width: 100% !important;
    text-align: center !important;
}

.special-tag-option .tag-preview:hover {
    opacity: 0.7;
}

.delete-tag-btn {
    background: #6c757d !important;
    color: white !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    transition: background-color 0.2s ease !important;
    margin-top: 8px !important;
}

.delete-tag-btn:hover {
    background: #5a6268 !important;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    #specialTagModal .modal-content {
        width: 95% !important;
        max-height: 85vh !important;
        padding: 15px 20px 20px 20px !important;
        margin: 0 !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        position: fixed !important;
    }

    .add-special-tag-btn {
        font-size: 12px !important;
        padding: 7px 12px !important;
        height: 34px !important;
    }

    .special-tag-label {
        font-size: 13px !important;
        padding: 7px 18px 7px 18px !important;
        margin: 6px 6px 3px 0 !important;
    }
}

/* 無効化されたオプションのスタイル */
.special-tag-option[style*="opacity: 0.5"] {
    background-color: #f5f5f5;
}

.special-tag-option[style*="opacity: 0.5"] .tag-preview {
    background: #ccc !important;
    cursor: not-allowed !important;
}