/* ==========================================
   HISTORY TABS
   CELESTIAL SWITCH
========================================== */

.meguri-history-tabs {
    position: relative;

    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 5px;

    width: min(100%, 560px);

    margin:
        38px
        auto
        0;

    padding: 5px;

    box-sizing: border-box;

    border:
        1px solid
        rgba(247, 215, 116, .18);

    border-radius: 999px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );

    box-shadow:
        inset 0 1px 0
            rgba(255,255,255,.07),
        0 14px 34px
            rgba(0,0,0,.13);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}



/* ==========================================
   TAB
========================================== */

.meguri-history-tabs
.meguri-history-tab {

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 48px;

    margin: 0;
    padding:
        11px
        18px;

    border: none !important;

    border-radius: 999px;

    background:
        transparent !important;

    color:
        rgba(255,255,255,.56);

    font-size: 12px;
    font-weight: 600;

    line-height: 1.4;

    letter-spacing: .045em;

    cursor: pointer;

    box-shadow: none;

    -webkit-tap-highlight-color:
        transparent;

    transition:
        color .25s ease,
        background .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}


/* ==========================================
   通常タブの小さなマーク
========================================== */

#historyToggleBtn::before {
    content: "✦";

    margin-right: 8px;

    color:
        rgba(247,215,116,.45);

    font-size: 9px;

    transition:
        color .25s ease,
        text-shadow .25s ease;
}


/* ==========================================
   お気に入り ★
========================================== */

#favoriteHistoryBtn span {
    display: inline-block;

    margin-right: 8px;

    color:
        rgba(247,215,116,.50);

    font-size: 13px;

    line-height: 1;

    transition:
        color .25s ease,
        text-shadow .25s ease,
        transform .25s ease;
}


/* ==========================================
   選択中
========================================== */

.meguri-history-tabs
.meguri-history-tab.active {

    color:
        #fff4c7 !important;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(247,215,116,.14),
            transparent 72%
        ),
        linear-gradient(
            135deg,
            rgba(105,76,153,.72),
            rgba(42,29,68,.90)
        ) !important;

    box-shadow:
        inset 0 1px 0
            rgba(255,255,255,.16),
        0 0 0 1px
            rgba(247,215,116,.30),
        0 0 20px
            rgba(247,215,116,.08),
        0 7px 18px
            rgba(0,0,0,.18);
}


/* 選択中の星 */

#historyToggleBtn.active::before {
    color:
        #f7d774;

    text-shadow:
        0 0 9px
        rgba(247,215,116,.60);
}


/* 選択中のお気に入り */

#favoriteHistoryBtn.active span {
    color:
        #f7d774;

    text-shadow:
        0 0 9px
        rgba(247,215,116,.60);

    transform:
        scale(1.08);
}


/* ==========================================
   HOVER
========================================== */

@media (hover: hover) {

    .meguri-history-tabs
    .meguri-history-tab:hover {

        color:
            rgba(255,244,199,.92) !important;

        background:
            rgba(247,215,116,.045) !important;
    }

}


/* ==========================================
   FOCUS / ACTIVE
   Elementorの赤を無効化
========================================== */

.meguri-history-tabs
.meguri-history-tab:focus,
.meguri-history-tabs
.meguri-history-tab:focus-visible,
.meguri-history-tabs
.meguri-history-tab:active {

    outline:
        none !important;

    border:
        none !important;

    color:
        rgba(255,255,255,.72);

    -webkit-tap-highlight-color:
        transparent;
}


.meguri-history-tabs
.meguri-history-tab.active:focus,
.meguri-history-tabs
.meguri-history-tab.active:focus-visible,
.meguri-history-tabs
.meguri-history-tab.active:active {

    color:
        #fff4c7 !important;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(247,215,116,.14),
            transparent 72%
        ),
        linear-gradient(
            135deg,
            rgba(105,76,153,.72),
            rgba(42,29,68,.90)
        ) !important;
}


/* ==========================================
   履歴一覧
========================================== */

.meguri-history-panel {
    width:
        min(100%, 620px);

    margin:
        20px
        auto
        0;

    padding-top: 0;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .meguri-history-tabs {
        width: 100%;

        margin-top: 30px;

        padding: 4px;

        gap: 3px;
    }


    .meguri-history-tabs
    .meguri-history-tab {

        min-height: 44px;

        padding:
            9px
            8px;

        font-size: 11px;

        letter-spacing: .015em;
    }


    #historyToggleBtn::before {
        margin-right: 5px;

        font-size: 8px;
    }


    #favoriteHistoryBtn span {
        margin-right: 5px;

        font-size: 12px;
    }

}
