/* GölKapı admin shell — Stitch Architectural Suite uyumu */
.architectural-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}
.glass-panel {
  background: rgba(18, 33, 49, 0.72);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.glass-card {
  background: rgba(20, 24, 31, 0.82);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.gk-admin-nav-active {
  border-left: 4px solid #feb700;
  background: rgba(61, 40, 159, 0.2);
  color: #d4e4fa;
  font-weight: 700;
}
.gk-admin-nav-idle {
  color: #c9c4d5;
  font-weight: 500;
}
.gk-admin-nav-idle:hover {
  background: rgba(39, 54, 71, 0.5);
  color: #d4e4fa;
}
.gk-admin-input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background-color: #010f1f !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #d4e4fa !important;
  font-size: 16px;
  line-height: 1.45;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-text-fill-color: #d4e4fa;
}
input.gk-admin-input,
textarea.gk-admin-input,
select.gk-admin-input {
  color-scheme: dark;
}
textarea.gk-admin-input {
  resize: vertical;
}
.gk-admin-input:focus {
  border-color: rgba(200, 191, 255, 0.55) !important;
  box-shadow: 0 0 0 1px rgba(200, 191, 255, 0.35) !important;
}
.gk-admin-input.gk-field-invalid {
  border-color: rgba(255, 82, 82, 0.95) !important;
  box-shadow: 0 0 0 1px rgba(255, 82, 82, 0.55) !important;
}
.gk-admin-input.gk-field-invalid:focus {
  border-color: rgba(255, 130, 130, 1) !important;
  box-shadow: 0 0 0 2px rgba(255, 82, 82, 0.35) !important;
}
.gk-color-dot {
  align-self: stretch;
  width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.14) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.14) 75%);
  background-color: #010f1f;
  background-size: 0.6rem 0.6rem;
  background-position: 0 0, 0 0.3rem, 0.3rem -0.3rem, -0.3rem 0;
  box-shadow: 0 0 0 1px rgba(1, 15, 31, 0.85);
}
.gk-admin-input::placeholder {
  color: rgba(146, 143, 158, 0.75) !important;
  opacity: 1;
}
.gk-admin-input:-webkit-autofill,
.gk-admin-input:-webkit-autofill:hover,
.gk-admin-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #d4e4fa !important;
  box-shadow: 0 0 0 1000px #010f1f inset !important;
  transition: background-color 9999s ease-out;
}
.gk-admin-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #928f9e;
  margin-bottom: 0.5rem;
}
.gk-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  background: #feb700;
  color: #271900;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
.gk-btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(254, 183, 0, 0.45), 0 4px 24px rgba(254, 183, 0, 0.12);
}
.gk-btn-primary:focus-visible {
  outline: 2px solid #c8bfff;
  outline-offset: 2px;
}
.gk-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #d4e4fa;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.gk-btn-ghost:hover {
  background: rgba(39, 54, 71, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}
