
/* =========================================================
   İde Dynamic Theme Switcher for Enfold
   ========================================================= */

/*
 * Paired Enfold Color Sections.
 */
html.idet-light .gold-dark,
body.idet-light .gold-dark {
    display: none !important;
}

html.idet-dark .gold-light,
body.idet-dark .gold-light {
    display: none !important;
}

/*
 * Never inject a light/dark background into the duplicated hero sections.
 * This prevents the Enfold "large black rectangle over hero" issue.
 */
.gold-light,
.gold-dark,
.gold-light > .container,
.gold-dark > .container,
.gold-light .container,
.gold-dark .container {
    background-color: transparent !important;
}

/*
 * Theme toggle.
 */
.idet-theme-toggle {
    position: fixed;
    z-index: 999999;
    width: 46px;
    height: 46px;
    padding: 0;
    margin: 0;
    border: 1px solid var(--idet-gold, #c99a3d);
    border-radius: 50%;
    background: rgba(10,10,10,.82);
    color: var(--idet-gold, #c99a3d);
    box-shadow: 0 6px 24px rgba(0,0,0,.20);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    line-height: 1;
    transition: transform .2s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}

.idet-theme-toggle:hover,
.idet-theme-toggle:focus {
    transform: scale(1.06);
}

.idet-theme-toggle.idet-pos-top-right { top: 18px; right: 22px; }
.idet-theme-toggle.idet-pos-top-left { top: 18px; left: 22px; }
.idet-theme-toggle.idet-pos-bottom-right { bottom: 22px; right: 22px; }
.idet-theme-toggle.idet-pos-bottom-left { bottom: 22px; left: 22px; }

body.admin-bar .idet-theme-toggle.idet-pos-top-right,
body.admin-bar .idet-theme-toggle.idet-pos-top-left {
    top: 50px;
}

body.idet-light .idet-theme-toggle {
    background-color: var(--idet-light-surface, #fffaf2);
    border-color: var(--idet-gold, #c99a3d);
    color: var(--idet-gold, #c99a3d);
}

body.idet-dark .idet-theme-toggle {
    background-color: var(--idet-dark-surface, #111111);
    border-color: var(--idet-gold, #c99a3d);
    color: var(--idet-gold, #c99a3d);
}

@media (max-width: 782px) {
    .idet-theme-toggle {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }

    .idet-theme-toggle.idet-pos-top-right { top: 12px; right: 12px; }
    .idet-theme-toggle.idet-pos-top-left { top: 12px; left: 12px; }
    .idet-theme-toggle.idet-pos-bottom-right { bottom: 12px; right: 12px; }
    .idet-theme-toggle.idet-pos-bottom-left { bottom: 12px; left: 12px; }

    body.admin-bar .idet-theme-toggle.idet-pos-top-right,
    body.admin-bar .idet-theme-toggle.idet-pos-top-left {
        top: 64px;
    }
}

/* v5.0.8 - additional visitor toggle positions */
.idet-theme-toggle.idet-pos-center-right { top: 50%; right: 22px; transform: translateY(-50%); }
.idet-theme-toggle.idet-pos-center-left { top: 50%; left: 22px; transform: translateY(-50%); }
.idet-theme-toggle.idet-pos-center-right:hover,
.idet-theme-toggle.idet-pos-center-right:focus,
.idet-theme-toggle.idet-pos-center-left:hover,
.idet-theme-toggle.idet-pos-center-left:focus { transform: translateY(-50%) scale(1.06); }
@media (max-width: 782px) {
    .idet-theme-toggle.idet-pos-center-right { right: 12px; }
    .idet-theme-toggle.idet-pos-center-left { left: 12px; }
}
