/* Invert SVG colors in feature cards for dark mode */
.dark .why-icon svg {
  filter: invert(1) hue-rotate(180deg) brightness(1.2) contrast(1.1);
  transition: filter 0.3s;
}


:root{
  --radius:10px;
  /* Light theme inspired by electric blue palette */
  --background:#F8FAFC;               /* eggshell */
  --foreground:#1C2733;               /* near-black for body text */
  --card:#FFFFFF;                     /* crisp cards */
  --card-foreground:#1C2733;
  --popover:#FFFFFF;
  --popover-foreground:#1C2733;
  --primary:#D9EAFD;                  /* electric blue */
  --primary-foreground:#09121A;       /* readable on saturated blue */
  --primary-accent:#BCCCDC;           /* frosty grape */
  --primary-accent-strong:#9AA6B2;    /* hi-vis accent */
  --secondary:#D9EAFD;                /* soft secondary surface */
  --secondary-foreground:#1C2733;
  --muted:#EFF4F9;                    /* gentle neutral for muted blocks */
  --muted-foreground:#4A5E70;
  --border:#E1E8F0;
  --input:#E1E8F0;
  --ring:#9AA6B2;
  --banner-bg:#f8fafc;
  --banner-fg:#1C2733;
  /* Use solid banner color (no gradient) */
  --banner-gradient: var(--banner-bg);
  --theme-toggle-bg:#FFFFFF;
  --theme-toggle-fg:#1C2733;
  --theme-toggle-border:#E1E8F0;
  --accent-gradient: linear-gradient(140deg,#BCCCDC 0%,#D9EAFD 50%,#9AA6B2 100%);
  --card-gradient: linear-gradient(160deg,rgba(255,255,255,0.9) 0%,rgba(248,250,252,0.86) 48%,rgba(255,255,255,0.95) 100%);
  --hero-gradient-1:#D9EAFD;
  --hero-gradient-2:#BCCCDC;
  --hero-gradient-3:#9AA6B2;
  --hero-gradient-4:#1C2733;
  --cta-gradient: linear-gradient(135deg,#9AA6B2 0%,#D9EAFD 60%,#F8FAFC 100%);
}
/* Modern dark theme */
.dark {
  --background: oklch(0.145 0 0);
  --foreground: #f3f6fa;
  --card: #232b39;
  --card-foreground: #f3f6fa;
  --popover: #232b39;
  --popover-foreground: #f3f6fa;
  --primary: #889098;
  --primary-foreground: #10141a;
  --primary-accent: #2d8be6;
  --primary-accent-strong: #1e5a8a;
  --secondary: #22304a;
  --secondary-foreground: #e0e6ef;
  --muted: #20293a;
  --muted-foreground: #b2bdd1;
  --border: #2a3547;
  --input: #2a3547;
  --ring: #9fb6cf;
  --banner-bg: #141414;
  --banner-fg: #f3f6fa;
  --banner-gradient: linear-gradient(60deg, oklch(0.145 0 0) 0%,oklch(0.145 0 0) 100%);
  --theme-toggle-bg: oklch(0.145 0 0);
  --theme-toggle-fg: #f3f6fa;
  --theme-toggle-border: #2a3547;
  --accent-gradient: linear-gradient(140deg, #2d8be6 0%, #4ea1f7 50%, #1e5a8a 100%);
  --card-gradient: linear-gradient(160deg,rgba(35,43,57,0.98) 0%,rgba(24,31,42,0.96) 48%,rgba(35,43,57,0.99) 100%);
  --hero-gradient-1: #12141a;
  --hero-gradient-2: #3f3b48a4;
  --hero-gradient-3: #09090a;
  --hero-gradient-4: #191919;
  --cta-gradient: linear-gradient(135deg,#2d8be6 0%,#4ea1f7 60%,#181f2a 100%);
}


@supports not (color: oklch(0.5 0 0)) {
  :root{
    --background:#F8FAFC; --foreground:#1C2733;
    --card:#FFFFFF; --card-foreground:#1C2733;
    --popover:#FFFFFF; --popover-foreground:#1C2733;
    --primary:#D9EAFD; --primary-foreground:#09121A;
    --primary-accent:#BCCCDC; --primary-accent-strong:#9AA6B2;
    --secondary:#D9EAFD; --secondary-foreground:#1C2733;
    --muted:#EFF4F9; --muted-foreground:#4A5E70;
    --border:#E1E8F0; --input:#E1E8F0; --ring:#9AA6B2;
    --banner-bg:#f8fafcc0; --banner-fg:#1C2733;
    /* Solid banner in fallback too */
    --banner-gradient:var(--banner-bg);
    --theme-toggle-bg:#FFFFFF;
    --theme-toggle-fg:#1C2733;
    --theme-toggle-border:#E1E8F0;
    --accent-gradient:linear-gradient(140deg,#BCCCDC 0%,#D9EAFD 50%,#9AA6B2 100%);
    --card-gradient:linear-gradient(160deg,rgba(255,255,255,0.9) 0%,rgba(248,250,252,0.86) 48%,rgba(255,255,255,0.95) 100%);
    --hero-gradient-1:#D9EAFD; --hero-gradient-2:#BCCCDC;
    --hero-gradient-3:#9AA6B2; --hero-gradient-4:#1C2733;
    --cta-gradient:linear-gradient(135deg,#9AA6B2 0%,#D9EAFD 60%,#F8FAFC 100%);
  }
  .dark{
    --background:#F8FAFC; --foreground:#1C2733;
    --card:#FFFFFF; --card-foreground:#1C2733;
    --popover:#FFFFFF; --popover-foreground:#1C2733;
    --primary:#D9EAFD; --primary-foreground:#09121A;
    --primary-accent:#BCCCDC; --primary-accent-strong:#9AA6B2;
    --secondary:#D9EAFD; --secondary-foreground:#1C2733;
    --muted:#EFF4F9; --muted-foreground:#4A5E70;
    --border:#E1E8F0; --input:#E1E8F0; --ring:#9AA6B2;
    --banner-bg:#f8fafcc0; --banner-fg:#1C2733;
    --banner-gradient:var(--banner-bg);
    --theme-toggle-bg:#FFFFFF;
    --theme-toggle-fg:#1C2733;
    --theme-toggle-border:#E1E8F0;
    --accent-gradient:linear-gradient(140deg,#BCCCDC 0%,#D9EAFD 50%,#9AA6B2 100%);
    --card-gradient:linear-gradient(160deg,rgba(255,255,255,0.9) 0%,rgba(248,250,252,0.86) 48%,rgba(255,255,255,0.95) 100%);
    --hero-gradient-1:#D9EAFD; --hero-gradient-2:#BCCCDC;
    --hero-gradient-3:#9AA6B2; --hero-gradient-4:#1C2733;
    --cta-gradient:linear-gradient(135deg,#9AA6B2 0%,#D9EAFD 60%,#F8FAFC 100%);
  }
}



:root { --container-w: 1600px; --row-gap: 28px; --block-gap: 32px; }
html,body{ background:var(--background); color:var(--foreground); }
body { margin: 0; padding: 0 0 28px; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; font-size: 19px; line-height: 1.7; }
main.container { max-width: var(--container-w); margin: 0 auto; padding: 0 28px; }

/* Global hyperlink styling (content links) */
a:not(.button):not(.site-banner__link):not(.site-menu__link) {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color .15s ease, text-decoration-thickness .15s ease, filter .15s ease;
}

a:not(.button):not(.site-banner__link):not(.site-menu__link):hover,
a:not(.button):not(.site-banner__link):not(.site-menu__link):focus {
  text-decoration-thickness: 2px;
  filter: brightness(.95);
}

a:not(.button):not(.site-banner__link):not(.site-menu__link):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.site-banner {
  background: var(--banner-gradient, var(--banner-bg));
  color: var(--banner-fg);
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-banner__inner {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.theme-toggle {
  --theme-toggle-rotation: 0deg;
  background: var(--theme-toggle-bg);
  border: 1px solid var(--theme-toggle-border);
  border-radius: 999px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--theme-toggle-fg);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  transform: rotate(var(--theme-toggle-rotation));
}

.theme-toggle.is-dark {
  --theme-toggle-rotation: 0deg;
}

.theme-toggle.is-light {
  --theme-toggle-rotation: 180deg;
}

.theme-toggle:hover {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}

.theme-toggle:active {
  transform: rotate(var(--theme-toggle-rotation)) scale(0.94);
}

@media (max-width: 600px) {
  .theme-toggle {
    width: 44px;
    height: 44px;
    font-size: 20px;
    bottom: 16px;
    right: 16px;
  }
}

@supports (bottom: max(0px, env(safe-area-inset-bottom))) {
  .theme-toggle {
    bottom: calc(24px + env(safe-area-inset-bottom));
    right: calc(24px + env(safe-area-inset-right));
  }

  @media (max-width: 600px) {
    .theme-toggle {
      bottom: calc(16px + env(safe-area-inset-bottom));
      right: calc(16px + env(safe-area-inset-right));
    }
  }
}

.site-banner__logo {
  display: inline-flex;
  align-items: center;
}

.site-banner__nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.site-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.site-banner__logo-image {
  display: block;
  width: 75px;
  height: 50px;
  object-fit: contain;
}

.site-banner__logo-image--light {
  display: none;
}

.site-banner__logo-image--dark {
  display: block;
}

.site-banner__link {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  font-size: 18px;
}

.site-banner__link:hover,
.site-banner__link:focus {
  text-decoration: underline;
}

.site-banner__menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  margin: 0;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.2s ease;
}

.site-banner__menu-toggle:focus-visible,
.theme-toggle:focus-visible,
.site-menu__close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.site-banner__menu-icon {
  position: relative;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  display: block;
}

.site-banner__menu-icon::before,
.site-banner__menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.site-banner__menu-icon::before {
  top: -7px;
}

.site-banner__menu-icon::after {
  top: 7px;
}

.site-menu {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px;
  background: var(--background);
  color: var(--foreground);
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0;
  transform: translateY(-8%);
  pointer-events: none;
  z-index: 30;
  overflow-y: auto;
}

.site-menu--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-menu[hidden] {
  display: none !important;
}

.site-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-menu__logo {
  display: inline-flex;
  align-items: center;
}

.site-menu__close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.site-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-top: 48px;
}

.site-menu__link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 24px;
}

.site-menu__link[aria-current="page"] {
  text-decoration: underline;
}

body.site-menu-open {
  overflow: hidden;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 48px 0 28px;
  width: 100%;
  position: relative;
}

.hero__logo-group {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

.hero__header {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 0;
  max-width: var(--container-w);
  margin: 0 auto;
}

.hero__logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 16px;
  padding: 0;
}

.hero__logo {
  width: 250px;
  height: 50px;
  object-fit: contain;
}

.hero__logo--light {
  display: block;
}

.hero__logo--dark {
  display: none;
}

.hero__subtitle {
  margin: 0;
  color: var(--muted-foreground);
}

/* Hide hero title if present; footer shows small title */
.hero__title {
  display: none;
}

.placeholder {
  min-height: calc(100vh - 50px - 28px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.placeholder__content {
  max-width: 720px;
  padding: 64px 0;
  display: grid;
  gap: 16px;
}

.placeholder__content h1 {
  margin: 0;
  font-size: 2rem;
}

.placeholder__content p {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.placeholder__content a {
  color: var(--primary);
  text-decoration: underline;
}

html.dark .site-banner__logo-image--light {
  display: block;
}

html.dark .hero__logo--light {
  display: none;
}

html.dark .site-banner__logo-image--dark {
  display: none;
}

html.dark .hero__logo--dark {
  display: block;
}

/* Home (landing) spacing tuned to match app page rhythm */
body.home main.container {
  padding-bottom: clamp(56px, 8vw, 80px);
}

body.home .hero {
  /* Align hero content with container/cards: remove extra horizontal padding */
  margin: clamp(72px, 10vw, 96px) 0 clamp(40px, 6vw, 56px);
  padding: clamp(44px, 7vw, 82px) 0;
  border-radius: clamp(28px, 5vw, 40px);
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.18);
  color: var(--foreground);
}

body.home .hero h1,
body.home .hero .hero__subtitle {
  max-width: min(760px, 100%);
}

body.home .hero .hero__description {
  max-width: min(760px, 100%);
  color: var(--muted-foreground);
  color: color-mix(in oklch, var(--foreground) 82%, var(--muted-foreground) 18%);
}

body.home .feature-grid {
  max-width: min(1080px, 100%);
  gap: clamp(20px, 4vw, 32px);
  margin: clamp(32px, 6vw, 52px) auto clamp(28px, 5vw, 44px);
  padding: 0 clamp(18px, 4vw, 28px);
}

body.home .feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vw, 14px);
}

body.home .feature-card > * {
  position: relative;
  z-index: 1;
}

body.home .why-grid {
  --why-card-bg: color-mix(in oklch, var(--background) 94%, var(--primary) 6%);
  --why-card-border: color-mix(in oklch, var(--border) 70%, var(--primary) 30%);
  --why-card-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
  --why-icon-bg: color-mix(in oklch, var(--primary) 16%, transparent);
  --why-icon-border: color-mix(in oklch, var(--primary) 48%, var(--border));
}

html.dark body.home .why-grid {
  --why-card-bg: color-mix(in oklch, var(--background) 86%, var(--primary) 14%);
  --why-card-border: color-mix(in oklch, var(--border) 45%, var(--primary) 55%);
  --why-card-shadow: 0 32px 70px rgba(8, 15, 27, 0.55);
  --why-icon-bg: color-mix(in oklch, var(--primary) 22%, transparent);
  --why-icon-border: color-mix(in oklch, var(--primary) 60%, var(--border));
}

body.home .why-grid .why-heading {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: clamp(8px, 2.5vw, 14px);
}

body.home .why-grid .why-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4.6vw, 36px);
  line-height: 1.2;
}

body.home .why-grid .why-heading .accent { color: var(--primary); }
body.home .why-grid .why-heading .why-sub { color: var(--muted-foreground); margin: 0; }

body.home .why-card {
  border-radius: clamp(18px, 3vw, 22px);
  padding: clamp(22px, 4vw, 28px);
  min-height: clamp(180px, 32vw, 210px);
  color: color-mix(in oklch, var(--foreground) 90%, var(--muted-foreground) 10%);
  background: var(--why-card-bg);
  border: 1px solid var(--why-card-border);
  box-shadow: var(--why-card-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

body.home .why-card h3 {
  margin: 2px 0 4px;
  font-size: clamp(18px, 1.6vw, 20px);
  font-weight: 600;
}

body.home .why-card p {
  margin: 0;
  color: color-mix(in oklch, var(--muted-foreground) 92%, var(--foreground) 8%);
  line-height: 1.5;
}

body.home .why-card:hover,
body.home .why-card:focus-within {
  transform: translateY(-6px);
  background: color-mix(in oklch, var(--why-card-bg) 85%, var(--primary) 15%);
  border-color: color-mix(in oklch, var(--why-card-border) 55%, var(--primary) 45%);
  box-shadow: 0 34px 72px rgba(15, 23, 42, 0.24);
}

html.dark body.home .why-card:hover,
html.dark body.home .why-card:focus-within {
  box-shadow: 0 38px 84px rgba(8, 15, 27, 0.62);
}

body.home .why-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--why-icon-bg);
  border: 1px solid var(--why-icon-border);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--primary) 20%, transparent);
}

body.home section[aria-label="İçerik ve örnekler"],
body.home .faq,
body.home .trust,
body.home .sample {
  max-width: min(900px, 100%);
  margin: clamp(32px, 6vw, 48px) auto 0;
  padding: 0 clamp(16px, 4vw, 24px);
}

body.home .sample {
  margin-top: clamp(28px, 5vw, 40px);
}

body.home .code-block {
  background: var(--muted);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(18px, 4vw, 22px);
  overflow: auto; /* allow horizontal scroll instead of wrapping */
  font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  white-space: pre; /* keep each line on a single row */
  tab-size: 8; -moz-tab-size: 8; /* stable tab stops for alignment */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "lnum";
  display: none; /* hide raw text version; replaced by table */
}

/* Sample table (index.html demo) */
.sample-table-figure {
  margin-top: clamp(12px, 3vw, 16px);
  overflow-x: hidden; /* no sideways scroll */
}

.sample-table {
  width: 100%;
  table-layout: fixed; /* force columns to fit container */
  border: 3px solid var(--border);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
}

.sample-table thead th {
  height: 40px;
  padding: 0 8px;
  text-align: left;
  font-weight: 600;
  background: var(--secondary);
}

.sample-table th,
.sample-table td {
  padding: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sample-table td:nth-child(1),
.sample-table th:nth-child(1) { width: 5%; min-width: 36px; text-align: center; }
.sample-table td:nth-child(2),
.sample-table th:nth-child(2) { width: 22%; }
.sample-table td:nth-child(3),
.sample-table th:nth-child(3) { width: 35%; }
.sample-table td:nth-child(4),
.sample-table th:nth-child(4) { width: 20%; text-align: left; }
.sample-table td:nth-child(5),
.sample-table th:nth-child(5) { width: 17%; text-align: center; }
.sample-table td:nth-child(6),
.sample-table th:nth-child(6) { width: 10%; text-align: center; }
.sample-table td:nth-child(7),
.sample-table th:nth-child(7) { width: 14%; text-align: left; }

/* Mobile: show only #, University and Rank in the sample table */
@media (max-width: 720px) {
  /* Hide all columns except 1 (#), 2 (Üniversite) and 7 (Sıralama) */
  .sample-table th:nth-child(3),
  .sample-table td:nth-child(3),
  .sample-table th:nth-child(4),
  .sample-table td:nth-child(4),
  .sample-table th:nth-child(5),
  .sample-table td:nth-child(5),
  .sample-table th:nth-child(6),
  .sample-table td:nth-child(6) {
    display: none;
  }

  /* Adjust spacing for mobile */
  .sample-table th,
  .sample-table td { padding: 10px; }

  /* Rebalance widths of visible columns */
  .sample-table th:nth-child(1),
  .sample-table td:nth-child(1) { width: 10%; min-width: 36px; text-align: center; }

  .sample-table th:nth-child(2),
  .sample-table td:nth-child(2) { width: 60%; }

  .sample-table th:nth-child(7),
  .sample-table td:nth-child(7) {
    width: 30%;
    min-width: 88px;
    text-align: right;
    text-overflow: clip; /* avoid trimming rank values */
  }

  /* Let the sample table breathe to the edges on mobile */
  body.home .sample { padding-left: 0; padding-right: 0; }
  body.home .sample-table-figure { margin-left: -28px; margin-right: -28px; }

  /* Slightly smaller header to avoid truncation */
  .sample-table thead th { font-size: 15px; }
}

body.home .faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: clamp(14px, 3vw, 18px) clamp(16px, 4vw, 20px);
}

body.home .faq details + details {
  margin-top: clamp(12px, 3vw, 18px);
}

body.home .faq p,
body.home .trust p {
  color: var(--muted-foreground);
}

body.home .ad-unit {
  display: flex;
  justify-content: center;
  margin: clamp(36px, 7vw, 48px) 0;
}

body.home .ad-unit ins.adsbygoogle {
  display: block;
  width: 100%;
  max-width: 728px;
  min-height: 120px;
}

body.home .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 clamp(16px, 4vw, 22px);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .35s ease, box-shadow .35s ease, background-position .6s ease;
}

body.home .button.primary {
  background: var(--primary);
  background-image: var(--cta-gradient);
  background-size: 220% 220%;
  background-position: 0% 50%;
  color: var(--primary-foreground);
  border-color: transparent;
  box-shadow: 0 18px 36px rgba(99, 102, 241, 0.35);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body.home .button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 1;
  pointer-events: none;
}

body.home .button.primary > * {
  position: relative;
  z-index: 2;
}

body.home .button:hover,
body.home .button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.22);
}

