/* =======================================
   Self-hosted Inter (VietAZ)
   ======================================= */

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Global font stack */
:root {
    --vx-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* ===================================
   VietAZ Core 2025
   Reset • Variables • Body • Typography
   =================================== */

/* RESET CƠ BẢN */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
}

/* ===================================
   COLOR & TOKENS – NEUTRAL UI
   =================================== */

:root {
    --vx-bg:           #f5f6f8;
    --vx-surface:      #ffffff;
    --vx-surface-sub:  #f9fafb;

    --vx-border:       #e5e7eb;
    --vx-border-soft:  #edf0f4;

    --vx-primary:         #2563eb;
    --vx-primary-dark:    #1d4ed8;
    --vx-primary-soft:    #e0ecff;
    --vx-primary-muted:   #eff4ff;

    --vx-danger:       #ef4444;
    --vx-warning:      #f59e0b;
    --vx-success:      #16a34a;

    --vx-text:         #111827;
    --vx-text-soft:    #6b7280;
    --vx-text-mute:    #9ca3af;

    --vx-radius-lg:    20px;
    --vx-radius-md:    12px;
    --vx-radius-sm:    8px;

    --vx-shadow-soft:  0 18px 45px rgba(15, 23, 42, 0.06);
    --vx-shadow-card:  0 10px 30px rgba(15, 23, 42, 0.04);

    /* Arizona Desert Colors */
    --vz-sky-50:  #f0f9ff;
    --vz-sky-100: #e0f2fe;
    --vz-sky-200: #bae6fd;
    --vz-sky-300: #7dd3fc;
    --vz-sky-500: #0ea5e9;
    --vz-sky-600: #0284c7;
    --vz-sky-700: #0369a1;
    --vz-sky-800: #075985;

    --vz-sunset-400: #fb923c;
    --vz-sunset-500: #f97316;
    --vz-sunset-600: #ea580c;

    --vz-navy-600: #1e40af;
    --vz-navy-700: #1e3a8a;
    --vz-navy-800: #1e293b;

    --vz-sand-50:  #fafaf9;
    --vz-sand-100: #f5f5f4;
    --vz-sand-200: #e7e5e4;

    /* RGB for alpha usage */
    --vz-sky-100-rgb: 224, 242, 254;
    --vz-sky-200-rgb: 186, 230, 253;
}

/* ===================================
   BODY & TYPOGRAPHY
   =================================== */

body.vx-body {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #f9fafb 0, #eef1f6 40%, #e5ebf5 100%);
    color: var(--vx-text);
    font-family: var(--vx-font-sans);
    line-height: 1.6;
    font-size: 15px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    display: flex;
    flex-direction: column;
}

.vx-main {
    padding: 24px 0 40px;
    flex: 1;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--vx-text);
    margin: 0 0 8px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: 32px; font-weight: 800; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }

p {
    margin: 0 0 10px;
    color: var(--vx-text-soft);
}

ul, ol {
    margin: 0 0 10px 18px;
}

/* ===================================
   UTILITIES
   =================================== */

.vx-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.vx-text-muted {
    color: var(--vx-text-mute);
}

.vx-radius-lg {
    border-radius: var(--vx-radius-lg);
}

.vx-radius-md {
    border-radius: var(--vx-radius-md);
}

.vx-shadow-soft {
    box-shadow: var(--vx-shadow-soft);
}

.vx-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: var(--vx-surface-sub);
    color: var(--vx-text-soft);
}

@media (min-width: 1024px) {
    body.vx-body {
        font-size: 16px;
    }

    .vx-main {
        padding-top: 32px;
    }
}
