/*
Theme Name: YKS Tercih Sihirbazi
Theme URI: https://ykstercih.tahirkilic.com.tr
Author: Tahir Kilic
Description: YKS ogrencileri icin Excel verilerinden calisan tercih sihirbazi temasi.
Version: 1.6.5
Text Domain: ykstercih
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
*/

:root {
  color-scheme: light;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(22, 108, 143, 0.08), rgba(22, 108, 143, 0) 340px),
    #f4f7f9;
  color: #142033;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  border-bottom: 1px solid #dbe2ea;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__inner,
.site-main,
.site-footer__inner {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #166c8f;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(22, 108, 143, 0.24);
}

.site-brand__text {
  display: grid;
  gap: 1px;
}

.site-brand strong {
  color: #102033;
  font-size: 22px;
  letter-spacing: 0;
}

.site-brand span {
  color: #637083;
  font-size: 13px;
}

.site-header__meta {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  background: #f7fafb;
  color: #405169;
  font-size: 13px;
  font-weight: 700;
}

.site-main {
  flex: 1 0 auto;
  padding: 28px 0 42px;
}

.site-footer {
  border-top: 1px solid #dbe2ea;
  background: rgba(255, 255, 255, 0.94);
}

.site-footer__inner {
  padding: 18px 0;
  color: #637083;
  font-size: 13px;
}

@media (max-width: 640px) {
  .site-header__inner,
  .site-main,
  .site-footer__inner {
    width: min(100% - 20px, 1440px);
  }

  .site-header__inner {
    min-height: 62px;
  }

  .site-brand__mark {
    width: 38px;
    height: 38px;
  }

  .site-brand strong {
    font-size: 18px;
  }

  .site-header__meta {
    display: none;
  }
}

/* The app styles are also copied into this primary stylesheet so the theme
   remains usable when a hosting panel omits nested asset files. */
+.ykstercih {
  --yk-bg: #f7f9fb;
  --yk-surface: #ffffff;
  --yk-text: #142033;
  --yk-muted: #637083;
  --yk-line: #dbe2ea;
  --yk-primary: #166c8f;
  --yk-primary-dark: #0f506b;
  --yk-soft: #e8f3f7;
  color: var(--yk-text);
  background: linear-gradient(180deg, #ffffff 0%, var(--yk-bg) 100%);
  border: 1px solid var(--yk-line);
  border-radius: 8px;
  padding: 24px;
  font-family: inherit;
  box-shadow: 0 18px 60px rgba(20, 32, 51, 0.08);
}

.ykstercih *,
.ykstercih *::before,
.ykstercih *::after {
  box-sizing: border-box;
}

.ykstercih__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.ykstercih__eyebrow {
  margin: 0 0 4px;
  color: var(--yk-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.ykstercih h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.04;
  letter-spacing: 0;
}

.ykstercih__mode {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--yk-surface);
  border: 1px solid var(--yk-line);
  border-radius: 8px;
  flex: 0 0 auto;
}

.ykstercih__mode button,
.ykstercih__pager button,
.ykstercih__filters button,
.ykstercih__link,
.ykstercih__dialog-head button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

.ykstercih__mode button {
  padding: 0 14px;
  color: var(--yk-muted);
  background: transparent;
  font-weight: 700;
}

.ykstercih__mode button.is-active {
  color: #fff;
  background: var(--yk-primary);
}

.ykstercih__notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #f0d58a;
  border-radius: 8px;
  background: #fff7dd;
  color: #5c4612;
  font-size: 14px;
  line-height: 1.45;
}

.ykstercih__account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  background: var(--yk-surface);
  border: 1px solid var(--yk-line);
  border-radius: 8px;
}

.ykstercih__account > div {
  display: grid;
  gap: 3px;
}

.ykstercih__account strong {
  font-weight: 800;
}

.ykstercih__account span,
.ykstercih__account p {
  margin: 0;
  color: var(--yk-muted);
  font-size: 13px;
}

.ykstercih__account form {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(160px, 0.8fr) auto auto;
  gap: 10px;
  align-items: end;
  width: 100%;
}

.ykstercih__account label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ykstercih__account label span {
  font-weight: 700;
}

.ykstercih__account input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--yk-line);
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
}

.ykstercih__account button,
.ykstercih__add {
  min-height: 38px;
  border: 1px solid var(--yk-primary);
  border-radius: 6px;
  background: var(--yk-primary);
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
}

.ykstercih__account button[data-auth-submit="register"] {
  background: var(--yk-surface);
  color: var(--yk-primary);
}

.ykstercih__add:disabled {
  cursor: not-allowed;
  border-color: var(--yk-line);
  background: #edf1f4;
  color: var(--yk-muted);
}

.ykstercih__filters {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(220px, 1.4fr) minmax(220px, 1.2fr) minmax(110px, 0.7fr) minmax(140px, 0.8fr) minmax(100px, 0.6fr) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--yk-line);
  border-radius: 8px;
  background: var(--yk-surface);
}