body.home .button.primary:hover,
body.home .button.primary:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 55%, transparent),
    0 30px 54px color-mix(in oklab, var(--primary) 45%, rgba(15, 23, 42, 0.22));
}

body.home .button.primary:hover::after,
body.home .button.primary:focus-visible::after {
  opacity: 1;
}

body.home .button:focus-visible {
  outline: none;
}

body.home .button:active {
  transform: scale(0.97);
}

@media (max-width: 720px) {
  .hero__header {
    /* Keep alignment with container on mobile too */
    padding: 0;
    position: relative;
  }
  .hero__logo-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero__logo-group {
    width: 100%;
    max-width: 250px;
    display: flex;
    justify-content: center;
  }
  .site-banner__nav,
  .site-banner__actions {
    display: none;
  }
  .site-banner__menu-toggle {
    display: inline-flex;
  }
  .hero__logo {
    width: 100%;
    height: auto;
    max-width: 250px;
  }
}

.row { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--row-gap); margin-bottom: calc(var(--block-gap) * 3.6); }
.turnstile-container {
  margin-bottom: 0;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}


#burs-orani-row { margin-top: 0; padding-top: calc(var(--block-gap) + 8px); }


.row.controls {
  margin-top: 80px;
  margin-bottom: -107px; 
  position: relative;
  z-index: 2; 
  
  pointer-events: none;
}

