/* dzarlax.dev Design System — Color Tokens */

:root {
    /* Brand core */
    --brand-dark: #2B2B2B;
    --brand-light: #F5F0E8;

    /* Backgrounds */
    --bg: #FCFAF7;
    --surface: #FFFFFF;
    --surface-2: #E8E6E3;

    /* Text */
    --text: #1A1A1E;
    --text-secondary: rgba(26, 26, 30, 0.7);
    --text-tertiary: rgba(26, 26, 30, 0.5);

    /* Accent */
    --accent: #18181B;
    --accent-hover: #25282D;

    /* Borders */
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.12);
    --border-light: rgba(26, 26, 30, 0.04);

    /* Status */
    --good: #16a34a;
    --good-bg: #f0fdf4;
    --warn: #d97706;
    --warn-bg: #fffbeb;
    --danger: #dc2626;
    --danger-bg: #fef2f2;

    /* Category (for dashboards) */
    --heart: #e11d48;
    --activity: #059669;
    --sleep: #7c3aed;
    --cardio: #0284c7;
}
/* dzarlax.dev Design System — Typography Tokens */

:root {
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;

    --text-xs:   0.75rem;  /* 12px */
    --text-sm:   0.875rem; /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg:   1.125rem; /* 18px */
    --text-xl:   1.25rem;  /* 20px */
    --text-2xl:  1.5rem;   /* 24px */
    --text-3xl:  1.875rem; /* 30px */
    --text-4xl:  2.25rem;  /* 36px */
    --text-5xl:  3rem;     /* 48px */

    --leading-tight: 1.3;
    --leading-normal: 1.5;
    --leading-relaxed: 1.6;

    --tracking-tight: -0.3px;
    --tracking-normal: 0;
    --tracking-wide: 0.5px;
    --tracking-caps: 1px;
}
/* dzarlax.dev Design System — Spacing, Radius & Shadow Tokens */

:root {
    /* Border radius */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08);

    /* Transition */
    --transition: 0.18s ease;

    /* Navbar */
    --navbar-height: 56px;

    /* Container widths */
    --container-sm: 720px;
    --container-md: 960px;
    --container-lg: 1200px;
    --container-xl: 1400px;
}
/* dzarlax.dev Design System — Dark Theme */

/* Explicit dark mode (via HTML attribute) */
[dark-mode] {
    /* Backgrounds */
    --bg: #1A1D21;
    --surface: #22252A;
    --surface-2: #2A2D32;

    /* Text */
    --text: #F5F5F5;
    --text-secondary: rgba(245, 245, 245, 0.7);
    --text-tertiary: rgba(245, 245, 245, 0.5);

    /* Accent (inverted) */
    --accent: #F5F5F5;
    --accent-hover: #E0E0E0;

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-light: rgba(255, 255, 255, 0.05);

    /* Shadows (deeper for dark) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);

    /* Status backgrounds (muted for dark) */
    --good-bg: rgba(22, 163, 74, 0.15);
    --warn-bg: rgba(217, 119, 6, 0.15);
    --danger-bg: rgba(220, 38, 38, 0.15);
}

/* System preference fallback (respects OS dark mode when no explicit choice) */
@media (prefers-color-scheme: dark) {
    :root:not([light-mode]) {
        --bg: #1A1D21;
        --surface: #22252A;
        --surface-2: #2A2D32;

        --text: #F5F5F5;
        --text-secondary: rgba(245, 245, 245, 0.7);
        --text-tertiary: rgba(245, 245, 245, 0.5);

        --accent: #F5F5F5;
        --accent-hover: #E0E0E0;

        --border: rgba(255, 255, 255, 0.08);
        --border-hover: rgba(255, 255, 255, 0.12);
        --border-light: rgba(255, 255, 255, 0.05);

        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);

        --good-bg: rgba(22, 163, 74, 0.15);
        --warn-bg: rgba(217, 119, 6, 0.15);
        --danger-bg: rgba(220, 38, 38, 0.15);
    }
}
/* dzarlax.dev Design System — Reset */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: var(--leading-relaxed);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
}

table {
    border-collapse: collapse;
}
/* dzarlax.dev Design System — Base Typography */

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

p {
    line-height: var(--leading-relaxed);
}

small {
    font-size: var(--text-xs);
}

code, pre {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    overflow-x: auto;
}

