/* Wallpaper Feature Styles */

.wallpaper-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.wallpaper-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dynamic Dimmer Overlay */
.wallpaper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5); /* Light Mode default */
    transition: background 0.3s ease;
}

body.dark-mode .wallpaper-overlay {
    background: rgba(0, 0, 0, 0.6); /* Dark Mode darkened */
}

/* Blur classes applied via JS */
.wallpaper-blur-none { filter: blur(0px); }
.wallpaper-blur-low { filter: blur(2px); }
.wallpaper-blur-med { filter: blur(5px); }
.wallpaper-blur-high { filter: blur(10px); }

.wallpaper-settings-group {
    margin-top: 15px;
}

.wallpaper-settings-title {
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallpaper-control-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}


.wallpaper-control-row select,
.wallpaper-control-row input[type="range"] {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-main);
}

body.dark-mode .wallpaper-control-row select {
    background: #333;
    color: #fff;
    border-color: #555;
}

.wallpaper-upload-btn {
    display: inline-block;
    padding: 8px 12px;
    background: var(--primary-color);
    color: var(--bg-color) !important;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
}


.wallpaper-upload-btn:hover {
    opacity: 0.9;
}

.wallpaper-reset-btn {
    font-size: 1em;
    color: #d32f2f; /* Darker red for better contrast in light mode */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    text-decoration: underline;
}

/* Include Context Page (Modal) and Cards in Wallpaper display */
body.wallpaper-active main,
body.wallpaper-active #microWindow {
    background: rgba(255, 255, 255, var(--wp-content-bg-opacity, 0.8)) !important;
    backdrop-filter: blur(var(--wp-content-blur, 12px));
    -webkit-backdrop-filter: blur(var(--wp-content-blur, 12px));
}

body.wallpaper-active .context-card {
    background: transparent !important; /* Prevent double-stacking background with main */
    box-shadow: none !important;
}

body.wallpaper-active.dark-mode main,
body.wallpaper-active.dark-mode #microWindow {
    background: rgba(30, 30, 30, var(--wp-content-bg-opacity, 0.8)) !important;
}


body.wallpaper-active.dark-mode .context-card {
    background: transparent !important;
    box-shadow: none !important;
}



body.wallpaper-active .micro-header {
    background: color-mix(in srgb, var(--card-bg) 85%, #ffffff8f) !important;
}


body.wallpaper-active #microDimmer {
    background: rgba(0, 0, 0, 0.3) !important;
}