.row.controls .inline { pointer-events: auto; }

.swap-inline{ display:none !important; }

.row.controls > .col-12 { grid-column: 3 / span 3; }

.row.controls{ display:none !important; }


#burs-orani-row {
  position: relative;
  z-index: 1; 
  
  padding-top: calc(var(--block-gap) + 50px);
  margin-top: 0;
}


.row:has(#rank_say) { padding-top: var(--block-gap); margin-top: 0; }
.row.has-rank-say { padding-top: var(--block-gap); margin-top: 0; }

#burs-orani-row > .col-4 { grid-column: span 4; }

@media (min-width: 901px){
  #burs-orani-row .uni-type-col { grid-column: 1 / span 3; }
  #burs-orani-row #scholarship-col { grid-column: 4 / span 4; }
  #burs-orani-row .language-col { grid-column: 9 / span 4; }
}
@media (max-width: 900px){
  #burs-orani-row > .col-4 { grid-column: span 12; }
}
.col-12 { grid-column: span 12; } .col-6{ grid-column: span 6; }
.col-4{ grid-column: span 4; } .col-3{ grid-column: span 3; }

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 16px;
}


fieldset {
  border: none;
  margin: 0;
  padding: 0;
}
legend {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--foreground);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

label > input[type="number"] {
  display: block;
  margin-top: 6px;
}


