/* Yönetim paneli. Renkler sitenin styles.css'indeki ana renkle aynı tutulur. */
@font-face { font-family: "Rubik"; src: url("/fonts/rubik.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
:root { --brand: #b3131b; --brand-deep: #7a0c12; --ink: #161212; --soft: #5a5350; --line: #e4dfdb; --paper: #f7f5f2; --ok: #1f8a4c; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Rubik", system-ui, sans-serif; font-size: 18px; line-height: 1.5; color: var(--ink); background: var(--paper); }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.top-logo img { height: 34px; width: auto; }
.top-title { font-weight: 700; margin-right: auto; white-space: nowrap; }
.top-logo { margin-right: auto; }
.top-logo + .top-title { margin-left: -4px; }
@media (max-width: 560px) { .top-title { display: none; } }
.top-link { white-space: nowrap; background: none; border: 0; padding: 8px 4px; font-size: 16px; font-weight: 500; color: var(--soft); text-decoration: underline; cursor: pointer; }

.app { max-width: 760px; margin: 0 auto; padding: 20px 16px 120px; }
.loading { text-align: center; color: var(--soft); padding: 60px 0; }
h1 { font-size: 1.7rem; line-height: 1.15; margin: 6px 0 6px; }
h2 { font-size: 1.2rem; margin: 28px 0 10px; }
.lead { color: var(--soft); margin: 0 0 18px; }
.back { display: inline-block; margin-bottom: 8px; font-weight: 600; color: var(--brand); text-decoration: none; padding: 8px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 12px 22px; border-radius: 14px; border: 2px solid transparent; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-danger { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 16px; border-radius: 12px; }

/* giriş */
.login-back { display: block; max-width: 420px; margin: 0 auto; }
.login { max-width: 420px; margin: 5vh auto 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px; text-align: center; }
.login img { height: 56px; margin: 0 auto 14px; }
.login h1 { margin-bottom: 4px; }
.login form { display: grid; gap: 12px; margin-top: 18px; text-align: left; }
.err { color: var(--brand); font-weight: 600; margin: 0; }

label { display: block; font-weight: 600; margin: 16px 0 6px; }
label small { display: block; font-weight: 400; color: var(--soft); font-size: 15px; }
input[type=text], input[type=password], textarea, select { width: 100%; padding: 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); }
textarea { min-height: 150px; resize: vertical; }

/* ana menü */
.tiles { display: grid; gap: 14px; margin-top: 18px; }
.tile { display: flex; align-items: center; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: inherit; }
.tile-ico { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.tile b { display: block; font-size: 1.2rem; }
.tile span span { color: var(--soft); font-size: 16px; }

/* ürün listesi */
.rows { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 14px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: inherit; }
.row img { flex: none; width: 68px; height: 68px; object-fit: cover; border-radius: 12px; background: var(--line); }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; }
.row-main small { color: var(--soft); }
.row-go { color: var(--brand); font-weight: 700; padding-right: 6px; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; margin-left: 6px; vertical-align: middle; }
.tag-new { background: var(--ok); }
.row.is-hidden { opacity: .6; }

/* fotoğraflar */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 620px) { .photos { grid-template-columns: repeat(4, 1fr); } }
.ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--line); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph button { position: absolute; top: 6px; right: 6px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(22, 18, 18, .82); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.ph.off img { opacity: .25; }
.ph.off::after { content: "Kaldırıldı"; position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 13px; font-weight: 700; }
.ph.off button { background: var(--ok); font-size: 15px; }
.ph.busy { display: grid; place-items: center; color: var(--soft); font-size: 14px; }
.cover { display: flex; align-items: center; gap: 14px; }
.cover img { width: 110px; height: 110px; object-fit: cover; border-radius: 14px; background: var(--line); }
.hint { color: var(--soft); font-size: 15px; margin: 8px 0 0; }

.feat { display: grid; gap: 8px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 2px solid var(--line); border-radius: 14px; font-weight: 600; margin: 0; cursor: pointer; }
.check input { width: 26px; height: 26px; accent-color: var(--brand); }

.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.savebar-in { max-width: 728px; margin: 0 auto; display: flex; gap: 10px; }
.savebar .btn { flex: 1; }
.toast { position: fixed; left: 16px; right: 16px; bottom: 96px; z-index: 9; max-width: 520px; margin: 0 auto; padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; text-align: center; }
.toast.bad { background: var(--brand); }
.danger-zone { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }

/* videolar */
.vrows { display: grid; gap: 10px; }
.vrow { display: flex; align-items: center; gap: 12px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.vrow img { flex: none; width: 64px; height: 84px; object-fit: cover; border-radius: 10px; background: var(--ink); }
.vrow-main { flex: 1; min-width: 0; }
.vrow input[type=text] { padding: 12px; }
.vrow-main b { display: block; line-height: 1.3; }
.vrow-main small { color: var(--soft); }
.vrow.off img, .vrow.off b { opacity: .4; }