.label {
    display: block;
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-tertiary {
    color: var(--text-tertiary);
}

.text-serif {
    font-family: var(--font-serif);
}
/* dzarlax.dev Design System — Layout */

.container {
    max-width: var(--container-sm);
    margin: 0 auto;
    padding: 0 24px;
}

.container--md {
    max-width: var(--container-md);
}

.container--lg {
    max-width: var(--container-lg);
}

.container--xl {
    max-width: var(--container-xl);
}

/* Section spacing */

.section {
    padding: 32px 0;
}

.section + .section {
    border-top: 1px solid var(--border);
}

/* Responsive */

@media (max-width: 768px) {
    .container,
    .container--md,
    .container--lg,
    .container--xl {
        padding: 0 16px;
        max-width: 100%;
    }
}
/* dzarlax.dev Design System — Utilities */

/* ── Scroll progress bar ── */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent);
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ── Scroll-to-top button ── */

.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all var(--transition);
    z-index: 99;
    pointer-events: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-lg);
}

/* ── Skeleton loader ── */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--surface-2) 0%,
        var(--border) 50%,
        var(--surface-2) 100%
    );
    background-size: 200% 100%;
    animation: ds-skeleton 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

.skeleton--text {
    height: 16px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton--text:last-child { width: 75%; }

.skeleton--title {
    height: 24px;
    width: 65%;
    margin-bottom: 16px;
}

.skeleton--button {
    height: 38px;
    width: 120px;
}

.skeleton--avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Reveal on scroll ── */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ── Stagger children ── */
/* Usage: add class="stagger" to container; CSS var --i sets per-child delay  */

.stagger > * {
    opacity: 0;
    animation: ds-stagger-in 0.5s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.08s);
}

/* ── Language switcher button group ── */

.lang-switcher {
    display: flex;
    gap: 4px;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1;
    transition: all var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--surface-2);
    color: var(--text);
}

/* ── Popover ── */

.popover {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-lg);
    max-width: 280px;
    z-index: 200;
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    animation: ds-fade-in 0.18s ease;
}

/* ── Skip navigation (accessibility) ── */

.skip-nav {
    position: fixed;
    top: -100px;
    left: 6px;
    background: var(--accent);
    color: var(--bg);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.2s ease;
}

.skip-nav:focus {
    top: 6px;
}

/* ── Keyframes ── */

@keyframes ds-skeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes ds-stagger-in {
    to { opacity: 1; }
}

@keyframes ds-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}

@keyframes ds-fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .stagger > * {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition-duration: 0.01ms !important;
    }

    .skeleton {
        animation: none !important;
    }
}
/* dzarlax.dev Design System — Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: var(--font);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Variants */

.btn--primary {
    background: var(--accent);
    color: var(--bg);
}

.btn--primary:hover {
    background: var(--accent-hover);
}

.btn--secondary {
    background: var(--surface-2);
    color: var(--text);
}

.btn--secondary:hover {
    background: var(--border);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn--ghost:hover {
    background: var(--surface-2);
    color: var(--text);
}

.btn--danger {
    background: var(--danger);
    color: #fff;
}

.btn--danger:hover {
    opacity: 0.9;
}

.btn--success {
    background: var(--good);
    color: #fff;
}

.btn--success:hover {
    opacity: 0.9;
}

.btn--warning {
    background: var(--warn);
    color: #fff;
}

.btn--warning:hover {
    opacity: 0.9;
}

/* Loading state */

.btn--loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: ds-btn-spin 0.7s linear infinite;
    color: #fff;
}

@keyframes ds-btn-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Sizes */

.btn--small {
    padding: 6px 12px;
    font-size: var(--text-xs);
}

.btn--large {
    padding: 14px 28px;
    font-size: var(--text-lg);
}

.btn--block {
    width: 100%;
}

/* Icon-only button */

.btn--icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .btn--small {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}
/* dzarlax.dev Design System — Cards */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card--hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card__title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: 6px;
}

.card__description {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    margin-bottom: 12px;
}

.card__meta {
    display: flex;
    gap: 16px;
    color: var(--text-tertiary);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
}

.card__footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Grid */

.card-grid {
    display: grid;
    gap: 16px;
}

.card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid--auto {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (max-width: 768px) {
    .card-grid--2,
    .card-grid--3 {
        grid-template-columns: 1fr;
    }
}

/* ── Project card (with tags + link) ── */

.card--project {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.card__tag {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
}

[dark-mode] .card__tag {
    background: rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: dark) {
    :root:not([light-mode]) .card__tag {
        background: rgba(255, 255, 255, 0.1);
    }
}

.card__link {
    margin-top: auto;
    padding-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-weight: 500;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--transition);
}

.card__link:hover {
    color: var(--text-secondary);
    gap: 10px;
}

/* ── Icon card (education / achievement) ── */

.card--icon {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.card__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--accent);
    color: var(--bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform var(--transition);
}

.card--icon:hover .card__icon {
    transform: scale(1.05);
}

.card__icon--soft {
    background: var(--surface-2);
    color: var(--text);
    font-size: 1.5rem;
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
}

.card__body {
    flex: 1;
    min-width: 0;
}
/* dzarlax.dev Design System — Forms */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: var(--text-sm);
    margin-bottom: 6px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--text-base);
    transition: border-color var(--transition);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: none;
    border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Standalone field classes (without .form-group wrapper) */