.row.controls .inline { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.row.controls .inline > label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 2px 0; width: auto; }
.row.controls .inline > label input[role="switch"] { margin-right: 6px; }

#burs-orani-row .inline { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
#burs-orani-row .inline > label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 2px 0; width: auto; }
#burs-orani-row .inline > label input[role="switch"] { margin-right: 6px; }
@media (max-width: 900px){ .col-6,.col-4,.col-3{ grid-column: span 12; } }


input[type="number"], input[type="search"], input.rank-input {
  height: 44px; 
  border: 1px solid var(--input) !important;
  background: var(--background);
  color: var(--foreground);
  border-radius: 8px; 
  padding: 0 4px; 
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
  font-size: 18px; 
}


select {
  height: 44px;
  width: 100%;
  border: 1px solid var(--input) !important;
  background: var(--background);
  color: var(--foreground);
  border-radius: 8px;
  padding: 0 16px;
  font-size: 18px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}


.ms .chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.ms .chevron svg {
  width: 100%;
  height: 100%;
  stroke: var(--muted-foreground);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.ms .dropdown:not(.hidden) .chevron {
  transform: translateY(-50%) rotate(180deg);
}

.ms .chevron:hover svg {
  stroke: var(--foreground);
}

select:hover {
  border-color: var(--ring);
}

select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}


