/* ═══════════════════════════════════════════════════════════════════════════
   Yol Yardım — Unified CSS (Public + Admin)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --brand:        #E65100;
  --brand-light:  #FF8A50;
  --brand-dark:   #BF360C;
  --blue:         #1565C0;
  --green:        #2E7D32;

  /* Admin sidebar */
  --sidebar-bg:   #1a1f2e;
  --sidebar-w:    240px;
  --sidebar-item-hover: #252d3d;
  --sidebar-item-active: #E65100;

  /* Neutral */
  --bg:        #f4f6fb;
  --surface:   #ffffff;
  --border:    #e2e8f0;
  --text:      #1e293b;
  --muted:     #64748b;

  /* Admin topbar */
  --topbar-h: 60px;

  /* Radius / shadow */
  --r:   10px;
  --r-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.12);
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ── Utility ─────────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mt-16 { margin-top: 16px; }

/* ═══════════════════════ PUBLIC LAYOUT ═══════════════════════════════════════ */

/* ── Public Header ────────────────────────────────────────────────────────────── */
.public-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.public-header .container {
  height: 64px;
  display: flex; align-items: center; gap: 32px;
}
.public-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--brand);
  white-space: nowrap;
}
.public-logo .material-icons-round { font-size: 26px; }
.public-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.public-nav a {
  padding: 7px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: background .15s, color .15s;
}
.public-nav a:hover, .public-nav a.active { background: #f1f5f9; color: var(--text); }
.public-nav .btn-nav-login, .public-nav .btn-nav-admin {
  background: var(--brand); color: #fff;
  display: flex; align-items: center; gap: 6px;
}
.public-nav .btn-nav-login:hover, .public-nav .btn-nav-admin:hover { background: var(--brand-dark); }

.public-mobile-menu { display: none; background: none; border: none; padding: 6px; }
.public-mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--border); background: var(--surface); }
.public-mobile-nav a { padding: 14px 20px; border-bottom: 1px solid var(--border); font-weight: 500; }
.public-mobile-nav.open { display: flex; }

/* ── Public Main ─────────────────────────────────────────────────────────────── */
.public-main { min-height: calc(100vh - 64px - 240px); }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, var(--brand-light) 100%);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; }
.hero p { font-size: 18px; opacity: .88; max-width: 560px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-btn { padding: 13px 28px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; }
.hero-btn-primary { background: #fff; color: var(--brand); }
.hero-btn-primary:hover { background: #f1f5f9; }
.hero-btn-secondary { background: rgba(255,255,255,.15); color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.hero-btn-secondary:hover { background: rgba(255,255,255,.25); }

/* ── Section ─────────────────────────────────────────────────────────────────── */
.section { padding: 56px 0; }
.section-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.section-subtitle { color: var(--muted); margin-bottom: 36px; }

/* ── Category Grid (Public) ──────────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.cat-card {
  border-radius: var(--r-lg);
  padding: 22px 18px;
  color: #fff;
  display: flex; flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  position: relative; overflow: hidden;
}
.cat-card::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background .2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card:hover::after { background: rgba(0,0,0,.06); }
.cat-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.cat-icon .material-icons-round { font-size: 26px; color: #fff; }
.cat-name { font-size: 14px; font-weight: 600; line-height: 1.4; }
.cat-arrow { margin-top: auto; opacity: .6; font-size: 18px; }

/* ── Article List (Public) ───────────────────────────────────────────────────── */
.article-list { display: flex; flex-direction: column; gap: 12px; }
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
  text-decoration: none; color: inherit;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.article-accent { width: 4px; min-height: 52px; border-radius: 4px; flex-shrink: 0; }
.article-info { flex: 1; }
.article-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.article-meta { display: flex; gap: 12px; color: var(--muted); font-size: 12px; }
.article-meta span { display: flex; align-items: center; gap: 4px; }
.article-meta .material-icons-round { font-size: 14px; }
.article-chevron { color: #cbd5e1; }

/* ── Article Detail (Public) ─────────────────────────────────────────────────── */
.article-detail-hero {
  padding: 48px 0 36px;
  border-radius: 0 0 24px 24px;
  color: #fff;
  margin-bottom: 32px;
}
.article-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: .8; margin-bottom: 16px; }
.article-breadcrumb a { color: rgba(255,255,255,.85); }
.article-breadcrumb a:hover { color: #fff; }
.article-detail-title { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; max-width: 700px; }
.article-detail-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.article-cat-badge {
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px; padding: 4px 12px; font-size: 12px; font-weight: 500;
}

.article-body { max-width: 780px; }
.content-section { margin-bottom: 36px; }
.content-section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--border);
}
.content-section-title .material-icons-round { font-size: 20px; }

.note-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px;
  background: #f8fafc; border-radius: 10px;
  border-left: 3px solid var(--brand);
  margin-bottom: 8px;
}
.note-num {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0; color: #fff;
}
.note-text { font-size: 13.5px; line-height: 1.6; }

.step-list { position: relative; }
.step-item { display: flex; gap: 16px; margin-bottom: 16px; }
.step-indicator { display: flex; flex-direction: column; align-items: center; width: 36px; }
.step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.step-line { width: 2px; flex: 1; min-height: 16px; margin: 4px 0; opacity: .25; }
.step-text { padding-top: 8px; font-size: 14px; line-height: 1.6; }

.weburl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  text-decoration: none; transition: background .15s;
}
.weburl-btn:hover { background: var(--brand-dark); }

/* ── Lang Switcher (Public) ──────────────────────────────────────────────────── */
.lang-switcher { display: flex; gap: 6px; }
.lang-btn {
  padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--surface);
  cursor: pointer; transition: background .15s;
}
.lang-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── Info Cards (Homepage) ───────────────────────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px; text-align: center;
  box-shadow: var(--shadow);
}
.info-card .material-icons-round { font-size: 40px; margin-bottom: 12px; }
.info-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.info-card p { font-size: 13px; color: var(--muted); }

