/* 共通ページスタイル */
.my-favorites-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 0px;
}

.my-favorites-page-title {
    position: relative;
    margin-bottom: 20px;
}

.my-favorites-page-title h1 {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
    color: #222;
    position: relative;
    z-index: 1;
}

/* 下線の装飾 */
.fav-tooltip-popup::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #333; /* 下向きの吹き出し */
}  

/* 共通お気に入りリスト */
.favorite-list {
    list-style: none;
    padding: 0;
    padding-left: 10px;
    margin-top: 10px;
}

.favorite-list li {
    margin-bottom: 12px;
    padding-bottom: 8px;
}

/* イベントセクション専用 */
.favorites-events .favorite-render-wrapper {
    margin-bottom: 16px;
}

/* チームセクション専用 */
.favorites-teams .favorite-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* エリアとスポーツセクションの簡易表示 */
.favorites-areas .favorite-list li,
.favorites-sports .favorite-list li {
    padding: 6px 0;
    color: #333;
    font-size: 15px;
}

.favorite-category-title {
    background-color: #e0f2ff;
    border-left: 6px solid var(--primary-color);
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: bold;
    color: #222;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.notify-preference {
    display: flex;
    justify-content: flex-end; /* ← 右寄せ */
    align-items: center;
    gap: 6px;                 /* ラベルとスイッチの間隔 */
    margin-top: 10px;
    margin-left: 10px;
    padding: 0px 0px;
    font-size: 14px;
    color: #333;
}

.notify-label {
    font-weight: 500;
}

/* スライダーの基本形 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.toggle-switch .slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

/* ON のときの状態 */
.toggle-switch input:checked + .slider {
    background-color: var(--primary-color, #0082d4);
}

.toggle-switch input:checked + .slider::before {
    transform: translateX(22px);
}

.toggle-switch input:disabled + .slider {
    background-color: #ccc !important;
    opacity: 0.5;
    cursor: not-allowed;
}

.favorites-teams .favorite-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd; /* ← これを追加 */
    padding: 8px 0;
}
.favorites-teams .favorite-list li:last-child { 
    border-bottom: none; 
}

.favorites-notifications .notify-preference {
    justify-content: flex-start;  /* ← 右寄せから左寄せに変更 */
    gap: 12px;                    /* スライダーとの間隔を少し広げてもOK */
}

.no-favorites-message {
    font-size: 14px;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.favorite-login-message {
    font-size: 14px;
    margin-left: 10px;
    margin-bottom: 10px;
}

.favorites-search .favorites-search-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
}

.favorites-search .favorites-search-list li:last-child {
    border-bottom: none;
}
