@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root { --forest:#063f31; --forest-2:#0a5943; --red:#d7192d; --gold:#e7b84b; --lime:#dce9b4; --paper:#f4f5f1; --white:#fff; --ink:#15231e; --muted:#68756f; --line:#dde1dc; --shadow:0 18px 55px rgba(6,63,49,.09); --radius:18px; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font:14px/1.55 'Manrope',sans-serif; -webkit-font-smoothing:antialiased; }
a { color:var(--forest-2); }
button,input,textarea,select { font:inherit; }
.admin-top { position:sticky; top:0; z-index:20; height:82px; display:flex; align-items:center; justify-content:space-between; padding:0 28px; border-bottom:1px solid rgba(6,63,49,.09); background:rgba(255,255,255,.92); backdrop-filter:blur(16px); }
.admin-top>a { display:flex; align-items:center; gap:15px; color:var(--ink); text-decoration:none; }
.admin-top img { width:82px; height:64px; object-fit:contain; }
.admin-top strong { font-size:.86rem; }
.admin-layout { display:grid; grid-template-columns:240px 1fr; min-height:calc(100vh - 82px); }
.admin-nav { position:sticky; top:82px; align-self:start; height:calc(100vh - 82px); display:flex; flex-direction:column; padding:22px 14px; background:#082c22; }
.admin-nav:before { content:'DOĞSAR YÖNETİM'; margin:4px 14px 18px; color:rgba(255,255,255,.36); font-size:.62rem; font-weight:800; letter-spacing:.14em; }
.admin-nav a { display:flex; align-items:center; min-height:43px; margin-bottom:4px; padding:10px 14px; border-radius:11px; color:rgba(255,255,255,.72); text-decoration:none; font-size:.78rem; font-weight:700; transition:background .2s ease,color .2s ease; }
.admin-nav a:hover { background:rgba(255,255,255,.09); color:var(--white); }
.admin-nav a:nth-last-child(2) { margin-top:auto; }
.admin-nav a:last-child { color:#ffb5bd; }
.admin-main { min-width:0; padding:38px clamp(24px,4vw,58px) 70px; }
.admin-heading { display:flex; align-items:center; justify-content:space-between; gap:25px; margin-bottom:28px; }
.admin-heading span { color:var(--red); font-size:.66rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.admin-heading h1 { margin:5px 0 0; font:700 clamp(2.1rem,3vw,3rem)/1 'Fraunces',serif; letter-spacing:-.035em; }
.admin-button { display:inline-flex; align-items:center; justify-content:center; min-height:43px; border:1px solid var(--forest); border-radius:999px; background:var(--forest); color:var(--white)!important; padding:10px 18px; text-decoration:none; font-size:.78rem; font-weight:800; cursor:pointer; transition:transform .2s ease,background .2s ease; }
.admin-button:hover { transform:translateY(-1px); background:var(--forest-2); }
.admin-button.large { min-height:49px; padding-inline:25px; }
.admin-toggle { display:none; border:0; border-radius:11px; background:var(--forest); color:var(--white); padding:10px 14px; font-weight:800; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:24px; }
.stats article { position:relative; overflow:hidden; min-height:145px; padding:23px; border:1px solid var(--line); border-radius:var(--radius); background:var(--white); box-shadow:0 1px 0 rgba(255,255,255,.8) inset; }
.stats article:after { content:''; position:absolute; right:-24px; bottom:-34px; width:90px; height:90px; border:1px solid rgba(6,63,49,.08); border-radius:50%; box-shadow:0 0 0 20px rgba(6,63,49,.025); }
.stats span { display:block; color:var(--muted); font-size:.72rem; font-weight:700; }
.stats strong { display:block; margin-top:24px; color:var(--forest); font:700 2rem/1 'Fraunces',serif; }
.panel { margin-bottom:22px; padding:25px; border:1px solid var(--line); border-radius:var(--radius); background:var(--white); box-shadow:var(--shadow); }
.panel h2 { margin:0 0 20px; font:600 1.5rem 'Fraunces',serif; }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.panel-head a { font-size:.75rem; font-weight:800; }
.table-wrap { overflow:auto; margin-inline:-8px; }
table { width:100%; border-collapse:collapse; white-space:nowrap; }
th,td { padding:14px 12px; border-bottom:1px solid #e8eae7; text-align:left; }
th { color:var(--muted); font-size:.64rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
td { font-size:.78rem; }
tbody tr { transition:background .15s ease; }
tbody tr:hover { background:#f8faf7; }
tbody tr:last-child td { border-bottom:0; }
.status { display:inline-flex; padding:5px 9px; border-radius:999px; background:#e3f0e8; color:var(--forest); font-size:.68rem; font-weight:800; }
.actions { display:flex; align-items:center; gap:13px; }
.actions form { display:inline; }
.actions a,.actions button { border:0; background:none; color:var(--forest-2); padding:0; font-size:.73rem; font-weight:800; text-decoration:underline; cursor:pointer; }
.actions button { color:var(--red); }
.admin-form label,.content-form label { display:block; margin-bottom:17px; color:#33423c; font-size:.75rem; font-weight:800; }
input,textarea,select { width:100%; margin-top:7px; padding:11px 13px; border:1px solid #cfd4cf; border-radius:11px; background:#fdfdfb; color:var(--ink); transition:border .2s ease,box-shadow .2s ease; }
input:focus,textarea:focus,select:focus { outline:none; border-color:var(--forest-2); box-shadow:0 0 0 4px rgba(10,89,67,.1); }
small { display:block; margin-top:5px; color:var(--muted); font-size:.67rem; }
.check { display:flex!important; align-items:center; gap:9px; }
.check input { width:auto; margin:0; }
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:0 18px; }
.notice { margin-bottom:18px; padding:13px 16px; border:1px solid transparent; border-radius:12px; font-size:.78rem; font-weight:700; }
.notice-success { background:#e4f5e9; border-color:#b9e1c3; color:#165c35; }
.notice-error { background:#fde8ea; border-color:#f5bec5; color:#951a28; }
.filters { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:20px; }
.filters a { padding:8px 12px; border:1px solid var(--line); border-radius:999px; background:var(--white); color:var(--muted); text-decoration:none; font-size:.7rem; font-weight:800; }
.filters a.active { border-color:var(--forest); background:var(--forest); color:var(--white); }
.order-grid { display:grid; grid-template-columns:1.35fr .65fr; gap:20px; }
.status-form { display:flex; align-items:end; gap:12px; margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
.status-form label { flex:1; }
.info-list dt { margin-top:15px; color:var(--muted); font-size:.62rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.info-list dd { margin:3px 0; font-size:.8rem; }
.content-form fieldset { margin:0; padding:22px 0; border:0; border-top:1px solid var(--line); }
.content-form legend { padding-right:12px; color:var(--forest); font-weight:800; }
.current-image { display:flex; align-items:center; gap:14px; margin:0 0 18px; padding:12px; border:1px solid var(--line); border-radius:13px; background:#f8faf7; color:var(--muted); font-size:.7rem; font-weight:800; }
.current-image img { width:90px; height:65px; border-radius:9px; object-fit:cover; }
.gallery-admin-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.gallery-admin-grid article { overflow:hidden; border:1px solid var(--line); border-radius:15px; background:#fafbf9; }
.gallery-admin-grid article>img { width:100%; height:190px; object-fit:cover; }
.gallery-admin-grid article>div { padding:17px; }
.gallery-admin-grid article span { color:var(--forest-2); font-size:.62rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.gallery-admin-grid article h2 { margin:7px 0 5px; font-size:1.15rem; }
.gallery-admin-grid article p { min-height:38px; margin:0 0 14px; color:var(--muted); font-size:.72rem; }
.admin-empty { padding:35px 15px; text-align:center; }
.admin-empty h2 { margin-bottom:7px; }
.admin-empty p { margin:0; color:var(--muted); }

.login-page { min-height:100vh; display:grid; place-items:center; padding:24px; background:#082c22; }
.login-page:before,.login-page:after { content:''; position:fixed; border:1px solid rgba(255,255,255,.08); border-radius:50%; pointer-events:none; }
.login-page:before { width:440px; height:440px; left:-220px; bottom:-180px; box-shadow:0 0 0 80px rgba(255,255,255,.018); }
.login-page:after { width:320px; height:320px; right:-130px; top:-150px; box-shadow:0 0 0 60px rgba(220,233,180,.025); }
.login-card { position:relative; z-index:1; width:min(430px,100%); padding:38px; border:1px solid rgba(255,255,255,.55); border-radius:24px; background:rgba(255,255,255,.97); box-shadow:0 30px 100px rgba(0,0,0,.3); }
.login-card img { width:155px; height:112px; margin:auto; object-fit:contain; }
.login-card h1 { margin:12px 0 5px; text-align:center; font:700 2.1rem 'Fraunces',serif; }
.login-card>p { margin:0 0 27px; color:var(--muted); text-align:center; font-size:.78rem; }
.login-card label { display:block; margin-bottom:16px; font-size:.75rem; font-weight:800; }
.login-card .admin-button { width:100%; margin:3px 0 18px; }
.login-card>a { display:block; text-align:center; font-size:.72rem; font-weight:800; }
.login-card .notice { text-align:left; }

@media(max-width:1000px) {
  .stats { grid-template-columns:repeat(2,1fr); }
  .order-grid { grid-template-columns:1fr; }
  .gallery-admin-grid { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:820px) {
  .admin-layout { grid-template-columns:1fr; }
  .admin-nav { display:none; position:fixed; left:12px; right:12px; top:88px; z-index:19; height:auto; max-height:calc(100vh - 100px); overflow:auto; border-radius:16px; box-shadow:0 18px 55px rgba(0,0,0,.25); }
  .admin-nav.open { display:flex; }
  .admin-nav a:nth-last-child(2) { margin-top:10px; }
  .admin-toggle { display:block; }
  .admin-main { padding:28px 20px 55px; }
}
@media(max-width:560px) {
  .admin-top { height:72px; padding-inline:16px; }
  .admin-top img { width:68px; height:52px; }
  .admin-nav { top:78px; }
  .admin-heading { align-items:flex-start; flex-direction:column; }
  .admin-heading h1 { font-size:2.1rem; }
  .admin-heading>.admin-button { width:100%; }
  .stats,.form-grid { grid-template-columns:1fr; }
  .stats article { min-height:120px; }
  .panel { padding:18px; }
  .status-form { align-items:stretch; flex-direction:column; }
  .admin-button { width:100%; }
  .login-card { padding:28px 22px; }
  .gallery-admin-grid { grid-template-columns:1fr; }
}