/* ── App Download Banner ────────────────────────────────────────────────────── */
.app-banner {
  background: linear-gradient(135deg, #1a1f2e 0%, #2d3561 100%);
  border-radius: 20px; padding: 40px; color: #fff;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.app-banner-text { flex: 1; min-width: 240px; }
.app-banner-text h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.app-banner-text p { opacity: .75; font-size: 14px; }
.app-banner-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.app-store-btn {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 10px; padding: 10px 18px; color: #fff; cursor: pointer;
  transition: background .15s; text-decoration: none;
}
.app-store-btn:hover { background: rgba(255,255,255,.18); }
.app-store-btn .material-icons-round { font-size: 28px; }
.app-store-info small { display: block; font-size: 10px; opacity: .7; }
.app-store-info strong { font-size: 14px; font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.public-footer { background: #1a1f2e; color: #c8d0e0; padding: 48px 0 24px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand .material-icons-round { color: var(--brand-light); }
.public-footer p { font-size: 13px; line-height: 1.7; opacity: .7; }
.public-footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.public-footer ul { list-style: none; }
.public-footer ul li { margin-bottom: 8px; }
.public-footer ul a { font-size: 13px; opacity: .7; transition: opacity .15s; }
.public-footer ul a:hover { opacity: 1; }
.store-badges { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.badge-store {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px; padding: 6px 14px; font-size: 12px; font-weight: 600;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; font-size: 12px; opacity: .5; }

/* ═══════════════════════ ADMIN LAYOUT ════════════════════════════════════════ */

.admin-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w); background: var(--sidebar-bg);
  color: #c8d0e0; position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 200; display: flex; flex-direction: column;
  transition: transform .25s ease; overflow-y: auto;
}
.sidebar-header {
  padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: #fff; }
.sidebar-logo .material-icons-round { color: var(--brand-light); font-size: 24px; }
.sidebar-close { display: none; background: none; border: none; color: #8896a8; padding: 4px; }

.sidebar-nav { flex: 1; padding: 10px 0; }
.nav-group { margin-bottom: 4px; }
.nav-group-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #3d4a5c; padding: 8px 16px 4px; display: block; }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; margin: 1px 8px;
  border-radius: 8px; color: #8896a8; font-weight: 500;
  transition: background .15s, color .15s; cursor: pointer;
}
.nav-link .material-icons-round { font-size: 20px; }
.nav-link:hover { background: var(--sidebar-item-hover); color: #e2e8f0; }
.nav-link.active { background: var(--brand); color: #fff; }

.sidebar-footer {
  padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-user-email { font-size: 12px; color: #8896a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.btn-logout { background: none; border: none; color: #8896a8; display: flex; align-items: center; padding: 4px; }
.btn-logout:hover { color: #f87171; }

/* ── Admin Main ──────────────────────────────────────────────────────────────── */
.admin-main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar {
  height: var(--topbar-h); background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow);
}
.topbar-menu-btn { display: none; background: none; border: none; padding: 4px; }
.topbar-title { font-size: 17px; font-weight: 600; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.admin-content { padding: 24px; flex: 1; }

/* ── Alerts ──────────────────────────────────────────────────────────────────── */
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; font-size: 14px; font-weight: 500; }
.alert .material-icons-round { font-size: 18px; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Admin Cards ────────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.card-header { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 14px; font-weight: 600; }
.card-body { padding: 20px; }

/* ── Stats ───────────────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); }
.stat-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.stat-icon .material-icons-round { font-size: 22px; color: #fff; }
.stat-icon.blue   { background: #3b5bdb; }
.stat-icon.green  { background: #2f9e44; }
.stat-icon.orange { background: #f08c00; }
.stat-icon.red    { background: #e03131; }
.stat-value { font-size: 26px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ── Table ───────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead { background: #f8fafc; }
th { text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafbff; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 7px; font-size: 13px; font-weight: 500; border: none; cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s; white-space: nowrap; }
.btn-primary   { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-success   { background: #2f9e44; color: #fff; }
.btn-success:hover { background: #27813a; }
.btn-danger    { background: #e03131; color: #fff; }
.btn-danger:hover  { background: #c92a2a; }
.btn-secondary { background: #f1f5f9; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #e2e8f0; }
.btn-sm  { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 6px; border-radius: 6px; }

/* ── Badges ──────────────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info    { background: #dbeafe; color: #1e40af; }

/* ── Forms ───────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.form-required { color: #e03131; margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: 7px;
  font-size: 14px; font-family: inherit; color: var(--text);
  background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(230,81,0,.12);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint  { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-error { font-size: 12px; color: #e03131; margin-top: 4px; }
.form-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 16px; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; }

/* ── Tabs ────────────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn { padding: 8px 16px; border: none; background: none; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .15s, border-color .15s; }
.tab-btn.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Dynamic lists ───────────────────────────────────────────────────────────── */
.dynamic-list { display: flex; flex-direction: column; gap: 6px; }
.dynamic-item { display: flex; gap: 6px; align-items: flex-start; }
.dynamic-item .form-input { flex: 1; }
.btn-remove-item { background: #fee2e2; color: #e03131; border: none; cursor: pointer; border-radius: 6px; padding: 8px; display: flex; align-items: center; transition: background .15s; }
.btn-remove-item:hover { background: #e03131; color: #fff; }

/* ── Color picker ────────────────────────────────────────────────────────────── */
.color-wrap { display: flex; align-items: center; gap: 8px; }
.color-swatch { width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; flex-shrink: 0; }

/* ── Search ──────────────────────────────────────────────────────────────────── */
.search-wrap { position: relative; max-width: 280px; }
.search-wrap .material-icons-round { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; pointer-events: none; }
.search-wrap .form-input { padding-left: 36px; }

/* ── Login ───────────────────────────────────────────────────────────────────── */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a1f2e 0%, #2d3561 100%); padding: 24px; }
.login-card { background: var(--surface); border-radius: 20px; padding: 40px; width: 100%; max-width: 400px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.4); }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .material-icons-round { font-size: 52px; color: var(--brand); }
.login-logo h1 { font-size: 22px; font-weight: 700; margin-top: 8px; }
.login-logo p  { color: var(--muted); font-size: 13px; }

/* ── Pagination ──────────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 24px; }
.page-btn { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--text); transition: background .15s; }
.page-btn:hover, .page-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .admin-main { margin-left: 0; }
  .topbar-menu-btn { display: flex; }
  .sidebar-close { display: flex; }
}
@media (max-width: 640px) {
  .public-nav { display: none; }
  .public-mobile-menu { display: flex; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
}

/* ═══════════════════════ PANO PUBLIC ADDITIONS ═══════════════════════════════ */

/* Type badge inline helper */
.type-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600; border-width: 1px; border-style: solid;
}

/* Leaflet map overrides */
.leaflet-container { font-family: 'Inter', system-ui, sans-serif; }
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
}
.leaflet-popup-content { margin: 10px 14px !important; }

/* Spot grid responsive */
@media (max-width: 900px) {
  .spot-row { grid-template-columns: 1fr !important; }
}

/* Photo lightbox */
#photoModal { cursor: zoom-out; }
#photoModal img { border-radius: 10px; box-shadow: 0 24px 48px rgba(0,0,0,.6); }

/* Map pick crosshair */
#pickMap { transition: border-color .2s; }
#pickMap.has-marker { border-color: var(--brand) !important; }

/* Create spot type grid responsive */
@media (max-width: 900px) {
  .type-grid { grid-template-columns: repeat(2, 1fr) !important; }
  form > div[style*="grid-template-columns:1fr 380px"] {
    grid-template-columns: 1fr !important;
  }
  #pickMap { height: 280px !important; }
}

/* Admin user create password strength */
#pwStrengthBar, #pwBar { transition: width .3s, background .3s; }

/* Admin Users table avatar */
.user-avatar-sm {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}

/* Public Pano spot card hover */
.pano-card {
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
}
.pano-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Danger zone card */
.danger-zone {
  border-color: #fee2e2 !important;
}
.danger-zone .card-header {
  background: #fff5f5 !important;
}