/* 
 * SUNSTACK PTY LTD - DESIGN SYSTEM TOKENS 
 * PHASE 2: Core Variables and Foundation
 * 
 * Note: These tokens must be used globally instead of default Bootstrap styles.
 */

:root {
    /* Brand Colors (Tier 1) - Solar Bling Identity (Exact Logo Match) */
    --solar-gold: #FDB602;
    --solar-gold-hover: #E5A400;
    --solar-navy: #012856;
    --solar-midnight: #001A3B;

    /* Legacy Brand Aliases (for 100% template compatibility) */
    --sunstack-green: #FDB602;
    --sunstack-orange: #FDB602;
    --sunstack-gold: #FDB602;
    --sunstack-navy: #012856;
    --sunstack-red: #ED1B24;

    /* Neutrals & Surfaces (Tier 2) - Deep Tech Navy & Midnight */
    --sunstack-dark: #012856;
    --sunstack-deep-surface: #001633;
    --sunstack-surface: #00224A;
    --sunstack-card: #012856;
    
    /* Lights & Borders */
    --sunstack-white: #FFFFFF;
    --sunstack-soft-white: #F8FAFC;
    --sunstack-muted: #64748B;
    --sunstack-border: rgba(255, 255, 255, 0.12);
    --sunstack-border-light: #E2E8F0;

    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Spacing & Layout */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    
    /* Transitions & Motion */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* Base Reset & Typography Foundation */
body {
    font-family: var(--font-primary);
    background-color: var(--sunstack-white);
    color: var(--sunstack-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6, .brand, .btn-sunstack {
    font-family: var(--font-heading);
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 
 * ==========================================
 * PHASE 2: COMPONENT INVENTORY (Section 55)
 * ==========================================
 */

/* 1. Buttons */
.btn-sunstack {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-weight: 800;
    background: var(--solar-gold);
    color: var(--solar-midnight);
    text-decoration: none;
    transition: var(--transition-fast);
}
.btn-sunstack:hover {
    background: var(--solar-gold-hover);
    color: var(--solar-midnight);
    box-shadow: 0 6px 18px rgba(255, 184, 0, 0.35);
}
.btn-sunstack.green {
    background: var(--solar-gold);
    color: var(--solar-midnight);
}
.btn-sunstack.green:hover {
    background: var(--solar-gold-hover);
    color: var(--solar-midnight);
    box-shadow: 0 6px 18px rgba(255, 184, 0, 0.35);
}
.btn-sunstack.navy {
    background: var(--solar-navy);
    color: var(--sunstack-white);
}
.btn-sunstack.navy:hover {
    background: var(--solar-midnight);
    color: var(--solar-gold);
}
.btn-sunstack.white {
    background: var(--sunstack-white);
    color: var(--sunstack-dark);
}
.btn-sunstack.block {
    width: 100%;
}

/* 2. Cards */
.card-pkg {
    background: var(--sunstack-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--sunstack-border-light);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-normal);
}
.card-pkg:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(11, 23, 40, 0.10);
}
.card-pkg.hot {
    border: 2px solid var(--solar-gold);
    box-shadow: 0 16px 36px rgba(255, 184, 0, 0.22);
}

/* 3. Forms */
.sunstack-form {
    background: var(--sunstack-white);
    color: var(--sunstack-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: 0 18px 50px rgba(11, 23, 40, 0.15);
}
.sunstack-input {
    width: 100%;
    border: 1px solid var(--sunstack-border-light);
    border-radius: var(--radius-sm);
    padding: 11px;
    background: var(--sunstack-soft-white);
    transition: var(--transition-fast);
}
.sunstack-input:focus {
    outline: none;
    border-color: var(--solar-gold);
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.20);
}

/* 4. Badges & Tags */
.sunstack-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--solar-gold);
    color: var(--solar-midnight);
    font-size: 12px;
    font-weight: 800;
    border-radius: var(--radius-pill);
    padding: 4px 10px;
}

/* 5. Signature Energy Ring (Placeholder for future interactive tools) */
.energy-ring {
    width: 40px;
    height: 40px;
    border: 3px solid var(--sunstack-border-light);
    border-top-color: var(--solar-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 
 * ==========================================
 * SOLAR BLING MODERN UI UTILITIES
 * ==========================================
 */

/* Luxury Gold Gradient Text */
.text-gradient-gold {
    background: linear-gradient(135deg, #FFB800 0%, #FFA000 50%, #FFD54F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Primary Solar Gold Pill Button */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--solar-gold);
    color: var(--solar-midnight) !important;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-pill);
    padding: 14px 34px;
    box-shadow: 0 8px 24px rgba(255, 184, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    cursor: pointer;
}
.btn-gold:hover {
    background: var(--solar-gold-hover);
    color: var(--solar-midnight) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 184, 0, 0.50);
}

/* Solar Gold Outline Button */
.btn-gold-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--solar-midnight) !important;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--solar-gold);
    border-radius: var(--radius-pill);
    padding: 10px 24px;
    transition: all 0.25s ease;
    text-decoration: none;
    cursor: pointer;
}
.btn-gold-outline:hover {
    background: var(--solar-gold);
    color: var(--solar-midnight) !important;
    box-shadow: 0 6px 18px rgba(255, 184, 0, 0.35);
    transform: translateY(-2px);
}

/* Glassmorphism Pill Button (for Dark Backgrounds) */
.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-pill);
    padding: 14px 32px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Badges */
.badge-gold {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 184, 0, 0.15);
    color: #B45309;
    border: 1px solid rgba(255, 184, 0, 0.35);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
}

.badge-navy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--solar-navy);
    color: var(--solar-gold);
    border: 1px solid rgba(255, 184, 0, 0.25);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
}

/* Modern Elevated Clean Card */
.card-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(11, 23, 40, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.card-modern:hover {
    transform: translateY(-6px);
    border-color: #cbd5e1;
    box-shadow: 0 20px 40px rgba(11, 23, 40, 0.08);
}
.card-modern.hot {
    border: 2px solid var(--solar-gold);
    box-shadow: 0 12px 32px rgba(255, 184, 0, 0.18);
}
.card-modern.hot:hover {
    box-shadow: 0 24px 48px rgba(255, 184, 0, 0.28);
}

/* Tech Navy Circle with Vibrant Solar Gold Icon */
.icon-circle-navy {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--solar-navy);
    color: var(--solar-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 18px rgba(15, 34, 61, 0.25);
    border: 2px solid rgba(255, 184, 0, 0.25);
    flex-shrink: 0;
}

