/* assets/css/base.css */

/* ========= GLOBAL COLOR SYSTEM (UniDash 360 — Electric Purple Core) ========= */
:root {
    /* Brand core (MAIN) — from brand book */
    --ud-primary: #5A07DD;         /* Electric Purple (Primary) */
    --ud-primary-dark: #34067C;    /* Derived darker shade of Electric Purple (for hover/active) */
    --ud-primary-soft: #E5D8F8;    /* Derived soft tint of Electric Purple (chips / soft fills) */

    /* Brand neutrals — from brand book */
    --ud-white: #FDFDFD;           /* Pure White */
    --ud-black: #050505;           /* Deep Black */

    /* Neutrals (BACKGROUND stays as before, now aligned to brand white) */
    --ud-bg: #FDFDFD;
    --ud-surface: #FDFDFD;
    --ud-surface-alt: #FDFDFD;
    --ud-surface-soft: #F5F1FB;    /* Very light purple tint (soft sections) */

    /* Text */
    --ud-text-main: #050505;       /* Deep Black */
    --ud-text-strong: #050505;     /* Deep Black */
    --ud-text-muted: #6b7280;      /* Muted gray */
    --ud-text-soft: #667085;       /* Soft text */

    /* Accents — from brand book */
    --ud-accent-blue: #31E1F7;     /* Cyber Cyan */
    --ud-accent-green: #90F92D;    /* Acid Green */
    --ud-accent-danger: #F83092;   /* Neon Pink (high-attention / destructive) */

    /* Extra brand/support colors (brand book + helpful derived tints) */
    --ud-brand: #5A07DD;           /* Electric Purple */
    --ud-brandmain: #050505;       /* Deep Black anchor */

    --ud-amber-soft: #FDE6D7;      /* Derived soft tint of Cyber Orange */
    --ud-amber-deep: #FF6700;      /* Cyber Orange */
    --ud-warning-deep: #9B4002;    /* Derived deep orange shade */

    --ud-chip-bg: #E5D8F8;         /* Soft purple chip bg (derived) */

    /* Explicit brand book secondary helpers (use anywhere) */
    --ud-cyber-orange: #FF6700;
    --ud-glitch-yellow: #F7F830;
    --ud-neon-pink: #F83092;
    --ud-cyber-cyan: #31E1F7;
    --ud-acid-green: #90F92D;

    /* Borders */
    --ud-border-subtle: #e5e7eb;
    --ud-border-soft: #e0e0ee;
    --ud-border-input: #e0e0e0;

    /* Shadows */
    --ud-shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.06);
    --ud-shadow-strong: 0 8px 24px rgba(0, 0, 0, 0.15);
    --ud-shadow-card-hover: 0 10px 26px rgba(0, 0, 0, 0.10);

    /* Typography */
    --ud-font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ud-font-currency: "Noto Sans Bengali", "Hind Siliguri", "Kalpurush", system-ui, sans-serif;

    /* Spacing scale for responsive */
    --ud-space-xs: 4px;
    --ud-space-sm: 8px;
    --ud-space-md: 16px;
    --ud-space-lg: 24px;
    --ud-space-xl: 32px;
    --ud-space-2xl: 48px;

    /* Border radius */
    --ud-radius-sm: 6px;
    --ud-radius-md: 10px;
    --ud-radius-lg: 16px;
    --ud-radius-xl: 24px;
    --ud-radius-full: 9999px;
}

/* ========= GLOBAL TYPO / RESET ========= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--ud-font-main);
    background-color: var(--ud-bg);
    color: var(--ud-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* ========= CURRENCY / TAKA SYMBOL STYLING ========= */
.ud-currency,
.addon-currency,
.ud-id-currency,
.ud-rh-currency,
.cart-currency {
    font-family: var(--ud-font-currency);
    font-weight: 600;
    font-feature-settings: "tnum" on, "lnum" on;
}

/* ========= RESPONSIVE UTILITIES ========= */
.ud-hide-mobile {
    display: block;
}

.ud-show-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .ud-hide-mobile {
        display: none !important;
    }
    .ud-show-mobile {
        display: block !important;
    }
}

/* ========= SAFE AREA FOR MOBILE ========= */
@supports (padding: max(0px)) {
    .ud-safe-area-bottom {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
    .ud-safe-area-top {
        padding-top: max(0px, env(safe-area-inset-top));
    }
}

/* ========= TOUCH IMPROVEMENTS ========= */
@media (hover: none) and (pointer: coarse) {
    button,
    a,
    .ud-clickable {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ========= SCROLLBAR STYLING ========= */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--ud-border-subtle);
    border-radius: var(--ud-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ud-text-muted);
}

/* ========= CONTAINER ========= */
.container-fluid {
    width: 100%;
    padding-left: var(--ud-space-md);
    padding-right: var(--ud-space-md);
}

@media (min-width: 1200px) {
    .container-fluid {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: var(--ud-space-lg);
        padding-right: var(--ud-space-lg);
    }
}