.ykstercih__filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ykstercih__filters span {
  color: var(--yk-muted);
  font-size: 12px;
  font-weight: 700;
}

.ykstercih__filters input,
.ykstercih__filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--yk-line);
  border-radius: 6px;
  background: var(--yk-surface);
  color: var(--yk-text);
  padding: 0 11px;
  font: inherit;
}

.ykstercih__filters button {
  min-width: 88px;
  padding: 0 18px;
  background: var(--yk-primary);
  color: #fff;
  font-weight: 800;
}

.ykstercih__filters button:hover,
.ykstercih__link:hover,
.ykstercih__pager button:hover {
  background: var(--yk-primary-dark);
  color: #fff;
}

.ykstercih__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0;
  padding: 12px 14px;
  background: var(--yk-soft);
  border: 1px solid #c9e4ee;
  border-radius: 8px;
}

.ykstercih__summary strong {
  font-size: 15px;
}

.ykstercih__summary span {
  color: var(--yk-muted);
  font-size: 14px;
}

.ykstercih__preferences {
  margin: 12px 0 14px;
  background: var(--yk-surface);
  border: 1px solid var(--yk-line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(20, 32, 51, 0.05);
}

.ykstercih__preferences-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--yk-line);
}

.ykstercih__preferences h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.ykstercih__preferences p {
  margin: 3px 0 0;
  color: var(--yk-muted);
  font-size: 13px;
}

.ykstercih__preference-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ykstercih__preference-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--yk-line);
}

.ykstercih__preference-list li:last-child {
  border-bottom: 0;
}

.ykstercih__pref-rank {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--yk-soft);
  color: var(--yk-primary);
  font-size: 13px;
  font-weight: 900;
}

.ykstercih__preference-list strong,
.ykstercih__preference-list small {
  display: block;
}

.ykstercih__preference-list small {
  margin-top: 2px;
  color: var(--yk-muted);
  line-height: 1.35;
}

.ykstercih__pref-actions {
  display: inline-flex;
  gap: 6px;
}

.ykstercih__pref-actions button {
  min-width: 34px;
  min-height: 32px;
  border: 1px solid var(--yk-line);
  border-radius: 6px;
  background: #f7f9fb;
  color: var(--yk-text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.ykstercih__pref-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ykstercih__table-wrap {
  overflow-x: auto;
  background: var(--yk-surface);
  border: 1px solid var(--yk-line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(20, 32, 51, 0.05);
}

.ykstercih__table {
  width: 100%;
  min-width: 1210px;
  border-collapse: collapse;
  font-size: 14px;
}

.ykstercih__table th,
.ykstercih__table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--yk-line);
  text-align: left;
  vertical-align: top;
}

.ykstercih__table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef5f8;
  color: #26384d;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ykstercih__table tr:last-child td {
  border-bottom: 0;
}

.ykstercih__table td strong {
  display: block;
  font-weight: 800;
}

.ykstercih__table td small {
  display: block;
  margin-top: 3px;
  color: var(--yk-muted);
  line-height: 1.35;
}

.ykstercih__pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f0f5ea;
  color: #476616;
  font-size: 12px;
  font-weight: 800;
}

.ykstercih__link {
  min-height: 32px;
  padding: 0 10px;
  background: #eef4f7;
  color: var(--yk-primary);
  font-weight: 800;
  white-space: nowrap;
}

.ykstercih__pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.ykstercih__pager button {
  padding: 0 14px;
  background: var(--yk-surface);
  border-color: var(--yk-line);
  color: var(--yk-primary);
  font-weight: 800;
}

.ykstercih__pager button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ykstercih__dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--yk-text);
}

.ykstercih__dialog::backdrop {
  background: rgba(20, 32, 51, 0.55);
}

.ykstercih__dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--yk-line);
  background: var(--yk-surface);
}

.ykstercih__dialog-head p {
  margin: 0 0 4px;
  color: var(--yk-muted);
  font-size: 13px;
  font-weight: 700;
}

.ykstercih__dialog-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.ykstercih__dialog-head button {
  width: 38px;
  height: 38px;
  background: #f4f6f8;
  color: var(--yk-text);
  font-size: 24px;
  line-height: 1;
}

.ykstercih__table--compact {
  min-width: 780px;
}

