/* ── Font Face ── */
@font-face {
  font-family: "DoranFa";
  src: url("../fonts/DoranFa/woff2/DoranFaNum-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DoranFa";
  src: url("../fonts/DoranFa/woff2/DoranFaNum-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DoranFa";
  src: url("../fonts/DoranFa/woff2/DoranFaNum-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DoranFa";
  src: url("../fonts/DoranFa/woff2/DoranFaNum-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DoranFa";
  src: url("../fonts/DoranFa/woff2/DoranFaNum-ExtraBold.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Variables ── */
:root {
  /* Background */
  --background: #f4efe6;
  --foreground: oklch(0.25 0.02 80);

  /* Card */
  --card: oklch(0.98 0.01 80);
  --card-foreground: oklch(0.25 0.02 80);

  /* Popover */
  --popover: oklch(0.98 0.01 80);
  --popover-foreground: oklch(0.25 0.02 80);

  /* Brand Primary */
  --primary: #cda4a4;
  --primary-foreground: oklch(0.25 0.02 80);
  --primary-light: oklch(0.85 0.06 15);
  --primary-dark: oklch(0.65 0.1 15);

  /* Brand Accent */
  --secondary: #c47a63;
  --secondary-foreground: oklch(0.98 0.01 80);

  /* Muted */
  --muted: oklch(0.92 0.015 80);
  --muted-foreground: oklch(0.55 0.03 80);

  /* Accent */
  --accent: oklch(0.9 0.02 80);
  --accent-foreground: oklch(0.25 0.02 80);

  /* Destructive */
  --destructive: oklch(0.6 0.18 25);

  /* Border & Input */
  --border: oklch(0.88 0.015 80);
  --input: oklch(0.88 0.015 80);
  --ring: #cda4a4;

  /* Radius */
  --radius: 0.625rem;

  /* Container */
  --container-width: 1200px;
  --container-padding: 1rem;
}

/* ── Reset ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "DoranFa", system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

input {
  font-family: inherit;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  line-height: 1.5;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn--primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn--white {
  background-color: #ffffff;
  color: var(--primary);
}

.btn--white:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: calc(var(--radius) * 1.2);
}

.btn__icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ── Toast ── */
.toaster {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--popover);
  color: var(--popover-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: toast-in 0.3s ease;
  min-width: 300px;
  max-width: 400px;
}

.toast--success {
  border-right: 4px solid #22c55e;
}

.toast--error {
  border-right: 4px solid #ef4444;
}

.toast--info {
  border-right: 4px solid #3b82f6;
}

.toast--warning {
  border-right: 4px solid #f59e0b;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-1rem);
  }
}

/* ── Breadcrumb ── */
.breadcrumb {
    width: 100%;
    margin-bottom: 1.5rem;
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    font-size: 0.875rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.breadcrumb__link {
    color: var(--muted-foreground);
    transition: color 0.2s ease;
    text-decoration: none;
}

.breadcrumb__link:hover {
    color: var(--primary);
}

.breadcrumb__current {
    color: var(--foreground);
    font-weight: 500;
}

.breadcrumb__separator {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--muted-foreground);
    flex-shrink: 0;
}