select option {
  padding: 8px 12px;
  background: var(--popover);
  color: var(--popover-foreground);
  border: none;
}

select option:hover {
  background: color-mix(in oklab, var(--secondary) 60%, transparent);
}
input:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--ring) 50%, transparent); 
  outline-offset: 0;
  border-color: var(--ring);
}
::selection{ background: var(--primary); color: var(--primary-foreground); }


#submitBtn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height: 44px; padding: 8px 20px; 
  width:100%;
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border: 1px solid var(--primary);
  border-radius: 8px; 
  font-size: 1.2rem; font-weight: 600; 
  transition: filter .15s ease, box-shadow .15s ease, transform .15s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  position: relative;
  overflow: hidden;
}
#submitBtn:hover{ filter: brightness(.92); }
#submitBtn:active{ transform: scale(0.98); }
#submitBtn:focus-visible{
  outline: 3px solid color-mix(in oklab, var(--ring) 50%, transparent);
  outline-offset: 0;
}


#submitBtn, #showAllBtn {
  scroll-margin: 0;
  scroll-padding: 0;
}


#submitBtn[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.8;
}

#submitBtn[aria-busy="true"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}


@keyframes buttonClick {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.button-clicked {
  animation: buttonClick 0.1s ease-out;
}


#showAllBtn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height: 44px; padding: 8px 20px; width:100%;
  background: var(--secondary) !important;
  color: var(--secondary-foreground) !important;
  border: 1px solid var(--secondary);
  border-radius: 8px; font-size: 1.2rem; font-weight: 600;
  transition: filter .15s ease, box-shadow .15s ease, transform .15s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}


#downloadMdBtn,
#downloadPdfBtn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:44px; padding:8px 20px; width:auto;
  background: var(--secondary) !important;
  color: var(--secondary-foreground) !important;
  border: 1px solid var(--secondary);
  border-radius: 8px; font-size: 1.2rem; font-weight: 600;
  transition: filter .15s ease, box-shadow .15s ease, transform .15s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

#downloadMdBtn:hover, #downloadPdfBtn:hover{ filter: brightness(.96); }
#downloadMdBtn:active, #downloadPdfBtn:active{ transform: scale(0.98); }
#downloadMdBtn:focus-visible, #downloadPdfBtn:focus-visible{
  outline: 3px solid color-mix(in oklab, var(--ring) 50%, transparent);
  outline-offset: 0;
}
#downloadMdBtn:disabled, #downloadPdfBtn:disabled{
  opacity:.5; cursor:not-allowed;
}


#downloadBar { justify-content: center; flex-basis: 100%; width: 100%; }
#showAllBtn:hover{ filter: brightness(.96); }
#showAllBtn:active{ transform: scale(0.98); }
#showAllBtn:focus-visible{
  outline: 3px solid color-mix(in oklab, var(--ring) 50%, transparent);
  outline-offset: 0;
}


#showAllBtn[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.8;
}

#showAllBtn[aria-busy="true"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 1.5s infinite;
}


article, .card{
  border:1px solid var(--border) !important;
  background: var(--card);
  color: var(--card-foreground);
  border-radius: 12px; 
  padding: 20px 24px; 
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}


article.secondary {
  font-size: 14px;
  line-height: 1.4;
  margin-top: clamp(64px, 8vw, 120px);
}
article.secondary ul {
  margin: 8px 0;
}
article.secondary li {
  margin-bottom: 6px;
}


