/*
Theme Name: SlingPress
Theme URI: https://slingpress.com
Author: SlingPress
Author URI: https://slingpress.com
Description: Premium WordPress theme for license management, site management, and customer portals. Built with Elementor compatibility and seamless integration with SlingPress Pro plugin.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: slingpress
Tags: elementor, license-management, dark-mode, custom-colors, one-column, two-columns, right-sidebar, custom-header, custom-logo, custom-menu, featured-images, theme-options, translation-ready

SlingPress Theme - Premium WordPress Theme for License & Site Management
Designed to work seamlessly with SlingPress Pro plugin and Elementor page builder.
*/

/* =========================================
   CSS Variables - SlingPress Design System
   ========================================= */
:root {
    /* Primary Colors - Purple Default */
    --sp-primary: #8b5cf6;
    --sp-primary-dark: #7c3aed;
    --sp-primary-light: #a78bfa;
    --sp-primary-rgb: 139, 92, 246;
    --sp-primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --sp-primary-contrast: #ffffff;

    /* Dark Mode Backgrounds (Default) */
    --sp-bg-primary: #0d1117;
    --sp-bg-secondary: #161b22;
    --sp-bg-tertiary: #21262d;
    --sp-bg-card: #1c2128;
    --sp-bg-card-hover: #252b33;

    /* Text Colors */
    --sp-text-primary: #e6edf3;
    --sp-text-secondary: #8b949e;
    --sp-text-muted: #6e7681;

    /* Semantic Colors */
    --sp-success: #22c55e;
    --sp-success-rgb: 34, 197, 94;
    --sp-warning: #f97316;
    --sp-warning-rgb: 249, 115, 22;
    --sp-error: #ef4444;
    --sp-error-rgb: 239, 68, 68;
    --sp-info: #3b82f6;
    --sp-info-rgb: 59, 130, 246;

    /* Borders & Shadows */
    --sp-border: #30363d;
    --sp-border-hover: #484f58;
    --sp-shadow-color: rgba(0, 0, 0, 0.4);
    --sp-shadow-glow: 0 0 40px rgba(var(--sp-primary-rgb), 0.15);

    /* Typography */
    --sp-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sp-font-size-xs: 11px;
    --sp-font-size-sm: 13px;
    --sp-font-size-base: 14px;
    --sp-font-size-lg: 16px;
    --sp-font-size-xl: 20px;
    --sp-font-size-2xl: 24px;
    --sp-font-size-3xl: 32px;
    --sp-font-size-4xl: 40px;
    --sp-font-size-5xl: 56px;

    /* Spacing */
    --sp-spacing-xs: 4px;
    --sp-spacing-sm: 8px;
    --sp-spacing-md: 16px;
    --sp-spacing-lg: 24px;
    --sp-spacing-xl: 32px;
    --sp-spacing-2xl: 48px;
    --sp-spacing-3xl: 64px;
    --sp-spacing-4xl: 80px;

    /* Border Radius */
    --sp-radius-sm: 8px;
    --sp-radius-md: 12px;
    --sp-radius-lg: 16px;
    --sp-radius-xl: 24px;
    --sp-radius-full: 9999px;

    /* Transitions */
    --sp-transition-fast: 0.15s ease;
    --sp-transition-normal: 0.25s ease;
    --sp-transition-slow: 0.4s ease;

    /* Layout */
    --sp-container-max: 1280px;
    --sp-header-height: 80px;
    --sp-sidebar-width: 280px;
}

/* Light Mode Override */
[data-sp-mode="light"],
.sp-light-mode {
    --sp-bg-primary: #f8fafc;
    --sp-bg-secondary: #ffffff;
    --sp-bg-tertiary: #f1f5f9;
    --sp-bg-card: #ffffff;
    --sp-bg-card-hover: #fafbfc;
    --sp-text-primary: #0f172a;
    --sp-text-secondary: #475569;
    --sp-text-muted: #94a3b8;
    --sp-border: rgba(0, 0, 0, 0.1);
    --sp-border-hover: rgba(0, 0, 0, 0.15);
    --sp-shadow-color: rgba(0, 0, 0, 0.1);
}

/* Color Scheme Overrides */
[data-sp-scheme="blue"] {
    --sp-primary: #3b82f6;
    --sp-primary-dark: #2563eb;
    --sp-primary-light: #60a5fa;
    --sp-primary-rgb: 59, 130, 246;
    --sp-primary-gradient: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
}

[data-sp-scheme="teal"] {
    --sp-primary: #14b8a6;
    --sp-primary-dark: #0d9488;
    --sp-primary-light: #2dd4bf;
    --sp-primary-rgb: 20, 184, 166;
    --sp-primary-gradient: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
}

[data-sp-scheme="orange"] {
    --sp-primary: #f97316;
    --sp-primary-dark: #ea580c;
    --sp-primary-light: #fb923c;
    --sp-primary-rgb: 249, 115, 22;
    --sp-primary-gradient: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
}

[data-sp-scheme="pink"] {
    --sp-primary: #ec4899;
    --sp-primary-dark: #db2777;
    --sp-primary-light: #f472b6;
    --sp-primary-rgb: 236, 72, 153;
    --sp-primary-gradient: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
}

