/* =========================================================
   shadcn/ui tasarım sistemi — token + bileşenler (build'siz)
   Site ve admin paneli ortak kullanır.
   ========================================================= */
@layer components {
:root {
  --primary: #ff0000;
  --secondary: #fbb034;
  --ink: #222222;
  --canvas: #f9f9f9;

  --background: var(--canvas);
  --foreground: var(--ink);
  --card: #ffffff;
  --muted: color-mix(in oklab, var(--ink) 4%, white);
  --muted-foreground: color-mix(in oklab, var(--ink) 60%, white);
  --border: color-mix(in oklab, var(--ink) 11%, white);
  --input: color-mix(in oklab, var(--ink) 14%, white);
  --ring: color-mix(in oklab, var(--primary) 45%, transparent);
  --destructive: #dc2626;
  --success: #16a34a;
  --radius: 0.75rem;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .05);
  --shadow: 0 10px 30px -12px rgb(0 0 0 / .15);
  --shadow-lg: 0 30px 60px -20px rgb(0 0 0 / .25);
}

/* Sayfanın sağındaki kaydırma çubuğu gizlenir; kaydırma çalışmaya devam eder */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Logo (assets/brand-logo/logo.svg) */
.logo-img { display: block; width: auto; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; }
.logo-light { filter: brightness(0) invert(1); }

/* Button */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.5rem; padding: 0 1.1rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: .875rem; font-weight: 600; line-height: 1; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
  cursor: pointer; user-select: none; isolation: isolate; overflow: hidden;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-sm { height: 2rem; padding: 0 .75rem; font-size: .8rem; }
.btn-lg { height: 3.25rem; padding: 0 1.6rem; font-size: 1rem; border-radius: 999px; }
.btn-icon { width: 2.5rem; padding: 0; }
.btn-icon.btn-sm { width: 2rem; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 25px -10px color-mix(in oklab, var(--primary) 70%, transparent); }
.btn-primary:hover { background: color-mix(in oklab, var(--primary) 88%, black); }
.btn-secondary { background: var(--secondary); color: var(--ink); }
.btn-secondary:hover { background: color-mix(in oklab, var(--secondary) 88%, black); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: color-mix(in oklab, var(--ink) 85%, white); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--secondary); }
.btn-outline { background: var(--card); color: var(--ink); border-color: var(--input); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--muted); }
.btn-destructive { background: var(--destructive); color: #fff; }
.btn-destructive:hover { background: color-mix(in oklab, var(--destructive) 85%, black); }

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in oklab, var(--primary) 30%, var(--border)); }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.card-title { font-weight: 700; font-size: 1rem; }
.card-description { font-size: .85rem; color: var(--muted-foreground); }
.card-content { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); }

/* Form */
.label { display: block; margin-bottom: .4rem; font-size: .85rem; font-weight: 600; }
.input {
  display: block; width: 100%; height: 2.75rem; padding: 0 .9rem;
  background: #fff; color: var(--ink);
  border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px);
  font-size: .925rem; transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: color-mix(in oklab, var(--ink) 40%, white); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.input[aria-invalid="true"] { border-color: var(--destructive); }
.textarea { height: auto; min-height: 7rem; padding: .75rem .9rem; line-height: 1.6; resize: vertical; }
.select {
  appearance: none; padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center;
}
.help { margin-top: .35rem; font-size: .78rem; color: var(--muted-foreground); }

/* Switch (checkbox) */
.switch { position: relative; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .9rem; font-weight: 500; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { position: relative; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: var(--input); transition: background .2s; flex-shrink: 0; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + .switch-ui { background: var(--primary); }
.switch input:checked + .switch-ui::after { transform: translateX(1.1rem); }
.switch input:focus-visible + .switch-ui { box-shadow: 0 0 0 3px var(--ring); }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .65rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  border: 1px solid transparent; white-space: nowrap;
}
.badge-primary { background: color-mix(in oklab, var(--primary) 10%, white); color: var(--primary); }
.badge-secondary { background: color-mix(in oklab, var(--secondary) 18%, transparent); color: var(--secondary); border-color: color-mix(in oklab, var(--secondary) 35%, transparent); }
.badge-outline { border-color: var(--border); color: var(--muted-foreground); }
.badge-success { background: #dcfce7; color: #166534; }
.badge-muted { background: var(--muted); color: var(--muted-foreground); }
.badge-glass { background: rgb(255 255 255 / .85); color: var(--ink); backdrop-filter: blur(8px); }

/* Table */
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted-foreground); padding: .75rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--muted); }
.table tbody tr:last-child td { border-bottom: 0; }

/* Alert */
.alert { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--radius); border: 1px solid var(--border); font-size: .9rem; background: #fff; }
.alert-success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.alert-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.alert-warning { border-color: #fde68a; background: #fffbeb; color: #92400e; }

/* Tag */
.tag { display: inline-flex; padding: .3rem .65rem; border-radius: .5rem; background: var(--muted); border: 1px solid var(--border); font-size: .72rem; font-weight: 600; color: color-mix(in oklab, var(--ink) 75%, white); }
.tag-dark { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .1); color: rgb(255 255 255 / .75); }

/* Separator */
.separator { height: 1px; background: var(--border); border: 0; }
}
