/* =========================================================
    Yuntix Core Styles
    Purpose: System baseline for all pages

    Yuntix colors
    teal   = #3fa79c
    orange = #eb9668
========================================================= */

/* ===== Root Variables ===== */

:root {
    /* ===== Brand ===== */
    --color-primary: #3fa79c;
    --color-primary-hover: #33877e;

    --color-secondary: #eb9668;
    --color-secondary-hover: #d98558;

    /* ===== State / Semantic ===== */
    --color-success: #22c55e;
    --color-danger: #ef4444;
    --color-error: #d64545;

    /* Progress / UI Flow (Steps etc.) */
    --color-progress: var(--color-secondary);

    /* ===== Neutral Palette ===== */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;

    /* ===== Text ===== */
    --text-color: #0b1220;
    --text-muted: var(--gray-500);
    --text-color-dark: #e5e7eb;
    --text-muted-dark: #94a3b8;

    /* ===== Background ===== */
    --bg-body: #ffffff;
    --bg-surface: var(--gray-50);
    --bg-muted: var(--gray-100);
    --bg-dark: #0f1115;
    --bg-dark-surface: #161a20;

    /* ===== Borders ===== */
    --border-color: var(--gray-300);

    /* ===== Typography ===== */
    --font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --line-height: 1.5;

    /* ===== Font Sizes ===== */
    --text-xs: 0.75rem; /* 12px */
    --text-sm: 0.875rem; /* 14px */
    --text-md: 1rem; /* 16px */
    --text-lg: 1.125rem; /* 18px */
    --text-xl: 1.25rem; /* 20px */
    --text-2xl: 1.5rem; /* 24px */
    --text-3xl: 2rem; /* 32px */

    /* ===== Spacing ===== */
    --space-xs: 0.25rem; /* 4px */
    --space-sm: 0.625rem; /* 10px */
    --space-md: 1rem; /* 16px */
    --space-lg: 1.5rem; /* 24px */
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* ===== Radius ===== */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;

    /* ===== Effects ===== */
    --focus-ring: 0 0 0 3px rgba(63, 167, 156, 0.2);

    --transition-fast: 120ms ease;
    --transition-base: 180ms ease;
}

/* ===== Font ===== */

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== Reset ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

/* ===== Base ===== */

body {
    font-family: var(--font-family);
    font-size: var(--text-md);
    background: var(--bg-body);
    color: var(--text-color);
    line-height: var(--line-height);
    -webkit-font-smoothing: antialiased;
}

/* ===== Layout ===== */

main {
    min-height: 100dvh;
}

/* ===== Typography ===== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 var(--space-sm);
    font-weight: 600;
}

p {
    margin: 0 0 var(--space-sm);
}

/* ===== Links ===== */

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Media ===== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Form Elements ===== */

button,
input,
textarea,
select {
    font-family: inherit;
}

/* ===== Utilities ===== */

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}