@media (max-width: 980px) {
  .ykstercih {
    padding: 16px;
  }

  .ykstercih__header {
    display: grid;
  }

  .ykstercih__mode {
    width: 100%;
  }

  .ykstercih__mode button {
    flex: 1 1 0;
  }

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

  .ykstercih__account {
    display: grid;
  }

  .ykstercih__account form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ykstercih__filters button {
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  .ykstercih {
    padding: 14px;
  }

  .ykstercih h1 {
    font-size: 30px;
  }

  .ykstercih__filters {
    grid-template-columns: 1fr;
  }

  .ykstercih__account form {
    grid-template-columns: 1fr;
  }

  .ykstercih__summary {
    display: grid;
  }

  .ykstercih__preference-list li {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .ykstercih__pref-actions {
    grid-column: 2;
    justify-self: start;
  }

  .ykstercih__pager {
    justify-content: stretch;
  }

  .ykstercih__pager button {
    flex: 1 1 0;
  }
}
+.site-header__inner {
  align-items: center;
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-header__nav a {
  color: #526275;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.site-header__nav a:hover {
  color: #166c8f;
}
.site-header__nav .site-header__profile {
  padding: 10px 14px;
  border: 1px solid #cfe2e9;
  border-radius: 7px;
  background: #eef8fa;
  color: #0f506b;
}
.ykstercih {
  max-width: 1380px;
  margin: 0 auto;
  padding: 42px 0 78px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.ykstercih__header {
  align-items: end;
  margin-bottom: 26px;
}
.ykstercih__eyebrow {
  margin-bottom: 10px;
  color: #16728a;
  font-size: 12px;
  letter-spacing: .08em;
}
.ykstercih h1 {
  max-width: 820px;
  color: #102337;
  font-size: 46px;
  line-height: 1.08;
}
.ykstercih__mode {
  padding: 3px;
  border: 1px solid #cfdbe2;
  border-radius: 7px;
  background: #e9f0f3;
}
.ykstercih__mode button {
  min-height: 40px;
  padding: 0 16px;
}
.ykstercih__mode button.is-active {
  background: #102337;
  box-shadow: 0 3px 8px rgba(16,35,55,.18);
}
.ykstercih__notice {
  max-width: 1120px;
  margin-bottom: 22px;
  border: 1px solid #efd28b;
  border-left: 4px solid #e0a72e;
  border-radius: 7px;
  background: #fff8e7;
  color: #644914;
}
.ykstercih__account {
  min-height: 64px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 8px 22px rgba(20,32,51,.04);
}
.ykstercih__account form {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, .8fr) auto auto;
}
.ykstercih__account button,
.ykstercih__add,
.ykstercih__filters button {
  border-color: #166c8f;
  background: #166c8f;
}
.ykstercih__account button:hover,
.ykstercih__add:hover,
.ykstercih__filters button:hover {
  background: #0f506b;
}
.ykstercih__filters {
  grid-template-columns: minmax(155px, .75fr) minmax(230px, 1.35fr) minmax(230px, 1.25fr) minmax(120px, .7fr) minmax(150px, .8fr) minmax(105px, .6fr) auto;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #d7e1e6;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20,32,51,.06);
}
.ykstercih__filters span {
  color: #526275;
}
.ykstercih__filters input,
.ykstercih__filters select {
  border-color: #cbd7df;
  border-radius: 6px;
  background: #fff;
}
.ykstercih__filters input:focus,
.ykstercih__filters select:focus {
  outline: 3px solid rgba(22,108,143,.16);
  border-color: #166c8f;
}
.ykstercih__summary {
  margin: 0 0 14px;
  padding: 14px 18px;
  border: 1px solid #cfe2e9;
  border-radius: 8px;
  background: #eef8fa;
}
.ykstercih:not(.ykstercih--profile) .ykstercih__preferences {
  display: none;
}
.ykstercih__table-wrap {
  overflow: auto;
  border: 1px solid #d7e1e6;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20,32,51,.06);
}
.ykstercih__table {
  min-width: 1240px;
  font-size: 13px;
}
.ykstercih__table th {
  background: #102337;
  color: #fff;
  border-bottom-color: #102337;
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.ykstercih__table td {
  padding: 13px 12px;
}
.ykstercih__table tbody tr:hover {
  background: #f2f8fa;
}
.ykstercih__table td strong {
  color: #102337;
}
.ykstercih__table td small {
  color: #637083;
}
.ykstercih__pill {
  background: #e7f3f6;
  color: #0f506b;
}
.ykstercih__link {
  border-color: #cfe2e9;
  background: #eef8fa;
  color: #0f506b;
}
.ykstercih__pager {
  justify-content: center;
}
.ykstercih__pager button {
  border-color: #cbd7df;
}
@media (max-width: 980px) {
  .ykstercih {
    padding: 30px 0 60px;
  }
  .ykstercih__filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .site-header__nav a:not(.site-header__profile) {
    display: none;
  }
  .site-header__nav .site-header__profile {
    padding: 8px 10px;
    font-size: 13px;
  }
  .ykstercih {
    padding: 26px 0 48px;
  }
  .ykstercih h1 {
    font-size: 32px;
  }
  .ykstercih__filters {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .ykstercih__account form {
    grid-template-columns: 1fr;
  }
}
