/**
 * Brightness Control Styles
 * Located in the navigation sidebar menu
 *
 * @package MadePrompt
 */

/* ==========================================
   BRIGHTNESS CONTROL IN MENU
   ========================================== */

.nav-brightness-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 20px 0 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.nav-brightness-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.nav-brightness-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-brightness-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-brightness-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.nav-brightness-btn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.brightness-btn-icon {
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.nav-brightness-btn:hover .brightness-btn-icon,
.nav-brightness-btn.active .brightness-btn-icon {
    opacity: 1;
}

/* ==========================================
   BRIGHTNESS LEVELS - Background adjustments
   ========================================== */

/* Default / Medium (current design) */
body {
    --bg-brightness: 1;
    --glass-opacity: 0.6;
    --border-opacity: 0.15;
}

/* Dark Mode - Extra dark for night use */
body.brightness-dark {
    --bg-brightness: 0.7;
    --glass-opacity: 0.75;
    --border-opacity: 0.1;
}

body.brightness-dark {
    background: linear-gradient(135deg, #121214 0%, #1a1a1c 50%, #121214 100%);
}

body.brightness-dark .homepage-hero-content,
body.brightness-dark .brand-page-content,
body.brightness-dark .brands-section-box,
body.brightness-dark .xrated-lab-box,
body.brightness-dark .legal-page-content,
body.brightness-dark .xrated-lab-single-article,
body.brightness-dark .article-page-content,
body.brightness-dark .related-brands-container,
body.brightness-dark .brand-made-with-box {
    background: rgba(18, 18, 20, 0.75);
    border-color: rgba(255, 255, 255, 0.08);
}

body.brightness-dark .brand-card,
body.brightness-dark .related-brand-card,
body.brightness-dark .pg-brand-card,
body.brightness-dark .xrated-lab-article-box {
    background: rgba(18, 18, 20, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

body.brightness-dark .main-navigation {
    background: linear-gradient(180deg, rgb(18, 18, 20) 0%, rgb(12, 12, 14) 100%);
}

/* Light Mode - Slightly brighter while still dark */
body.brightness-light {
    --bg-brightness: 1.3;
    --glass-opacity: 0.5;
    --border-opacity: 0.2;
}

body.brightness-light {
    background: linear-gradient(135deg, #2a2a2e 0%, #3a3a3e 50%, #2a2a2e 100%);
}

body.brightness-light .homepage-hero-content,
body.brightness-light .brand-page-content,
body.brightness-light .brands-section-box,
body.brightness-light .xrated-lab-box,
body.brightness-light .legal-page-content,
body.brightness-light .xrated-lab-single-article,
body.brightness-light .article-page-content,
body.brightness-light .related-brands-container,
body.brightness-light .brand-made-with-box {
    background: rgba(50, 50, 54, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

body.brightness-light .brand-card,
body.brightness-light .related-brand-card,
body.brightness-light .pg-brand-card,
body.brightness-light .xrated-lab-article-box {
    background: rgba(50, 50, 54, 0.55);
    border-color: rgba(255, 255, 255, 0.18);
}

body.brightness-light .main-navigation {
    background: linear-gradient(180deg, rgb(42, 42, 46) 0%, rgb(32, 32, 36) 100%);
}

/* Smooth transitions for all brightness changes */
body,
body .homepage-hero-content,
body .brand-page-content,
body .brands-section-box,
body .xrated-lab-box,
body .legal-page-content,
body .xrated-lab-single-article,
body .article-page-content,
body .related-brands-container,
body .brand-made-with-box,
body .brand-card,
body .related-brand-card,
body .pg-brand-card,
body .xrated-lab-article-box,
body .main-navigation {
    transition: background 0.4s ease, border-color 0.4s ease;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .nav-brightness-control {
        margin: 15px 20px 20px 20px;
        padding: 12px;
    }
    
    .nav-brightness-btn {
        width: 50px;
        height: 50px;
    }
    
    .brightness-btn-icon {
        font-size: 1.4rem;
    }
}
