/* タグ関連のスタイル */
.tag-badge {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px 4px;
    background-color: #e3f2fd;
    color: #1976d2;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #90caf9;
    transition: all 0.2s ease;
}

.tag-badge:hover {
    background-color: #bbdefb;
    border-color: #64b5f6;
    cursor: pointer;
}

.tag-badge.active {
    background-color: #1976d2;
    color: white;
    border-color: #1976d2;
}

/* タグ入力フィールド */
.tag-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.tag-input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

/* タグサジェスト */
.tag-suggestions {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.tag-suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.tag-suggestion-item:last-child {
    border-bottom: none;
}

.tag-suggestion-item:hover,
.tag-suggestion-item.active {
    background-color: #f5f5f5;
}

.tag-suggestion-item.new-tag {
    color: #4caf50;
    font-weight: 500;
}

.tag-suggestion-item.new-tag i {
    margin-right: 6px;
}

/* 共有インジケーター */
.shared-indicator {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background-color: #fff3e0;
    color: #f57c00;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 8px;
}

.shared-indicator i {
    margin-right: 4px;
}

/* 共有ボタン */
.btn-share {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-share:hover {
    background-color: #e0e0e0;
    border-color: #bbb;
}

.btn-share.shared {
    background-color: #fff3e0;
    border-color: #ffb74d;
    color: #f57c00;
}

.btn-share.shared:hover {
    background-color: #ffe0b2;
    border-color: #ffa726;
}

/* タグフィルターセクション */
.tag-filter-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.tag-filter-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 共有フィルターボタン */
.share-filter-buttons {
    display: inline-flex;
    gap: 4px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.share-filter-btn {
    padding: 6px 12px;
    background-color: white;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-filter-btn:hover {
    background-color: #f5f5f5;
}

.share-filter-btn.active {
    background-color: #1976d2;
    color: white;
}

/* 住所順ソートボタン */
.btn-sort-address {
    background-color: white;
    border: 1px solid #ddd;
    color: #666;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-sort-address:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
}

.btn-sort-address.active {
    background-color: #e3f2fd;
    border-color: #1976d2;
    color: #1976d2;
}

/* カード一覧での共有表示 */
.card-list-item {
    position: relative;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.card-list-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-list-item.shared {
    border-left: 4px solid #f57c00;
}

.card-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.card-owner {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.85rem;
    color: #999;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .tag-filter-section {
        padding: 10px;
    }
    
    .share-filter-buttons {
        width: 100%;
    }
    
    .share-filter-btn {
        flex: 1;
        text-align: center;
    }
    
    .tag-badge {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}
