/* Yönetim paneli: sitenin düzenini (style.css) kullanır; burada yalnızca düzenlenebilir alanların görünümü var. */
.brand-admin {
  font-weight: 500;
  color: var(--muted);
  opacity: 0.75;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-left: auto;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.topbar .brand {
  margin-right: 0;
}

.muted {
  color: var(--muted);
}

.login {
  max-width: 420px;
  margin: 10vh auto 0;
  text-align: center;
}

.login h1 {
  margin: 0 0 var(--s2);
  font-size: 2.25rem;
  letter-spacing: -0.03em;
}

.login-error {
  color: #e5484d;
}

/* Hayalet alanlar: düz metin gibi durur, üstüne gelince ya da odaklanınca alan olduğu belli olur. */
.ghost,
.ghost-select {
  width: 100%;
  min-width: 0;
  padding: 4px 8px;
  margin: 0 -8px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  transition: border-color 0.15s, background-color 0.15s;
}

.ghost:hover,
.ghost-select:hover {
  border-color: var(--line);
}

.ghost:focus,
.ghost-select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.ghost::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

textarea.ghost {
  resize: vertical;
  field-sizing: content;
  min-height: 2.6em;
}

.h1-input {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

input.page-tagline {
  margin-top: 2px;
}

.page-head-text {
  flex: 1;
  min-width: 0;
}

.page-head-text .page-meta {
  flex-wrap: nowrap;
}

.page-meta .ghost {
  flex: 1;
  margin: 0;
}

.ghost-select.status {
  width: auto;
  margin: 0;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.mono-input {
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.strong {
  font-weight: 600;
}

.small {
  font-size: var(--fs-xs);
  color: var(--muted);
}

textarea.page-summary {
  display: block;
  margin-top: var(--s5);
}

.edit-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  margin-bottom: var(--s5);
  font-size: var(--fs-sm);
}

.edit-toolbar .text-link {
  margin: 0 0 0 auto;
}

.danger-text {
  color: #e5484d;
}

.mini {
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.mini:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--line-strong);
}

.mini:disabled {
  opacity: 0.35;
  cursor: default;
}

.mini-danger:hover:not(:disabled) {
  color: #e5484d;
  border-color: #e5484d;
}

.add-btn {
  margin-top: var(--s2);
  padding: 6px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-pill);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: var(--fs-sm);
  cursor: pointer;
}

.add-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

.edit-list li {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding-left: 20px;
}

.edit-list li::before {
  top: 50%;
  transform: translateY(-50%);
}

.edit-list .ghost {
  margin: 0;
}

.links-edit {
  align-items: center;
}

.link-edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
}

.link-edit .ghost {
  width: 11em;
  margin: 0;
  padding: 2px 6px;
}

.link-edit .ghost:first-child {
  width: 9em;
  font-weight: 600;
}

.edit-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edit-card .ghost {
  margin: 0;
}

.edit-card-head {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.edit-card-tools {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
}

.release-head .ghost {
  width: auto;
  flex: 1;
}

.release-version-input {
  max-width: 7rem;
  font-family: var(--mono);
  color: var(--accent);
}

.release .edit-list {
  margin-top: var(--s2);
  font-size: var(--fs-sm);
}

.edit-stack {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.edit-stack .edit-card {
  padding: var(--s3) var(--s4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.edit-stack .ghost-select {
  width: auto;
  margin: 0;
}

.edit-inline {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.edit-inline .ghost {
  width: 14em;
  margin: 0;
}

.page-main h2 small {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0;
}

.side-facts .ghost,
.side-facts .ghost-select {
  margin: 0;
  padding: 3px 6px;
}

.slug-row {
  display: flex;
  align-items: center;
  width: 100%;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.slug-row .ghost {
  color: var(--text);
}

.color-row {
  display: flex;
  align-items: center;
  gap: var(--s2);
  width: 100%;
}

.color-row input[type="color"] {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: none;
  cursor: pointer;
}

.field-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.check {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s3);
  font-size: var(--fs-sm);
}

.rail-left .add-btn {
  margin-top: 0;
}

.setup-steps li {
  margin-bottom: 6px;
}

.rules-box {
  position: relative;
  margin: var(--s3) 0;
}

.rules-box pre {
  margin: 0;
  padding: var(--s4);
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.rules-box .btn {
  position: absolute;
  top: 8px;
  right: 8px;
}

.admin-savebar {
  position: fixed;
  left: 50%;
  bottom: var(--s4);
  z-index: 20;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: min(560px, calc(100% - 32px));
  padding: 10px 10px 10px 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-size: var(--fs-sm);
}

.admin-savebar span {
  margin-right: auto;
}

.admin-savebar[hidden] {
  display: none;
}

#admin {
  padding-bottom: 120px;
}

.ghost-select.status-live {
  color: var(--live);
  background: var(--live-soft);
}

.ghost-select.status-dev {
  color: var(--dev);
  background: var(--dev-soft);
}

.ghost-select.status-idea {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Bildirim, kaydetme çubuğunun üstünde dursun. */
.toast {
  bottom: 88px;
}

.access-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.access-add {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s3);
  max-width: 420px;
}

.access-add .ghost {
  margin: 0;
  border-color: var(--line-strong);
}

.setup-details {
  margin-top: var(--s6);
  text-align: left;
}

.setup-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.rail-count {
  margin-left: auto;
  min-width: 20px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: #e5484d;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.attempt {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.attempt.is-new {
  border-color: var(--dev);
}

.attempt-main {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-width: 0;
}

.attempt-main img,
.attempt-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
}

.small-text {
  font-size: var(--fs-xs);
}