#alert article[role="alert"]{
  border-radius: 12px;
  border-color: var(--border);
  background: var(--secondary);
  color: var(--secondary-foreground);
}


.ms{ position:relative; padding-top:2px; margin-bottom: var(--block-gap); }

#ms-majors { margin-bottom: calc(var(--block-gap) + 8px); }
.ms .summary{ font-size:.9rem; color: var(--muted-foreground); margin: 0 0 10px; }


.ms input[type="search"]{ 
  width:100%; 
  height: 44px;
  border: 1px solid var(--input) !important;
  background: var(--background);
  color: var(--foreground);
  border-radius: 8px;
  padding: 0 40px 0 16px; 
  font-size: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ms input[type="search"]:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}


.ms .chips{ 
  display:flex; 
  flex-wrap:wrap; 
  gap:6px; 
  margin-top: 8px;
  min-height: 20px;
}


.chip{
  display:inline-flex; align-items:center; gap:6px;
  border:1px solid transparent; border-radius:9999px; padding: 2px 10px; 
  font-size: 12px; font-weight: 600; 
  background: var(--primary); color: var(--primary-foreground);
}
.chip .x{ cursor:pointer; border:0; background:transparent; padding:0 2px; line-height:1; color: var(--primary-foreground); }


.ms .dropdown{
  position:absolute; left:0; right:0; top: calc(100% + -25px);
  background: var(--popover); color: var(--popover-foreground);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  max-height: 260px; overflow:auto; z-index:20;
}
.ms .dropdown.hidden{ display:none; }
.ms .opt{ padding:8px 10px; cursor:pointer; font-size: 14px; }
.ms .opt:hover{ background: color-mix(in oklab, var(--secondary) 60%, transparent); }
.ms .opt.is-active{ background: color-mix(in oklab, var(--primary) 20%, transparent); }


input[role="switch"]{
  appearance: none; width: 42px; height: 24px; border-radius: 9999px;
  border:1px solid var(--input); background: color-mix(in oklab, var(--secondary) 70%, rgb(48, 48, 48) 30%);
  position: relative; vertical-align: middle; transition: background .15s,border-color .15s;
}
input[role="switch"]::after{
  content:""; position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%;
  background: var(--foreground); transition: transform .15s;
}
input[role="switch"]:checked{ background: color-mix(in oklab, var(--primary) 80%, #60c2e6 20%); border-color: var(--primary); }
input[role="switch"]:checked::after{ transform: translateX(18px); background: var(--primary-foreground); }


figure { overflow-x:auto; }
table{ width:100%; border:1px solid var(--border); border-radius: 12px; overflow:hidden; border-collapse: separate; border-spacing: 0; }
thead{ border-bottom:1px solid var(--border); }
table thead th{ height: 40px;  padding: 0 8px; text-align:left; font-weight:600; background: var(--secondary); position: sticky; top:0; z-index:1; }
#results {
  width: 100%;
}

#results > figure {
  width: 100%;
  margin: 0;
}

#results > figure > table {
  width: 100%;
}

/* Column width tweaks for results table (desktop) */
@media (min-width: 721px) {
  /* 1: handle | 2: # | 3: Üniversite | 4: Bölüm | 5: Şehir | 6: Tür | 7: Burs | 8: 2025 | 9: 2024 | 10: Oran | 11: Alan | 12: remove */
  #results table th:nth-child(3),
  #results table td:nth-child(3) { width: 20%; }
  /* 2025 / 2024 ranks */
  #results table th:nth-child(8),
  #results table td:nth-child(8) { width: 12%; }
  #results table th:nth-child(9),
  #results table td:nth-child(9) { width: 12%; }
}

.column-header-with-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.column-hint-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--primary) 40%, var(--border));
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: color-mix(in oklab, var(--primary) 80%, var(--foreground));
  cursor: help;
  line-height: 1;
  position: relative;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.column-hint-button:hover,
.column-hint-button:focus-visible {
  background: color-mix(in oklab, var(--primary) 20%, transparent);
  color: var(--primary);
  border-color: color-mix(in oklab, var(--primary) 60%, var(--border));
  transform: translateY(-1px);
}

.column-hint-button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.column-hint-button:active {
  transform: scale(0.94);
}

.column-hint-button::before,
.column-hint-button::after {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease, transform 120ms ease;
}

.column-hint-button::after {
  content: attr(data-tooltip);
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-60%, -4px);
  background: var(--popover);
  color: var(--popover-foreground);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in oklab, var(--foreground) 12%, transparent);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  display: block;
  width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  white-space: normal;
  z-index: 12;
}

.column-hint-button::before {
  content: '';
  top: calc(100% + 2px);
  left: 50%;
  width: 12px;
  height: 8px;
  transform: translate(-60%, -4px);
  background: var(--popover);
  border: 1px solid color-mix(in oklab, var(--foreground) 12%, transparent);
  border-top: none;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  z-index: 11;
}

.column-hint-button:hover::before,
.column-hint-button:hover::after,
.column-hint-button:focus-visible::before,
.column-hint-button:focus-visible::after {
  opacity: 1;
  transform: translate(-60%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .column-hint-button::before,
  .column-hint-button::after,
  .column-hint-button:hover::before,
  .column-hint-button:hover::after,
  .column-hint-button:focus-visible::before,
  .column-hint-button:focus-visible::after {
    transition: none;
  }
}


tbody tr{ border-bottom:1px solid var(--border); transition: background-color .12s; }
tbody tr:hover{ background: color-mix(in oklab, var(--muted) 50%, transparent); }
td{
  padding: 8px;
  white-space: nowrap;
  overflow-wrap: anywhere;   
  word-break: normal;
}


@media (max-width: 900px){
  
  #results table td,
  #results table th{ white-space: normal; }

  
  #results table td:nth-child(1),   
  #results table td:nth-child(2),   
  #results table td:last-child{     
    white-space: nowrap;
  }

  
  #results table td{ padding: 10px 8px; line-height: 1.25; }

  
  .drag-handle{ padding: 6px 0; }
  .remove-row{ padding: 6px 10px; font-size: 18px; }
}