.gk-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(1, 15, 31, 0.8);
  color: #c9c4d5;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.gk-btn-icon:hover {
  background: rgba(61, 40, 159, 0.35);
  color: #d4e4fa;
  border-color: rgba(200, 191, 255, 0.25);
}
.gk-btn-icon--danger:hover {
  background: rgba(147, 0, 10, 0.35);
  color: #ffb4ab;
  border-color: rgba(255, 180, 171, 0.3);
}
.glass-card-pad {
  border-radius: 0.75rem;
  padding: 1.5rem;
}
.gk-hero-form-shell {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(18, 33, 49, 0.55) 0%, rgba(1, 15, 31, 0.72) 100%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.gk-hero-form-section {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(1, 15, 31, 0.35);
  padding: 1.25rem 1.25rem 1.35rem;
}
@media (min-width: 1024px) {
  .gk-hero-form-section {
    padding: 1.35rem 1.5rem 1.5rem;
  }
}
.gk-hero-form-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #928f9e;
}
.gk-hero-form-section-title .material-symbols-outlined {
  font-size: 1.125rem;
  color: #feb700;
  opacity: 0.95;
}
/* CTA: iki alan her zaman yan yana (dar ekranda da 2 sütun, minmax taşmayı önler) */
.gk-hero-cta-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}
.gk-hero-cta-grid .gk-admin-input {
  min-height: 3.125rem;
  box-sizing: border-box;
}
input.gk-admin-input.gk-hero-cta-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 16px;
  line-height: 1.45;
}
.gk-hero-subtitle-wrap {
  position: relative;
}
.gk-hero-subtitle-wrap .gk-hero-subtitle-textarea {
  padding-right: 4.5rem;
  padding-bottom: 2rem;
}
.gk-hero-subtitle-count {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  z-index: 1;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #928f9e;
  pointer-events: none;
  user-select: none;
  background: rgba(1, 15, 31, 0.88);
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.gk-hero-subtitle-count--warn {
  color: #feb700;
  border-color: rgba(254, 183, 0, 0.35);
}
.gk-hero-preview-frame {
  aspect-ratio: 16 / 10;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #010f1f;
  overflow: hidden;
}
.gk-hero-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gk-hero-dropzone {
  position: relative;
  display: flex;
  min-height: 8.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 0.75rem;
  background: rgba(1, 15, 31, 0.5);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.gk-hero-dropzone:hover,
.gk-hero-dropzone:focus-within {
  border-color: rgba(254, 183, 0, 0.45);
  background: rgba(18, 33, 49, 0.55);
}
.gk-hero-dropzone.gk-hero-dropzone--active {
  border-color: #feb700;
  box-shadow: 0 0 0 1px rgba(254, 183, 0, 0.25);
  background: rgba(61, 40, 159, 0.15);
}
.gk-hero-dropzone input[type='file'] {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}
.gk-hero-dropzone-hint {
  font-size: 0.8125rem;
  color: #928f9e;
  max-width: 16rem;
  line-height: 1.4;
}
.gk-hero-clear-file {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #c9c4d5;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem 0;
}
.gk-hero-clear-file:hover {
  color: #feb700;
}

/* Hero listesi — silme onay modali */
.gk-hero-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.gk-hero-delete-modal[hidden] {
  display: none !important;
}
.gk-hero-delete-modal__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(5px);
}
.gk-hero-delete-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 24, 31, 0.98);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  padding: 1.35rem 1.5rem 1.5rem;
}
.gk-hero-delete-modal__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #d4e4fa;
}
.gk-hero-delete-modal__body {
  margin: 0.85rem 0 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #d4e4fa;
}
.gk-hero-delete-modal__hint {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #928f9e;
}
.gk-hero-delete-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin: 0;
}
.gk-hero-delete-modal__confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 1px solid rgba(255, 180, 171, 0.4);
  background: rgba(147, 0, 10, 0.5);
  color: #ffb4ab;
  transition: background 0.15s, border-color 0.15s;
}
.gk-hero-delete-modal__confirm:hover {
  background: rgba(180, 20, 30, 0.55);
  border-color: rgba(255, 180, 171, 0.55);
}
.gk-hero-delete-modal__confirm:focus-visible {
  outline: 2px solid #ffb4ab;
  outline-offset: 2px;
}

/* Hero listesi — sürükle-bırak sıralama */
.gk-hero-drag-handle {
  cursor: grab;
  touch-action: none;
}
.gk-hero-drag-handle:active {
  cursor: grabbing;
}
.gk-hero-sort-ghost {
  opacity: 0.55;
}
.gk-hero-sort-ghost td {
  background: rgba(18, 33, 49, 0.75) !important;
}
.gk-hero-sort-drag {
  opacity: 0.95;
}

/* Kategoriler — seviye ve hiyerarşi (ana / alt) */
.gk-cat-table tbody tr.gk-cat-row--root > td {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.gk-cat-table tbody tr.gk-cat-row--alt > td {
  background: rgba(8, 16, 32, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.gk-cat-level-ana {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f0c94a 0%, #c9a227 55%, #a8861f 100%);
  color: #141008;
  box-shadow: 0 2px 10px rgba(201, 162, 39, 0.4);
}
.gk-cat-level-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(55, 72, 108, 0.65);
  color: rgba(230, 236, 252, 0.95);
  border: 1px solid rgba(110, 132, 178, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.gk-cat-name--alt {
  margin-top: 0.125rem;
  padding-left: 1rem;
  margin-left: 0.25rem;
  border-left: 3px solid rgba(201, 162, 39, 0.75);
}
.gk-cat-parent-ref {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(201, 162, 39, 0.92);
  letter-spacing: 0.01em;
}
.gk-cat-updated {
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  color: rgba(201, 198, 213, 0.72);
}
.gk-cat-table thead th:first-child {
  width: 7.5rem;
}