.form-label {
    display: block;
    font-weight: 500;
    font-size: var(--text-sm);
    margin-bottom: 6px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--text-base);
    transition: border-color var(--transition);
}

.form-input:focus-visible,
.form-select:focus-visible {
    outline: none;
    border-color: var(--accent);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: 4px;
}

.form-error {
    font-size: var(--text-xs);
    color: var(--danger);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
/* dzarlax.dev Design System — Combobox */

.ds-combobox {
    position: relative;
    display: inline-block;
    width: 100%;
}

.ds-combobox__input {
    width: 100%;
    padding: 10px 56px 10px 14px; /* room for clear + caret */
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--text-base);
    cursor: pointer;
    transition: border-color var(--transition), border-radius var(--transition);
}

.ds-combobox__input::placeholder {
    color: var(--text-tertiary);
}

.ds-combobox__input:focus-visible {
    outline: none;
    border-color: var(--accent);
}

.ds-combobox--open .ds-combobox__input {
    border-color: var(--accent);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* ── Clear button ── */

.ds-combobox__clear {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 16px;
    line-height: 1;
    padding: 2px 4px;
    display: none;
    transition: color var(--transition);
}

.ds-combobox__clear:hover {
    color: var(--text);
}

.ds-combobox--has-value .ds-combobox__clear {
    display: block;
}

/* ── Caret arrow ── */

.ds-combobox::after {
    content: '';
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-tertiary);
    pointer-events: none;
    transition: transform var(--transition);
}

.ds-combobox--open::after {
    transform: translateY(-50%) rotate(180deg);
}

/* ── Menu ── */

.ds-combobox__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 500;
    background: var(--surface);
    border: 1px solid var(--accent);
    border-top: none;
    border-bottom-left-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
    max-height: 240px;
    overflow-y: auto;
    list-style: none;
    padding: 4px 0;
    margin: 0;
    box-shadow: var(--shadow);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.ds-combobox--open .ds-combobox__menu {
    display: block;
}

/* ── Items ── */

.ds-combobox__item {
    list-style: none;
    padding: 9px 14px;
    font-size: var(--text-base);
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds-combobox__item:hover,
.ds-combobox__item--active {
    background: var(--surface-2);
}

.ds-combobox__item--selected {
    color: var(--accent);
    font-weight: 600;
}

.ds-combobox__item--selected::after {
    content: ' ✓';
    font-size: 0.8em;
}

.ds-combobox__empty {
    padding: 9px 14px;
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    cursor: default;
    font-style: italic;
}
/* dzarlax.dev Design System — Tables */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
}

th {
    text-align: left;
    padding: 10px 12px;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-base);
}

tr:hover {
    background: var(--surface-2);
}

@media (max-width: 768px) {
    table {
        font-size: var(--text-xs);
    }

    th, td {
        padding: 8px 6px;
    }
}
/* dzarlax.dev Design System — Badges */

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.badge--success {
    background: var(--good-bg);
    color: var(--good);
}

.badge--warning {
    background: var(--warn-bg);
    color: var(--warn);
}

.badge--danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge--neutral {
    background: var(--surface-2);
    color: var(--text-secondary);
}
/* dzarlax.dev Design System — Navigation */

/* Top navbar */

.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--text);
}

.navbar__brand img,
.navbar__brand svg {
    height: 28px;
    width: auto;
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Tab navigation (admin panels) */

.tab-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.tab-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: var(--text-base);
    font-weight: 500;
    transition: all var(--transition);
}

.tab-nav a:hover,
.tab-nav a.active {
    background: var(--surface-2);
    color: var(--text);
}

@media (max-width: 768px) {
    .tab-nav {
        flex-wrap: wrap;
    }

    .tab-nav a {
        font-size: var(--text-xs);
        padding: 6px 10px;
    }
}

/* ── Hamburger button ── */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    z-index: 101;
}

.hamburger:hover {
    background: var(--surface-2);
}

.hamburger__line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active .hamburger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile nav drawer ── */

.nav-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    padding-top: var(--navbar-height);
    transition: left 0.3s ease;
    visibility: hidden;
}

