/* ============================================
   SC7 THEME TOGGLE STYLES
   Modern theme switcher button styles
   Version: 2.0
   ============================================ */

/* Theme Toggle Button */
button[data-theme-toggle],
a[data-theme-toggle] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--shop-border);
    background: var(--shop-surface-2);
    color: var(--shop-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--shop-font);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

button[data-theme-toggle]:hover,
a[data-theme-toggle]:hover {
    background: rgba(0, 217, 146, .08);
    border-color: rgba(0, 217, 146, .3);
    color: var(--shop-green);
}

/* Light Mode Overrides */
[data-theme="light"] button[data-theme-toggle],
[data-theme="light"] a[data-theme-toggle] {
    background: rgba(248, 249, 250, .8);
}

[data-theme="light"] button[data-theme-toggle]:hover,
[data-theme="light"] a[data-theme-toggle]:hover {
    background: rgba(0, 168, 107, .08);
    border-color: rgba(0, 168, 107, .3);
}

/* Icon Animation */
button[data-theme-toggle] i,
a[data-theme-toggle] i {
    transition: transform 0.3s ease;
    font-size: 14px;
}

button[data-theme-toggle]:active i,
a[data-theme-toggle]:active i {
    transform: rotate(180deg);
}

/* Mobile Details Styling */
body.sc7-commercial .sc7-mobile-details {
    border-bottom: 1px solid var(--shop-border-soft);
}

body.sc7-commercial .sc7-mobile-details summary {
    display: block;
    color: var(--shop-muted);
    padding: 13px 0;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}

body.sc7-commercial .sc7-mobile-details summary:hover {
    color: var(--shop-green);
}

body.sc7-commercial .sc7-mobile-details a {
    padding-left: 20px;
    font-size: 14px;
}

body.sc7-commercial .sc7-mobile-details[open] summary {
    color: var(--shop-green);
}

/* Theme Toggle in Mobile Panel */
body.sc7-commercial .sc7-mobile-panel a[data-theme-toggle] {
    border-top: 1px solid var(--shop-border);
    margin-top: 10px;
    padding-top: 13px;
}

/* Utility Bar Theme Toggle */
.sc7-utility-select[data-theme-toggle] {
    min-width: auto;
}

.sc7-utility-select[data-theme-toggle] .theme-text {
    color: var(--shop-muted);
    font: 800 12px/1 var(--shop-font);
    min-width: 42px;
    text-align: left;
}
