/* ==========================================
   お気に入り機能のスタイル
   ========================================== */

/* お気に入りボタン */
.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.favorite-btn:active {
    transform: scale(0.95);
}

.favorite-btn.is-favorite {
    color: #FFD700;
}

.favorite-btn.animate {
    animation: favorite-pop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes favorite-pop {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* お気に入りフィルターボタン */
.filter-favorites-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-favorites-btn:hover {
    border-color: var(--primary);
    background: rgba(200, 80, 60, 0.05);
}

.filter-favorites-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.filter-favorites-btn .icon {
    font-size: 18px;
}

.filter-favorites-btn .count {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

.filter-favorites-btn.active .count {
    background: rgba(255, 255, 255, 0.2);
}

/* お気に入りカウント（ナビゲーション用） */
#favorites-count {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #FFD700;
    color: #333;
    font-size: 11px;
    font-weight: bold;
    border-radius: 9px;
    line-height: 18px;
    text-align: center;
}

/* フィルターコントロールエリア */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-controls .label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .favorite-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .filter-favorites-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .filter-controls {
        margin-bottom: 16px;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .favorite-btn {
        background: rgba(26, 26, 26, 0.95);
        color: #FFD700;
    }

    .filter-favorites-btn {
        background: #1a1a1a;
        border-color: #333;
        color: #fff;
    }

    .filter-favorites-btn:hover {
        border-color: var(--primary-dark);
        background: rgba(212, 122, 110, 0.1);
    }

    .filter-favorites-btn.active {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
    }
}