.nav-drawer.active {
    left: 0;
    visibility: visible;
}

.nav-drawer__list {
    list-style: none;
    padding: 16px;
}

.nav-drawer__list a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: var(--text-base);
    font-weight: 500;
    transition: all var(--transition);
}

.nav-drawer__list a:hover,
.nav-drawer__list a.active {
    background: var(--surface-2);
    color: var(--text);
}

/* ── Menu overlay (backdrop) ── */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar__nav {
        display: none;
    }
}
/* dzarlax.dev Design System — Toggle Switch */

.toggle {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    outline: none;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 22px;
    background: var(--surface-2);
    border-radius: 11px;
    position: relative;
    cursor: pointer;
    transition: background var(--transition);
    flex-shrink: 0;
}

.toggle::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle:checked {
    background: var(--good);
}

.toggle:checked::after {
    transform: translateX(18px);
}

/* Theme toggle (circle button) */

.theme-toggle {
    background: var(--surface-2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text);
    transition: background var(--transition);
}

.theme-toggle:hover {
    background: var(--border);
}
/* dzarlax.dev Design System — Footer */

/* Page footer */

.footer {
    padding: 32px 0;
    margin-top: 60px;
    border-top: 1px solid var(--border);
    color: var(--text-tertiary);
    font-size: var(--text-xs);
    text-align: center;
}

/* Brand footer link */

.dzarlax-footer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.dzarlax-footer:hover {
    opacity: 1;
}

.dzarlax-footer-icon {
    width: 24px;
    height: 24px;
    background: var(--brand-dark);
    color: var(--brand-light);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    font-family: var(--font-serif);
}

[dark-mode] .dzarlax-footer-icon {
    background: var(--brand-light);
    color: var(--brand-dark);
}

@media (prefers-color-scheme: dark) {
    :root:not([light-mode]) .dzarlax-footer-icon {
        background: var(--brand-light);
        color: var(--brand-dark);
    }
}
/* dzarlax.dev Design System — Spinner / Loading */

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: dz-spin 0.6s linear infinite;
}

.spinner--large {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

@keyframes dz-spin {
    to { transform: rotate(360deg); }
}

/* HTMX integration */

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}
/* dzarlax.dev Design System — Hero */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 160px 24px 120px;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

/* Profile avatar with badge */

.hero__profile {
    position: relative;
    margin-bottom: 40px;
    z-index: 2;
}

.hero__avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--surface);
    box-shadow: var(--shadow-lg);
}

.hero__badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow);
    animation: hero-badge-float 3s ease-in-out infinite;
}

/* Text content */

.hero__title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    letter-spacing: var(--tracking-tight);
    color: var(--text);
    margin-bottom: 16px;
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero__description {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
}

/* Action buttons row */

.hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Typing cursor effect */

.hero__typing {
    border-right: 2px solid var(--text);
    animation: hero-cursor 0.8s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes hero-badge-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

@keyframes hero-cursor {
    50% { border-right-color: transparent; }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 16px 80px;
        min-height: auto;
    }

    .hero__avatar {
        width: 120px;
        height: 120px;
    }

    .hero__typing {
        white-space: normal;
        border-right: none;
        animation: none;
    }
}
/* dzarlax.dev Design System — Timeline */

/* Center-column vertical timeline (for experience, history) */

.timeline {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    position: relative;
    max-width: 1000px;
}

/* Vertical center line */

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--border);
    transform: translateX(-50%);
}

/* Item — alternates left / right */

.timeline__item {
    position: relative;
    width: 50%;
    padding: 0 40px 48px;
}

.timeline__item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline__item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Dot on the center line */

.timeline__item::before {
    content: '';
    position: absolute;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 50%;
    z-index: 1;
    transition: all var(--transition);
    box-shadow: 0 0 0 4px var(--bg);
}

.timeline__item:nth-child(odd)::before {
    right: -6px;
}

.timeline__item:nth-child(even)::before {
    left: -6px;
}

.timeline__item:hover::before {
    background: var(--accent);
    transform: scale(1.2);
}

/* Content elements */

.timeline__date {
    display: inline-block;
    padding: 2px 12px;
    background: var(--bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline__item:nth-child(odd) .timeline__date {
    float: right;
    clear: right;
    margin-bottom: 8px;
}

.timeline__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    clear: both;
}

.timeline__company {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: var(--text-base);
}

.timeline__description {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
}

/* Simple list variant (no center line) */

.timeline--list {
    max-width: 720px;
}

.timeline--list::before {
    display: none;
}

.timeline--list .timeline__item,
.timeline--list .timeline__item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 28px;
    padding-right: 0;
    border-left: 2px solid var(--border);
}

