/*
Theme Name: GeneratePress Child - VIBESXS
Theme URI: https://vibesxs.com
Description: Professional music streaming platform with sticky header and custom footer
Author: VIBESXS
Template: generatepress
Version: 2.1.1
License: GNU General Public License v2 or later
Text Domain: vibesxs-child
*/

/* =========================================================
   BRAND VARIABLES
   ========================================================= */
:root {
    --vxs-orange: #ff6b35;
    --vxs-orange-soft: #ff8554;
    --vxs-cyan: #00d9ff;
    --vxs-dark: #12131e;
    --vxs-header: #0d1227;
    --vxs-footer-bg: #0a0b14;
    
    /* Z-index layers - coordinated with plugin */
    --z-content: 1;
    --z-player: 9999;          /* Plugin's player (DO NOT CHANGE) */
    --z-header: 9998;          /* Site navigation (below player) */
    --z-chatbot-window: 10001; /* Chat window */
    --z-chatbot-button: 10002; /* Chat toggle button */
    --z-modal: 10003;          /* Modals/overlays */
    
    /* Spacing - should match plugin settings */
    --header-height: 70px;
    --player-height-collapsed: 80px;  /* Mini player height */
    --player-height-expanded: 500px;  /* Full player height */
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s ease;
}

/* =========================================================
   GLOBAL RESET & BASE STYLES
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    transition: padding-bottom var(--transition-normal);
}

/* Add padding when player plugin is active */
body.has-vibesxs-player {
    padding-bottom: var(--player-height-collapsed);
}

/* Expanded player state */
body.has-vibesxs-player .vibesxs-player[data-state="open"] ~ * {
    /* Content adjusts when player expands */
}

html, body {
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* =========================================================
   STICKY HEADER - JAVASCRIPT POWERED
   ========================================================= */

/* Default header state */
.site-header {
    position: relative;
    z-index: var(--z-header);
    background: var(--vxs-header);
    width: 100%;
    transition: transform var(--transition-normal), 
                box-shadow var(--transition-normal);
}

/* When header is stuck (added by JavaScript) */
.site-header.is-stuck {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: var(--z-header) !important;
    background: rgba(13, 18, 39, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hide header when scrolling down */
.site-header.is-stuck.scrolling-down {
    transform: translateY(-100%);
}

/* Show header when scrolling up */
.site-header.is-stuck.scrolling-up {
    transform: translateY(0);
}

/* Ensure header content is visible */
.inside-header {
    position: relative;
    z-index: 1;
}

/* Admin bar adjustment */
.admin-bar .site-header.is-stuck {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header.is-stuck {
        top: 46px !important;
    }
}

/* =========================================================
   NAVIGATION
   ========================================================= */

/* Navigation links */
.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: var(--vxs-cyan);
}

/* Dropdown menus */
.main-nav ul ul,
.main-navigation .main-nav ul ul {
    background: rgba(18, 19, 30, 0.96);
    backdrop-filter: blur(14px);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.main-nav ul ul a:hover {
    background: rgba(255, 140, 0, 0.25);
    color: var(--vxs-orange);
}

/* Avatar in menu */
.menu-item-avatar img,
.menu-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--vxs-orange);
    object-fit: cover;
    vertical-align: middle;
}

/* Mobile menu button */
.menu-toggle {
    color: #fff;
}

/* =========================================================
   LINKS & BUTTONS
   ========================================================= */

a {
    color: var(--vxs-orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--vxs-orange-soft);
}

a:focus {
    outline: 2px solid var(--vxs-orange);
    outline-offset: 2px;
}

/* Buttons */
.btn,
.wp-block-button__link,
input[type="submit"],
input[type="button"],
button[type="submit"] {
    background: var(--vxs-orange) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 60px !important;
    padding: 12px 28px !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 0 22px rgba(255, 107, 53, 0.35);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none !important;
}

.btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button[type="submit"]:hover {
    background: var(--vxs-orange-soft) !important;
    box-shadow: 0 0 28px rgba(255, 133, 84, 0.45);
    transform: translateY(-2px);
}

/* Disabled state */
.btn:disabled,
input[type="submit"]:disabled,
button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* =========================================================
   FOOTER - PROFESSIONAL (NO PAYMENT ICONS, NO GENERATEPRESS)
   ========================================================= */

.site-footer {
    background: var(--vxs-footer-bg);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 80px;
}

/* HIDE DEFAULT GENERATEPRESS FOOTER */
.site-info,
.copyright-bar {
    display: none !important;
}

/* Hide GeneratePress link */
a[href*="generatepress.com"],
a[href*="generatepress"] {
    display: none !important;
}

/* Custom footer container */
.vibesxs-footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Footer main section */
.vibesxs-footer-main {
    padding: 60px 40px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About column */
.footer-logo-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--vxs-orange), var(--vxs-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    display: inline-block;
}

.footer-tagline {
    color: var(--vxs-cyan);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

/* Social links */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--vxs-orange);
    border-color: var(--vxs-orange);
    color: #000;
    transform: translateY(-3px);
}