@media (max-width: 720px){
  #results table{ border: 0; }
  #results thead{ display: none; }
  #results tbody tr{
    display: block;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0;
    width: 100%;
    box-sizing: border-box;
  }
  #results tbody tr:hover{ background: transparent; }
  #results tbody td{
    display: grid;
    grid-template-columns: 140px 1fr; 
    gap: 10px;
    border: 0 !important;
    padding: 6px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  #results tbody td:first-child,
  #results tbody td:last-child{
    grid-template-columns: 1fr;
  }
  
  #results tbody td::before{
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted-foreground);
    font-size: 14px;
  }
  
  #results figure {
    width: 100%;
    margin: 0;
    padding: 0;
  }
}



.sabanci-indicator {
  position: relative;
  display: inline-block;
}

.sabanci-asterisk {
  color: var(--primary);
  font-weight: bold;
  font-size: 20px;
  margin-left: 4px;
  cursor: help;
}


.sabanci-tooltip{
  position: fixed;
  top: 0;
  left: 0;
  width: min(760px, calc(100vw - 32px)); 
  max-width: min(92vw, 960px);
  padding: 12px 16px;    
  background: var(--popover);
  color: var(--popover-foreground);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  display: none;
  transition: opacity .16s ease;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  box-sizing: border-box;
}


.sabanci-indicator:hover .sabanci-tooltip,
.sabanci-indicator:focus-within .sabanci-tooltip,
.sabanci-indicator[aria-expanded="true"] .sabanci-tooltip {
  display: block;
  opacity: 1;
  visibility: visible;
}


.tabs-list{ display:inline-flex; align-items:center; gap:6px; padding:3px; height:36px; border-radius: 12px; background: var(--muted); color: var(--muted-foreground); }
.tabs-trigger{
  height: calc(100% - 1px); padding: 4px 8px; border-radius: 8px; border:1px solid transparent;
  transition: color .12s, box-shadow .12s, background .12s;
}
.tabs-trigger[aria-selected="true"]{
  background: var(--background); color: var(--foreground); box-shadow: 0 1px 0 rgba(0,0,0,.04); border-color: var(--input);
}


input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { 
  -moz-appearance: textfield; 
  appearance: textfield;
}


#scholarship-col.hidden {
  visibility: hidden;
  
  height: auto;
  min-height: 80px; 
}


#results .sortable-hint{ margin: 10px 0 6px; font-size: 14px; color: var(--muted-foreground); text-align: center; }
#results table tbody tr{ transition: transform 120ms ease; }


.drag-active { cursor: grabbing; }
.drag-active * { user-select: none !important; }
.drag-active #results { position: relative; z-index: 20; }
.drag-active .row.controls,
.drag-active .sabanci-tooltip,
.drag-active header,
.drag-active .ms .dropdown { pointer-events: none !important; }


.drag-ghost {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  border-radius: 8px;
  background: var(--card);
  will-change: transform;
  opacity: .96;
}


.drag-insert-line{
  position: fixed;
  z-index: 10002;
  left: 0; top: 0; width: 0; height: 2px;
  background: var(--ring);
  box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 2px 6px rgba(0,0,0,.08);
  border-radius: 2px;
  pointer-events: none;
}

.drag-handle {
  user-select: none;
  touch-action: pan-y;
  padding: 0 8px;
  min-width: 72px;
  width: 72px;
}

.drag-handle-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.drag-handle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--muted-foreground);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  cursor: grab;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
}

.drag-active .drag-handle,
.drag-active .drag-handle-button {
  touch-action: none;
}

.drag-handle-button::before {
  content: '';
  width: 14px;
  height: 14px;
  display: block;
  background-image:
    radial-gradient(currentColor 1px, transparent 1px),
    radial-gradient(currentColor 1px, transparent 1px);
  background-size: 6px 6px;
  background-position: 0 0, 3px 3px;
}

.drag-handle-button:hover,
.drag-handle-button:focus-visible {
  background: color-mix(in oklab, var(--primary) 16%, transparent);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
}

.drag-handle-button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.drag-handle-button:active,
.drag-handle-button.is-dragging {
  cursor: grabbing;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
  transform: translateY(-2px) scale(1.02);
}

.drag-handle-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.drag-handle:hover .drag-handle-actions,
.drag-handle:focus-within .drag-handle-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reorder-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1;
  transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.reorder-btn:hover,
.reorder-btn:focus-visible {
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
}

.reorder-btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.reorder-btn:active {
  transform: translateY(1px);
}

