/* ============================================
   VUSUITE THEME SYSTEM
   Modern (Default) vs Minimalistic
   ============================================ */

/* Theme Variables - Modern (Default) */
:root {
    /* Colors */
    --theme-bg-primary: #000000;
    --theme-bg-surface: rgba(0, 0, 0, 0.6);
    --theme-bg-elevated: rgba(10, 10, 10, 0.98);
    --theme-text-primary: #ffffff;
    --theme-text-secondary: #888888;
    --theme-text-tertiary: #666666;
    --theme-accent: #00d4ff;
    --theme-border: rgba(255, 255, 255, 0.1);
    --theme-border-accent: rgba(0, 212, 255, 0.1);
    
    /* Grid & Effects */
    --theme-grid-color: rgba(0, 212, 255, 0.03);
    --theme-spotlight: rgba(0, 212, 255, 0.08);
    
    /* Glassmorphism */
    --theme-glass: rgba(255, 255, 255, 0.05);
    --theme-backdrop: blur(10px);
    
    /* Shadows */
    --theme-shadow-color: rgba(0, 212, 255, 0.2);
    
    /* Border Radius */
    --theme-radius-sm: 8px;
    --theme-radius-md: 24px;
    --theme-radius-lg: 50%;
    
    /* Transitions */
    --theme-transition: all 0.3s ease;
}

/* Minimalistic Theme Override */
body.theme-minimal {
    --theme-bg-primary: #ffffff;
    --theme-bg-surface: #ffffff;
    --theme-bg-elevated: #ffffff;
    --theme-text-primary: #000000;
    --theme-text-secondary: #4a4a4a;
    --theme-text-tertiary: #666666;
    --theme-accent: #000000;
    --theme-border: rgba(0, 0, 0, 0.2);
    --theme-border-accent: rgba(0, 0, 0, 0.3);
    
    /* Remove grid & spotlight effects */
    --theme-grid-color: transparent;
    --theme-spotlight: transparent;
    
    /* Remove glassmorphism */
    --theme-glass: #ffffff;
    --theme-backdrop: none;
    
    /* Remove shadows */
    --theme-shadow-color: transparent;
    
    /* Sharp corners */
    --theme-radius-sm: 0px;
    --theme-radius-md: 0px;
    --theme-radius-lg: 0px;
    
    /* Instant transitions */
    --theme-transition: none;
    
    /* Border thickness */
    --theme-border-width: 3px;
}

/* Theme Switcher Buttons */
.theme-switcher {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 8px;
    background: rgba(0, 0, 0, 0.9) !important;
    border: 2px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 16px;
    padding: 8px !important;
    z-index: 9999 !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.theme-switcher.theme-minimal-switcher {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.8) !important;
    border-width: 3px;
    border-radius: 0px;
    display: flex !important;
}

.theme-btn {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.theme-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.1);
}

.theme-btn.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    color: #00d4ff;
}

body.theme-minimal .theme-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

body.theme-minimal .theme-btn.active {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.5);
    color: #000;
}

body.theme-minimal .theme-btn {
    border-radius: 0px;
}

/* Apply theme variables globally */
body {
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary);
}

body::before {
    background-image: 
        linear-gradient(var(--theme-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--theme-grid-color) 1px, transparent 1px);
}

body::after {
    background: radial-gradient(
        circle at 20% 30%,
        var(--theme-spotlight) 0%,
        transparent 40%
    );
}

/* Minimal theme: hide spotlight animation */
body.theme-minimal::after {
    display: none;
}

/* Apply to key components */
.icon-wrapper {
    background: var(--theme-bg-surface);
    backdrop-filter: var(--theme-backdrop);
    border-color: var(--theme-border-accent);
    border-radius: var(--theme-radius-md);
    box-shadow: 0 6px 20px var(--theme-shadow-color);
}

.tab {
    border-color: var(--theme-border);
    border-radius: var(--theme-radius-sm);
}

.tab.active {
    background: var(--theme-glass);
}

.checkout-close,
.trial-upgrade-btn {
    background: var(--theme-glass);
    border-color: var(--theme-border);
    border-radius: var(--theme-radius-sm);
}

.checkout-close:hover,
.trial-upgrade-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--theme-border-accent);
}

.checkout-modal .checkout-content,
.philosophy-modal {
    background: var(--theme-bg-elevated);
    backdrop-filter: var(--theme-backdrop);
}

.footer {
    border-top-color: var(--theme-border);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .theme-switcher {
        bottom: 10px !important;
        padding: 6px !important;
        gap: 6px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: flex !important;
    }
    
    .theme-btn {
        padding: 8px 14px;
        font-size: 10px;
        min-width: 80px;
    }
}

/* Ensure theme switcher is always visible on mobile */
@media (max-width: 480px) {
    .theme-switcher {
        width: calc(100% - 32px) !important;
        max-width: 300px;
        bottom: 70px !important;
        display: flex !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .theme-btn {
        flex: 1;
        padding: 10px 12px;
        font-size: 9px;
    }
}

/* Very small screens - avoid overlap with philosophy button */
@media (max-width: 320px) {
    .theme-switcher {
        bottom: 50px !important;
        padding: 4px !important;
        gap: 4px;
        width: calc(100% - 24px) !important;
        max-width: 280px;
    }
    
    .theme-btn {
        padding: 8px 10px;
        font-size: 8px;
        min-width: 70px;
    }
}

/* Ensure minimal theme app colors use black/white */
body.theme-minimal .v-letter,
body.theme-minimal .ledger-text,
body.theme-minimal .app-name {
    color: var(--theme-text-primary);
}

/* Remove colored shadows in minimal theme */
body.theme-minimal .icon-wrapper {
    box-shadow: none !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
    border-width: 3px;
    background: #ffffff !important;
}

body.theme-minimal .app-link:hover .icon-wrapper {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
}

/* Minimal theme - change header background */
body.theme-minimal .header {
    background: #ffffff !important;
    border-bottom: 3px solid rgba(0, 0, 0, 0.3);
}

body.theme-minimal .header h1,
body.theme-minimal .header p {
    color: #000000 !important;
}

body.theme-minimal .header p {
    color: #4a4a4a !important;
}

/* Minimal theme - change tab container */
body.theme-minimal .tab-container {
    background: #ffffff !important;
    border-bottom: 3px solid rgba(0, 0, 0, 0.3);
}

body.theme-minimal .tab {
    border-width: 3px;
}

body.theme-minimal .tab.active {
    background: rgba(0, 0, 0, 0.1) !important;
}

/* Minimal theme - change footer */
body.theme-minimal .footer {
    border-top: 3px solid rgba(0, 0, 0, 0.3);
    background: #ffffff !important;
}

body.theme-minimal .footer-item {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

body.theme-minimal .footer-pricing,
body.theme-minimal .footer-item {
    color: #000000 !important;
}

body.theme-minimal .footer-pricing span {
    color: #000000 !important;
}

/* Minimal theme - remove rounded corners everywhere */
body.theme-minimal .coming-soon-badge {
    border-radius: 0px !important;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

body.theme-minimal .philosophy-btn {
    background: #000;
    border: 2px solid #fff;
    color: #fff;
    box-shadow: none;
    backdrop-filter: none;
}

body.theme-minimal .philosophy-btn:hover {
    background: #fff;
    color: #000;
    transform: none;
    box-shadow: none;
}

body.theme-minimal .philosophy-close {
    border-radius: 0px !important;
}

