/**
 * NRC Store - Theme Stylesheet (Dark & Light Mode)
 * Brand Pink and accent colors are strictly preserved.
 */

/* Theme Toggle Button & Icons */
.theme-switcher-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary, #94a3b8);
    cursor: pointer;
    outline: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.theme-toggle-btn:active {
    transform: translateY(0) scale(0.95);
}

.theme-toggle-btn .theme-icon {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
}

/* Default / Dark Mode: Show Sun icon (click to switch to light), Hide Moon icon */
:root:not([data-theme="light"]) .theme-toggle-btn .theme-icon--sun,
[data-theme="dark"] .theme-toggle-btn .theme-icon--sun {
    display: block;
    color: #fbbf24;
}

:root:not([data-theme="light"]) .theme-toggle-btn .theme-icon--moon,
[data-theme="dark"] .theme-toggle-btn .theme-icon--moon {
    display: none;
}

/* Light Mode: Show Moon icon (click to switch to dark), Hide Sun icon */
[data-theme="light"] .theme-toggle-btn .theme-icon--sun {
    display: none;
}

[data-theme="light"] .theme-toggle-btn .theme-icon--moon {
    display: block;
    color: #0284c7;
}

[data-theme="light"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #475569;
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.18);
    color: #0f172a;
}