/* Footer menus */
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-menu a:hover {
    color: var(--vxs-cyan);
    padding-left: 5px;
}

/* Newsletter column */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
}

.newsletter-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 10px;
    transition: all var(--transition-fast);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--vxs-cyan);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-submit {
    width: 100%;
    padding: 12px !important;
    background: var(--vxs-orange) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all var(--transition-fast);
}

.newsletter-submit:hover {
    background: var(--vxs-orange-soft) !important;
    transform: translateY(-2px);
}

/* Footer bottom - NO PAYMENT ICONS */
.vibesxs-footer-bottom {
    padding: 25px 40px;
    background: rgba(0, 0, 0, 0.3);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--vxs-cyan);
}

/* HIDE PAYMENT ICONS */
.footer-payment-methods,
.payment-methods,
[class*="payment-icon"] {
    display: none !important;
}

/* =========================================================
   CHATBOT POSITIONING - COORDINATES WITH PLAYER PLUGIN
   ========================================================= */

/* Chatbot toggle button - default position */
.vxs-btn-toggle,
#vxs-toggle,
#vxs-chatbot-toggle,
[id*="chatbot-toggle"],
[class*="chatbot-toggle"] {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: var(--z-chatbot-button) !important;
    transition: bottom var(--transition-normal) !important;
}

/* Move chatbot up when player exists */
body.has-vibesxs-player .vxs-btn-toggle,
body.has-vibesxs-player #vxs-toggle,
body.has-vibesxs-player #vxs-chatbot-toggle,
body.has-vibesxs-player [id*="chatbot-toggle"],
body.has-vibesxs-player [class*="chatbot-toggle"] {
    bottom: calc(var(--player-height-collapsed) + 20px) !important;
}

/* Chat window - default position */
.vxs-window,
#vxs-window,
.vxs-chat-window,
[id*="chat-window"],
[class*="chat-window"] {
    position: fixed !important;
    bottom: 100px !important;
    right: 20px !important;
    z-index: var(--z-chatbot-window) !important;
    max-height: calc(100vh - 160px) !important;
    transition: bottom var(--transition-normal), 
                max-height var(--transition-normal) !important;
}

/* Adjust chat window when player exists */
body.has-vibesxs-player .vxs-window,
body.has-vibesxs-player #vxs-window,
body.has-vibesxs-player .vxs-chat-window,
body.has-vibesxs-player [id*="chat-window"],
body.has-vibesxs-player [class*="chat-window"] {
    bottom: calc(var(--player-height-collapsed) + 90px) !important;
    max-height: calc(100vh - var(--player-height-collapsed) - 160px) !important;
}

/* Chatbot buttons shouldn't have default button styles */
body:not(.wp-admin) .vxs-chatbot-widget button,
body:not(.wp-admin) #vxs-toggle,
body:not(.wp-admin) .vxs-btn-toggle,
body:not(.wp-admin) [class*="chatbot"] button {
    background: none !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

/* =========================================================
   PMPRO / MEMBERSHIP CHECKOUT STYLING
   ========================================================= */

.pmpro_checkout,
.pmpro_checkout-fields {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    max-width: 700px;
    margin: 40px auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pmpro_btn,
.pmpro_btn-submit {
    background: var(--vxs-orange) !important;
    color: #000 !important;
    border-radius: 50px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all var(--transition-fast);
}

.pmpro_btn:hover {
    background: var(--vxs-orange-soft) !important;
    transform: translateY(-2px);
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */

.text-center {
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
    cursor: wait;
}

/* Visually hidden but accessible to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --header-height: 60px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
    
    .footer-about,
    .footer-newsletter {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --player-height-collapsed: 70px; /* Smaller on mobile */
    }
    
    body {
        font-size: 16px;
    }
    
    /* Sticky header on mobile */
    .site-header.is-stuck {
        position: fixed !important;
    }
    
    /* Buttons */
    .btn,
    .wp-block-button__link,
    input[type="submit"] {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
    }
    
    /* Footer */
    .vibesxs-footer-main {
        padding: 40px 20px 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-about,
    .footer-newsletter {
        grid-column: 1;
    }
    
    .footer-logo-text {
        font-size: 1.75rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    /* Chatbot */
    .vxs-btn-toggle,
    #vxs-toggle {
        width: 60px !important;
        height: 60px !important;
        right: 15px !important;
    }
    
    .vxs-window,
    #vxs-window {
        right: 10px !important;
        left: 10px !important;
        width: calc(100% - 20px) !important;
        max-height: calc(100vh - 200px) !important;
    }
    
    body.has-vibesxs-player .vxs-window,
    body.has-vibesxs-player #vxs-window {
        max-height: calc(100vh - var(--player-height-collapsed) - 180px) !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .footer-social {
        justify-content: center;
    }
    
    .footer-logo-text {
        font-size: 1.5rem;
    }
    
    .newsletter-submit {
        font-size: 0.85rem !important;
    }
}

/* =========================================================
   PRINT STYLES
   ========================================================= */

@media print {
    .site-header,
    .site-footer,
    .vxs-btn-toggle,
    .vxs-window,
    .vibesxs-player,
    #vibesxs-player {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}
