/* ZerOne — Admin panel + modal styles */

/* social link in footer */
.social-link {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.12); color: #9fb4d4;
  transition: all .25s ease;
}
.social-link:hover { border-color: rgba(39,242,242,.5); color: #27f2f2; }

/* nav active link */
.nav-link.active { color: #fff; }
.nav-link.active::after { width: 100%; }

/* work page hero */
.work-page-hero {
  padding: clamp(140px, 18vh, 200px) 0 clamp(60px, 8vh, 100px);
}

/* admin bar */
.admin-bar {
  background: rgba(0,101,255,.08);
  border-bottom: 1px solid rgba(0,101,255,.22);
  padding: 14px 0;
  position: sticky; top: 70px; z-index: 90;
  backdrop-filter: blur(12px);
}
.admin-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--zo-aqua); background: rgba(39,242,242,.1);
  border: 1px solid rgba(39,242,242,.25); border-radius: var(--r-pill);
  padding: 6px 14px;
}

/* work tile admin controls */
.work-tile-wrap { border-radius: var(--r-lg); }
.work-tile-wrap.admin-mode .work-tile { border: 2px solid transparent; transition: border-color .25s ease; }
.work-tile-wrap.admin-mode .work-tile:hover { border-color: rgba(0,101,255,.45); }
.work-admin-controls {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  display: flex; gap: 8px;
}
.work-admin-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all .2s ease;
}
.work-admin-btn.edit { background: rgba(0,101,255,.2); color: #74a8ff; }
.work-admin-btn.edit:hover { background: rgba(0,101,255,.45); border-color: var(--zo-blue-400); color: #fff; }
.work-admin-btn.delete { background: rgba(192,57,43,.2); color: #e88; }
.work-admin-btn.delete:hover { background: rgba(192,57,43,.45); border-color: #c0392b; color: #fff; }

/* modal overlay */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(2,7,18,.88); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: #04102a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl);
  width: 100%; max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  padding: 32px;
  animation: modalIn .25s cubic-bezier(.22,.61,.36,1);
}
.modal-wide { max-width: 780px; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
@keyframes modalIn { from { transform: scale(.96) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: #9fb4d4; display: grid; place-items: center; cursor: pointer;
  transition: all .2s ease;
}
.modal-close:hover { border-color: var(--zo-aqua); color: #fff; }

.modal-tabs {
  display: flex; border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 0 28px;
}
.modal-tab {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: #6f8cb8; padding: 14px 16px; border-bottom: 2px solid transparent;
  background: none; border-top: none; border-left: none; border-right: none;
  cursor: pointer; transition: color .2s ease, border-color .2s ease;
}
.modal-tab.active { color: #fff; border-bottom-color: var(--zo-aqua); }
.modal-tab:hover:not(.active) { color: #c4d6f5; }

.modal-form {
  overflow-y: auto; flex: 1;
  padding: 24px 28px;
  max-height: calc(80vh - 160px);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent;
}
.modal-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 18px 28px;
  border-top: 1px solid rgba(255,255,255,.07);
  background: #030f26;
}

/* form grid */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* field reuse (dark version of contact form fields) */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: #9fc2ff;
}
.zo-input {
  font-family: var(--font-text); font-size: 14.5px; color: #eaf1fb;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-sm); padding: 11px 14px; outline: none; resize: vertical;
  transition: border-color .25s ease, background .25s ease; width: 100%;
}
.zo-input::placeholder { color: #4a6585; }
.zo-input:focus { border-color: var(--zo-aqua); background: rgba(255,255,255,.08); }
select.zo-input { cursor: pointer; }

/* list items in editor */
.field-list-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.field-list-header > span {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: #9fc2ff;
}
.list-item {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 16px; margin-bottom: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-md);
}
.list-remove {
  position: absolute; top: 10px; right: 10px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: #6f8cb8; display: grid; place-items: center; cursor: pointer;
  transition: all .2s ease;
}
.list-remove:hover { border-color: #c0392b; color: #e88; }

/* gradient presets */
.grad-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.grad-preset {
  width: 56px; height: 36px; border-radius: var(--r-sm); cursor: pointer;
  border: 2px solid transparent; transition: border-color .2s ease;
}
.grad-preset.on { border-color: var(--zo-aqua); }
.grad-preset:hover { border-color: rgba(255,255,255,.4); }

/* toggle in editor */
.toggle-field {
  flex-direction: row !important; align-items: center; justify-content: space-between;
  padding: 12px 0; grid-column: 1/-1;
}
.toggle-field > span { font-size: 14px !important; letter-spacing: 0 !important; text-transform: none !important; color: #c4d6f5 !important; }
.twk-toggle { position: relative; width: 36px; height: 20px; border-radius: 999px; border: 0; cursor: pointer; padding: 0; transition: background .2s; flex: none; }
.twk-toggle i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; display: block; }
.featured-on i { transform: translateX(16px) !important; }