[data-sp-scheme="green"] {
    --sp-primary: #22c55e;
    --sp-primary-dark: #16a34a;
    --sp-primary-light: #4ade80;
    --sp-primary-rgb: 34, 197, 94;
    --sp-primary-gradient: linear-gradient(135deg, #22c55e 0%, #14b8a6 100%);
}

/* =========================================
   Base Styles
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--sp-font-family);
    font-size: var(--sp-font-size-base);
    line-height: 1.6;
    color: var(--sp-text-primary);
    background-color: var(--sp-bg-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--sp-transition-fast);
}

a:hover {
    color: var(--sp-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   Typography
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--sp-spacing-md);
}

h1 {
    font-size: var(--sp-font-size-5xl);
}

h2 {
    font-size: var(--sp-font-size-4xl);
}

h3 {
    font-size: var(--sp-font-size-3xl);
}

h4 {
    font-size: var(--sp-font-size-2xl);
}

h5 {
    font-size: var(--sp-font-size-xl);
}

h6 {
    font-size: var(--sp-font-size-lg);
}

p {
    margin-bottom: var(--sp-spacing-md);
}

/* =========================================
   Layout
   ========================================= */
.sp-container {
    max-width: var(--sp-container-max);
    margin: 0 auto;
    padding: 0 var(--sp-spacing-lg);
}

.sp-section {
    padding: var(--sp-spacing-4xl) 0;
}

.sp-section-alt {
    background-color: var(--sp-bg-secondary);
}

/* =========================================
   Buttons
   ========================================= */
.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-spacing-sm);
    padding: 12px 24px;
    border-radius: var(--sp-radius-sm);
    font-family: var(--sp-font-family);
    font-weight: 600;
    font-size: var(--sp-font-size-base);
    cursor: pointer;
    border: none;
    transition: var(--sp-transition-fast);
    text-decoration: none;
}

.sp-btn-primary {
    background: var(--sp-primary-gradient);
    color: var(--sp-primary-contrast);
    box-shadow: 0 4px 16px rgba(var(--sp-primary-rgb), 0.3);
}

.sp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--sp-primary-rgb), 0.4);
    color: var(--sp-primary-contrast);
}

.sp-btn-secondary {
    background: var(--sp-bg-tertiary);
    color: var(--sp-text-primary);
    border: 1px solid var(--sp-border);
}

.sp-btn-secondary:hover {
    background: var(--sp-bg-card-hover);
    border-color: var(--sp-primary);
    color: var(--sp-text-primary);
}

.sp-btn-ghost {
    background: transparent;
    color: var(--sp-text-secondary);
}

.sp-btn-ghost:hover {
    color: var(--sp-primary);
}

.sp-btn-lg {
    padding: 16px 32px;
    font-size: var(--sp-font-size-lg);
    border-radius: var(--sp-radius-md);
}

.sp-btn-sm {
    padding: 8px 16px;
    font-size: var(--sp-font-size-sm);
}

/* =========================================
   Cards
   ========================================= */
.sp-card {
    background: var(--sp-bg-card);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-lg);
    overflow: hidden;
    transition: var(--sp-transition-normal);
}

.sp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--sp-shadow-color);
}

.sp-card-header {
    padding: var(--sp-spacing-lg);
    border-bottom: 1px solid var(--sp-border);
}

.sp-card-body {
    padding: var(--sp-spacing-lg);
}

.sp-card-footer {
    padding: var(--sp-spacing-lg);
    border-top: 1px solid var(--sp-border);
}

/* =========================================
   Forms
   ========================================= */
.sp-input,
.sp-textarea,
.sp-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--sp-bg-tertiary);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-sm);
    color: var(--sp-text-primary);
    font-family: var(--sp-font-family);
    font-size: var(--sp-font-size-base);
    transition: var(--sp-transition-fast);
}

.sp-input:focus,
.sp-textarea:focus,
.sp-select:focus {
    outline: none;
    border-color: var(--sp-primary);
    box-shadow: 0 0 0 3px rgba(var(--sp-primary-rgb), 0.15);
}

.sp-input::placeholder,
.sp-textarea::placeholder {
    color: var(--sp-text-muted);
}

.sp-label {
    display: block;
    margin-bottom: var(--sp-spacing-sm);
    font-weight: 500;
    color: var(--sp-text-primary);
}

/* =========================================
   Badges
   ========================================= */
.sp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--sp-radius-full);
    font-size: var(--sp-font-size-xs);
    font-weight: 600;
}

.sp-badge-primary {
    background: rgba(var(--sp-primary-rgb), 0.15);
    color: var(--sp-primary);
}

.sp-badge-success {
    background: rgba(var(--sp-success-rgb), 0.15);
    color: var(--sp-success);
}

.sp-badge-warning {
    background: rgba(var(--sp-warning-rgb), 0.15);
    color: var(--sp-warning);
}

.sp-badge-error {
    background: rgba(var(--sp-error-rgb), 0.15);
    color: var(--sp-error);
}

/* =========================================
   Utilities
   ========================================= */
.sp-text-center {
    text-align: center;
}

.sp-text-left {
    text-align: left;
}

.sp-text-right {
    text-align: right;
}

.sp-text-primary {
    color: var(--sp-text-primary);
}

.sp-text-secondary {
    color: var(--sp-text-secondary);
}

.sp-text-muted {
    color: var(--sp-text-muted);
}

.sp-text-accent {
    color: var(--sp-primary);
}

.sp-gradient-text {
    background: var(--sp-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sp-hidden {
    display: none !important;
}

.sp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
    :root {
        --sp-font-size-5xl: 40px;
        --sp-font-size-4xl: 32px;
        --sp-font-size-3xl: 28px;
    }
}

@media (max-width: 768px) {
    :root {
        --sp-font-size-5xl: 32px;
        --sp-font-size-4xl: 28px;
        --sp-font-size-3xl: 24px;
        --sp-spacing-4xl: 60px;
        --sp-spacing-3xl: 48px;
    }

    .sp-container {
        padding: 0 var(--sp-spacing-md);
    }
}