.timeline--list .timeline__item::before,
.timeline--list .timeline__item:nth-child(odd)::before,
.timeline--list .timeline__item:nth-child(even)::before {
    left: -7px;
    right: auto;
}

.timeline--list .timeline__item:nth-child(odd) .timeline__date {
    float: none;
}

/* Responsive — collapse to left-aligned list */

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline__item,
    .timeline__item:nth-child(even) {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 52px;
        padding-right: 0;
    }

    .timeline__item::before,
    .timeline__item:nth-child(odd)::before,
    .timeline__item:nth-child(even)::before {
        left: 14px;
        right: auto;
    }

    .timeline__item:nth-child(odd) .timeline__date {
        float: none;
        margin-bottom: 12px;
    }
}
/* dzarlax.dev Design System — Empty State / Confirmation */

/*
  Usage:
  <div class="empty-state">
    <div class="empty-state__icon empty-state__icon--success">✓</div>
    <h2 class="empty-state__title">All done!</h2>
    <p class="empty-state__text">Your booking has been confirmed.</p>
    <a href="/" class="btn btn--primary">Back home</a>
  </div>

  Modifiers:
    .empty-state__icon--success   green tint
    .empty-state__icon--error     red tint
    .empty-state__icon--warning   amber tint
    .empty-state__icon--info      neutral tint
*/

.empty-state {
    text-align: center;
    padding: 64px 24px;
}

.empty-state__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    background: var(--surface-2);
    color: var(--text-secondary);
}

.empty-state__icon--success {
    background: rgba(22, 163, 74, 0.1);
    color: var(--good);
}

.empty-state__icon--error {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.empty-state__icon--warning {
    background: rgba(217, 119, 6, 0.1);
    color: var(--warn);
}

.empty-state__icon--info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.empty-state__title {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    margin-bottom: 8px;
}

.empty-state__text {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    max-width: 400px;
    margin: 0 auto 24px;
}

/* Compact variant */
.empty-state--sm {
    padding: 32px 16px;
}

.empty-state--sm .empty-state__icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.empty-state--sm .empty-state__title {
    font-size: var(--text-xl);
}
/* dzarlax.dev Design System — Alert / Callout */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    line-height: 1.5;
    border: 1px solid transparent;
}

.alert__icon {
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1.5;
}

.alert__text {
    flex: 1;
}

.alert__title {
    font-weight: 700;
    margin-bottom: 2px;
}

/* Variants */

.alert--success {
    background: var(--good-bg);
    color: #166534;
    border-color: var(--good);
}

.alert--warning {
    background: var(--warn-bg);
    color: #92400e;
    border-color: #fcd34d;
}

.alert--danger {
    background: var(--danger-bg);
    color: #991b1b;
    border-color: #fca5a5;
}

.alert--info {
    background: #eff6ff;
    color: #1e40af;
    border-color: #93c5fd;
}

[dark-mode] .alert--success { color: var(--good); }
[dark-mode] .alert--warning { color: var(--warn); }
[dark-mode] .alert--danger  { color: var(--danger); }
[dark-mode] .alert--info    { color: #60a5fa; }
/* dzarlax.dev Design System — Stat Chip */

/* A compact label + big-number display for inline stats/metrics */

.stat-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

.stat-chip__label {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
}

.stat-chip__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stat-chip__note {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* Row helper for grouping chips */

.stat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
/* dzarlax.dev Design System — KPI Bar */

/* Horizontal row of key metrics separated by vertical dividers.
   Common in dashboards and admin overview pages. */

.kpi-bar {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.kpi-item {
    flex: 1;
    min-width: 150px;
    padding: 0 24px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kpi-item:first-child { padding-left: 0; }
.kpi-item:last-child  { border-right: none; padding-right: 0; }

.kpi-item__label {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    display: flex;
    align-items: center;
    gap: 6px;
}

.kpi-item__value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.kpi-item__note {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

/* Trend indicator dot */

.kpi-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.kpi-indicator--up     { background: var(--good); }
.kpi-indicator--down   { background: var(--danger); }
.kpi-indicator--stable { background: var(--text-tertiary); }

/* Responsive */

@media (max-width: 600px) {
    .kpi-bar { flex-direction: column; gap: 16px; padding: 16px 0; }
    .kpi-item {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 0 0 16px;
    }
    .kpi-item:first-child { padding-left: 0; }
    .kpi-item:last-child  { border-bottom: none; padding-bottom: 0; }
}
