/*
Theme Name:   Premium Spotify Mod APK Child
Theme URI:    https://premiumspotifymodapk.com
Description:  Hello Elementor Child Theme
Author:       UMAR HASSAN
Author URI:   https://premiumspotifymodapk.com
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hello-elementor-child
*/

/* ====================================================
   Global Variables (Controlled by Toggle Button)
   ==================================================== */
:root, [data-theme="light"] {
    --brand-accent: #15893E; 
    --brand-accent-hover: #116B30;
    --bg-main: #FFFFFF;
    --bg-surface: #F6F6F6; 
    --text-primary: #121212; 
    --text-secondary: #535353;
    --border-color: #E5E5E5;
}

[data-theme="dark"] {
    --brand-accent: #1DB954; 
    --brand-accent-hover: #1ED760;
    --bg-main: #121212;
    --bg-surface: #181818; 
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --border-color: #2A2A2A;
}

/* ====================================================
   Applying the Variables & Base Typography
   ==================================================== */
body {
    background-color: var(--bg-main);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

a {
    color: var(--brand-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, outline 0.2s ease;
}

a:hover { color: var(--brand-accent-hover); }

a:focus {
    outline: 2px dashed var(--brand-accent);
    outline-offset: 4px;
}

::selection {
    background: var(--brand-accent);
    color: var(--bg-main);
}

/* ====================================================
   Header Structural Layout (Full Width Edge-to-Edge)
   ==================================================== */
.site-header {
    width: 100% !important;
    max-width: none !important; 
    margin: 0 !important;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px; 
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.header-logo-img {
    max-height: 40px;
    width: auto;
    display: block;
}

/* ====================================================
   Desktop Navigation
   ==================================================== */
.custom-b2b-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 2.5rem;
}

.custom-b2b-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.custom-b2b-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: block;
}

.custom-b2b-nav a:hover,
.custom-b2b-nav .current-menu-item > a {
    color: var(--text-primary);
}

/* ====================================================
   Header Actions & Permanent Pink Box Fix
   ==================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Dark Mode Toggle Button */
#theme-toggle,
button#theme-toggle,
.site-header button#theme-toggle {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: var(--text-primary) !important;
    cursor: pointer;
    padding: 5px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#theme-toggle:hover { 
    transform: scale(1.1); 
}

[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; color: #F5A623; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; color: #121212; }

/* Download CTA Button */
.btn-header-cta {
    background-color: var(--brand-accent);
    color: #FFFFFF !important; 
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.6rem 1.5rem;
    border-radius: 500px;
    text-transform: capitalize;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.btn-header-cta:hover {
    background-color: var(--brand-accent-hover);
    transform: scale(1.05);
}

/* ====================================================
   Mobile & Tablet Adjustments (Premium App Style)
   ==================================================== */
.menu-toggle {
    display: none;
}

@media screen and (max-width: 768px) {
    .header-inner {
        padding: 0.75rem 5%;
    }

    .header-actions {
        padding-right: 0;
        gap: 12px !important; 
        align-items: center !important; 
    }
    
    .btn-header-cta {
        padding: 8px 16px !important;
        font-size: 0.85rem;
        margin: 0 !important;
    }

    #theme-toggle {
        margin: 0 !important;
        padding: 4px !important;
    }

    /* Pixel-Perfect Hamburger / 'X' Centering */
    .menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        padding: 0 !important;
        width: 32px;
        height: 32px;
        position: relative;
        z-index: 1001;
        margin: 0 !important;
    }

    .hamburger, 
    .hamburger::before, 
    .hamburger::after {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--text-primary) !important;
        transition: transform 0.3s ease-in-out, opacity 0.2s;
        position: absolute;
        border-radius: 2px;
    }

    .hamburger { top: 50%; transform: translateY(-50%); }
    .hamburger::before { content: ''; top: -8px; left: 0; }
    .hamburger::after { content: ''; top: 8px; left: 0; }

    .menu-toggle.is-active .hamburger { background-color: transparent !important; }
    .menu-toggle.is-active .hamburger::before { top: 0; transform: rotate(45deg); }
    .menu-toggle.is-active .hamburger::after { top: 0; transform: rotate(-45deg); }

    /* Previous Classic Dropdown Menu Styling */
    .custom-b2b-nav {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-surface); 
        border-top: 1px solid var(--border-color);
        border-bottom: 3px solid var(--brand-accent); /* Brings back the green accent line */
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }

    .custom-b2b-nav.toggled {
        display: block;
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .custom-b2b-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .custom-b2b-nav li {
        width: 100%;
    }

    .custom-b2b-nav a {
        padding: 1.25rem 5% !important; 
        border-bottom: 1px solid var(--border-color) !important; /* Brings back the separating lines */
        font-size: 1.1rem !important; 
        font-weight: 600 !important;
        color: var(--text-secondary) !important;
        display: block;
        transition: color 0.3s ease;
    }

    .custom-b2b-nav li:last-child a {
        border-bottom: none !important;
    }

    .custom-b2b-nav a:hover,
    .custom-b2b-nav .current-menu-item > a {
        color: var(--text-primary) !important;
    }
}