.no-drag .drag-handle-button { display: none !important; }
.no-drag .drag-handle-actions {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

@media (max-width: 900px) {
  .drag-handle {
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .drag-handle-actions {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .drag-handle-button {
    width: 36px;
    height: 36px;
  }

  .reorder-btn {
    width: 28px;
    height: 28px;
  }
}

.drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  opacity: 0.96;
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  border-radius: 10px;
  overflow: hidden;
  transform-origin: center;
  transition:
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 160ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 160ms ease;
}


.drag-ghost-table{ width:100%; }

.drag-ghost.is-visible {
  transform: scale(1.005);
  opacity: 1;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}


.drag-ghost td,
.drag-ghost th {
  background: var(--card) !important;
  color: var(--card-foreground) !important;
}

.drag-placeholder {
  background: transparent !important;
}

.drag-placeholder td {
  padding: 0 !important;
  border: 0 !important;
  height: var(--placeholder-height);
}

.drag-placeholder .drop-zone {
  height: 100%;
  border-radius: 10px;
  border: 2px dashed color-mix(in oklab, var(--primary) 75%, transparent);
  background: color-mix(in oklab, var(--primary) 18%, transparent);
  opacity: 0;
  transform: scaleY(0.92);
  transition: opacity 120ms ease, transform 120ms ease, border-color 120ms ease;
}

.drag-placeholder .drop-zone.is-live {
  opacity: 1;
  transform: scaleY(1);
  animation: dropZonePulse 300ms ease;
}

@keyframes dropZonePulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 40%, transparent);
  }
  100% {
    box-shadow: 0 0 0 6px transparent;
  }
}

tbody.sort-animating > tr {
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.no-select,
.no-select * {
  user-select: none !important;
}

.remove-row {
  all: unset;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.remove-row:hover {
  background: #f3f4f6;
}

.drop-target-row {
  position: relative;
  background: color-mix(in oklab, var(--primary) 8%, transparent);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14);
}

.drop-target-row::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: color-mix(in oklab, var(--primary) 65%, transparent);
  border-radius: 999px;
}

.drop-target-row.drop-target-above::after {
  top: -1px;
  bottom: auto;
}

.drop-target-row.drop-target-end::after {
  top: auto;
  bottom: -1px;
}

.was-dropped {
  animation: dropConfirm 360ms ease-out;
}

@keyframes dropConfirm {
  0% {
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 45%, transparent);
  }
  80% {
    box-shadow: 0 0 0 6px transparent;
  }
  100% {
    box-shadow: none;
  }
}

#swap-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

#results {
  margin-top: 18px;
}

.secondary.outline {
  margin-top: clamp(267px, 12vw, 176px);
}

.drag-ghost table {
  width: 100%;
}

.drag-placeholder td {
  height: var(--placeholder-height);
}


.site-footer{
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 14px 0;
  font-size: 13px;              
  color: var(--muted-foreground);
}
.site-footer a{ color: inherit; text-decoration: none; }
.site-footer a:hover{ text-decoration: underline; }
.site-footer .container{ 
  max-width: var(--container-w);
  margin: 0 auto;
  text-align: center;           
}

/* Small visible footer title */
.site-footer__title{
  font-size: 13px;
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--muted-foreground);
}

.button-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.download-actions {
  display: flex;
  gap: 8px;
}

.address-normal {
  font-style: normal;
}
.ms .opt.opt-empty {
  color: var(--muted-foreground);
  pointer-events: none;
}

.pdf-export-wrapper {
  position: absolute;
  top: 0;
  left: -9999px;
  width: 210mm;
  max-width: 210mm;
  padding: 16px;
  background: #ffffff;
  color: #111827;
  pointer-events: none;
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.45;
}

.pdf-export-wrapper * {
  box-sizing: border-box;
}

.pdf-export-wrapper figure {
  margin: 0;
}

.pdf-export-wrapper table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  border: 1px solid #d1d5db;
}

.pdf-export-wrapper th,
.pdf-export-wrapper td {
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  font-size: 12px;
  text-align: left;
  vertical-align: middle;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "lnum";
}

.pdf-export-wrapper thead th {
  background: #f3f4f6;
  color: #111827;
  position: static !important;
  font-weight: 600;
}

.pdf-export-wrapper thead th:nth-child(1),
.pdf-export-wrapper thead th:nth-child(4),
.pdf-export-wrapper thead th:nth-child(5),
.pdf-export-wrapper thead th:nth-child(6),
.pdf-export-wrapper thead th:nth-child(10) {
  text-align: center;
}

.pdf-export-wrapper thead th:nth-child(1) {
  width: 44px;
  min-width: 44px;
}

.pdf-export-wrapper thead th:nth-child(4) {
  min-width: 72px;
}

.pdf-export-wrapper thead th:nth-child(7),
.pdf-export-wrapper thead th:nth-child(8),
.pdf-export-wrapper thead th:nth-child(9) {
  text-align: right;
}

.pdf-export-wrapper tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.pdf-export-wrapper tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.pdf-export-wrapper td[data-label="#"] {
  text-align: center;
  font-weight: 600;
  width: 44px;
  min-width: 44px;
}

.pdf-export-wrapper td[data-label="Şehir"] {
  text-align: center;
  min-width: 72px;
}

.pdf-export-wrapper td[data-label="Tür"],
.pdf-export-wrapper td[data-label="Burs"],
.pdf-export-wrapper td[data-label="Alan"] {
  text-align: center;
  white-space: nowrap;
}

.pdf-export-wrapper td[data-label="2025 Sıralaması"],
.pdf-export-wrapper td[data-label="2024 Sıralaması"],
.pdf-export-wrapper td[data-label="Oran"] {
  text-align: right;
  white-space: nowrap;
}

.pdf-export-wrapper td[data-label="Oran"] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "lnum";
}

.pdf-export-wrapper .sabanci-tooltip {
  display: none !important;
}

.pdf-export-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
}

.pdf-export-note {
  font-size: 12px;
  margin: 16px 0 0;
}
