/* ============================================================
   MIZANORA PLATFORM — design system
   Theme: Emerald + Gold aurora glass (Mizanora brand)
   ============================================================ */
:root {
  --bg: #060d0a;
  --bg2: #0a1712;
  --card: rgba(255, 255, 255, 0.045);
  --card-solid: #0e1f18;
  --border: rgba(212, 175, 55, 0.14);
  --border-strong: rgba(212, 175, 55, 0.35);
  --text: #eaf4ee;
  --muted: #9db8ab;
  --gold: #d4af37;
  --gold2: #f0d97a;
  --emerald: #10b981;
  --emerald2: #34d399;
  --danger: #f87171;
  --warn: #fbbf24;
  --info: #60a5fa;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", "Inter", "Noto Sans", "Noto Nastaliq Urdu", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "Fira Code", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Aurora background */
.aurora {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(16, 185, 129, 0.16), transparent 60%),
    radial-gradient(800px 480px at 88% 4%, rgba(212, 175, 55, 0.12), transparent 60%),
    radial-gradient(1000px 700px at 50% 118%, rgba(16, 185, 129, 0.10), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(212,175,55,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 78%);
}

a { color: var(--gold2); text-decoration: none; }
a:hover { color: #fff; }
img, video { max-width: 100%; border-radius: var(--radius-sm); }
code, pre { font-family: var(--mono); }
::selection { background: rgba(212, 175, 55, 0.35); }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(6, 13, 10, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.18rem; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  background: conic-gradient(from 210deg, var(--gold), var(--emerald), var(--gold2), var(--emerald2), var(--gold));
  display: grid; place-items: center; font-size: 1.25rem;
  box-shadow: 0 8px 26px rgba(212, 175, 55, 0.35);
}
.brand small { display: block; font-size: 0.68rem; color: var(--muted); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; color: var(--muted);
  font-size: 0.92rem; font-weight: 600; transition: 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(212, 175, 55, 0.12); }
.nav-cta {
  padding: 9px 18px !important; border-radius: 999px !important;
  background: linear-gradient(135deg, var(--gold), #b8912a) !important;
  color: #1a1405 !important; font-weight: 800 !important;
}
.nav-cta:hover { filter: brightness(1.1); color: #000 !important; }
.menu-btn { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 56px; text-align: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: rgba(212, 175, 55, 0.08); font-size: 0.85rem; font-weight: 600; color: var(--gold2);
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald2); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);} 55% { box-shadow: 0 0 0 11px rgba(52, 211, 153, 0);} }
.hero h1 {
  font-size: clamp(2.35rem, 6vw, 4.55rem); line-height: 1.12; margin: 26px 0 18px;
  font-weight: 900; letter-spacing: -0.02em;
}
.grad-text {
  background: linear-gradient(120deg, var(--gold2), var(--emerald2), var(--gold), var(--emerald));
  background-size: 220% 220%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s ease-in-out infinite;
}
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero p.lead { max-width: 780px; margin: 0 auto; font-size: clamp(1.02rem, 2.3vw, 1.28rem); color: var(--muted); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 27px;
  border-radius: 999px; font-weight: 800; font-size: 0.98rem; cursor: pointer;
  border: 1px solid transparent; transition: 0.22s; text-decoration: none;
}
.btn-gold { background: linear-gradient(135deg, var(--gold), #b8912a); color: #1a1405; box-shadow: 0 12px 34px rgba(212, 175, 55, 0.3); }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.08); color: #000; }
.btn-ghost { background: rgba(255, 255, 255, 0.05); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(212, 175, 55, 0.12); transform: translateY(-2px); }
.btn-danger { background: rgba(248, 113, 113, 0.14); color: var(--danger); border-color: rgba(248, 113, 113, 0.35); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ---------- Ticker ---------- */
.ticker-wrap {
  overflow: hidden; border-block: 1px solid var(--border);
  background: rgba(212, 175, 55, 0.05); padding: 12px 0; margin: 30px 0 0;
}
.ticker { display: flex; gap: 60px; width: max-content; animation: ticker 42s linear infinite; }
.ticker span { white-space: nowrap; color: var(--gold2); font-weight: 700; font-size: 0.94rem; letter-spacing: 0.02em; }
.ticker span b { color: var(--emerald2); }
@keyframes ticker { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ---------- Sections & cards ---------- */
.section { padding: 72px 0 30px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 900; letter-spacing: -0.015em; }
.section-head p { color: var(--muted); max-width: 560px; }
.kicker { color: var(--gold); font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.76rem; margin-bottom: 8px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: 0.25s; position: relative; overflow: hidden;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.55rem; background: rgba(212, 175, 55, 0.12); border: 1px solid var(--border); margin-bottom: 16px;
}
.card h3 { font-size: 1.18rem; margin-bottom: 8px; font-weight: 800; }
.card p { color: var(--muted); font-size: 0.95rem; }

.stat-card { text-align: center; padding: 30px 18px; }
.stat-num {
  font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 900;
  background: linear-gradient(120deg, var(--gold2), var(--emerald2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--muted); font-weight: 600; font-size: 0.92rem; margin-top: 6px; }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border-radius: 999px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}
.badge-active { background: rgba(16, 185, 129, 0.15); color: var(--emerald2); border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-past { background: rgba(96, 165, 250, 0.12); color: var(--info); border: 1px solid rgba(96, 165, 250, 0.3); }
.badge-affected { background: rgba(248, 113, 113, 0.13); color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.32); }
.badge-gold { background: rgba(212, 175, 55, 0.13); color: var(--gold2); border: 1px solid var(--border-strong); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip {
  padding: 5px 13px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--muted);
}

/* ---------- Status feed ---------- */
.feed { display: grid; gap: 14px; }
.feed-item {
  display: flex; gap: 16px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--border); align-items: flex-start;
}
.feed-date { flex: none; width: 92px; color: var(--gold2); font-weight: 800; font-size: 0.82rem; padding-top: 3px; }
.feed-text { color: var(--muted); font-size: 0.95rem; }
.feed-text b { color: var(--text); }

/* ---------- Project cards / detail ---------- */
.project-card { cursor: pointer; }
.project-card .top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.project-card .top .icon { margin: 0; }
.proj-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 10px; flex-wrap: wrap; }
.proj-dates { font-size: 0.8rem; color: var(--muted); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-btn {
  padding: 9px 19px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; font-size: 0.88rem; transition: 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: rgba(212, 175, 55, 0.14); color: var(--gold2); border-color: var(--border-strong); }

/* Modal / drawer */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 22px;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(820px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--card-solid); border: 1px solid var(--border-strong);
  border-radius: 22px; padding: 34px; box-shadow: var(--shadow); position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255,255,255,0.06); color: var(--text);
  font-size: 1.15rem; cursor: pointer;
}
.modal h2 { font-size: 1.65rem; margin-bottom: 6px; }
.modal h4 { margin: 22px 0 8px; color: var(--gold2); font-size: 1.02rem; }
.modal .incident-box {
  background: rgba(248, 113, 113, 0.09); border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: var(--radius-sm); padding: 14px 18px; color: #fecaca; font-size: 0.93rem;
}

/* ---------- Blog ---------- */
.blog-card { display: flex; flex-direction: column; cursor: pointer; }
.blog-cover {
  height: 172px; border-radius: var(--radius-sm); margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(16,185,129,0.35), rgba(212,175,55,0.28)), conic-gradient(from 160deg, #0e2a20, #123527, #0b1f18);
  background-size: cover; background-position: center;
  display: grid; place-items: center; font-size: 2.2rem;
}
.blog-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; }
.blog-title-link { color: var(--text); font-weight: 800; font-size: 1.14rem; line-height: 1.4; }
.blog-title-link:hover { color: var(--gold2); }

.article-body { max-width: 780px; margin: 0 auto; }
.article-body h2 { font-size: 1.62rem; margin: 38px 0 14px; color: var(--gold2); }
.article-body h3 { font-size: 1.28rem; margin: 28px 0 10px; }
.article-body p { margin: 13px 0; color: var(--text); opacity: 0.92; }
.article-body ul, .article-body ol { margin: 13px 0 13px 24px; color: var(--muted); }
.article-body li { margin: 7px 0; }
.article-body blockquote {
  border-left: 4px solid var(--gold); padding: 12px 20px; margin: 20px 0;
  background: rgba(212, 175, 55, 0.08); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--gold2); font-style: italic;
}
.article-body pre {
  background: #0b1512; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px; overflow-x: auto; font-size: 0.88rem; color: var(--emerald2); margin: 18px 0;
}
.article-body code { background: rgba(212, 175, 55, 0.12); padding: 2px 8px; border-radius: 6px; font-size: 0.86em; color: var(--gold2); }
.article-body pre code { background: none; padding: 0; color: inherit; }
.article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; font-size: 0.92rem; }
.article-body th { background: rgba(212, 175, 55, 0.1); color: var(--gold2); }

/* ---------- Team ---------- */
.member-card { text-align: center; padding: 32px 22px; }
.avatar {
  width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%;
  background: conic-gradient(from 140deg, var(--emerald), var(--gold), var(--emerald2), var(--gold2));
  display: grid; place-items: center; font-size: 2.1rem; font-weight: 900; color: #062018;
  border: 3px solid rgba(212, 175, 55, 0.4);
}
.member-links { display: flex; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.member-links a {
  padding: 7px 15px; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
  border: 1px solid var(--border); color: var(--muted);
}
.member-links a:hover { border-color: var(--gold); color: var(--gold2); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--emerald), transparent);
}
.tl-item { position: relative; margin-bottom: 30px; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 7px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--gold);
}
.tl-date { color: var(--gold2); font-weight: 800; font-size: 0.86rem; letter-spacing: 0.06em; }
.tl-item h4 { margin: 5px 0 6px; font-size: 1.12rem; }
.tl-item p { color: var(--muted); font-size: 0.95rem; }
.tl-item.incident::before { border-color: var(--danger); }

/* ---------- Media gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.media-card { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--card); }
.media-card .placeholder {
  height: 150px; display: grid; place-items: center; font-size: 2.2rem;
  background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(212,175,55,0.2));
}
.media-card img, .media-card video { width: 100%; height: 150px; object-fit: cover; border-radius: 0; }
.media-card audio { width: 100%; padding: 10px; }
.media-card .cap { padding: 11px 14px; font-size: 0.83rem; color: var(--muted); }

/* ---------- About profile ---------- */
.profile-hero { display: grid; grid-template-columns: 300px 1fr; gap: 38px; align-items: center; }
.profile-photo {
  aspect-ratio: 1; border-radius: 26px; border: 2px solid var(--border-strong);
  background: conic-gradient(from 200deg, #123527, #1a4534, #d4af37, #123527);
  display: grid; place-items: center; font-size: 4.4rem; box-shadow: var(--shadow);
}
.quote-box {
  border-left: 4px solid var(--gold); background: rgba(212, 175, 55, 0.08);
  padding: 18px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.15rem; font-style: italic; color: var(--gold2); margin: 22px 0;
}

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 78vh; gap: 26px; padding: 30px 0 70px; }
.admin-side {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 14px; height: fit-content; position: sticky; top: 92px;
}
.admin-side button {
  width: 100%; text-align: left; padding: 12px 16px; margin-bottom: 6px; border-radius: 12px;
  background: transparent; border: 1px solid transparent; color: var(--muted);
  font-weight: 700; font-size: 0.92rem; cursor: pointer; transition: 0.18s;
}
.admin-side button:hover, .admin-side button.active {
  background: rgba(212, 175, 55, 0.12); color: var(--gold2); border-color: var(--border);
}
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-panel h2 { font-size: 1.55rem; margin-bottom: 6px; }
.admin-panel .sub { color: var(--muted); margin-bottom: 22px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label.field { display: block; font-size: 0.84rem; font-weight: 700; color: var(--muted); margin-bottom: 7px; letter-spacing: 0.03em; }
input[type="text"], input[type="date"], input[type="url"], input[type="email"], input[type="file"], textarea, select {
  width: 100%; padding: 12px 15px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05); color: var(--text); font-family: var(--font); font-size: 0.95rem;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 150px; resize: vertical; }
textarea.tall { min-height: 320px; font-family: var(--mono); font-size: 0.87rem; }

.list-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.list-row .grow { flex: 1; }
.list-row h4 { font-size: 0.99rem; }
.list-row p { font-size: 0.82rem; color: var(--muted); }

.login-hero { text-align: center; padding: 90px 0; }
.login-hero .icon-big { font-size: 4.2rem; margin-bottom: 20px; }

.toast {
  position: fixed; bottom: 26px; right: 26px; z-index: 200; padding: 15px 24px;
  border-radius: 14px; background: var(--card-solid); border: 1px solid var(--border-strong);
  color: var(--text); font-weight: 700; box-shadow: var(--shadow); display: none;
}
.toast.show { display: block; animation: slideIn 0.25s ease; }
@keyframes slideIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 80px; border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025); padding: 54px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-grid h4 { font-size: 0.95rem; margin-bottom: 15px; color: var(--gold2); letter-spacing: 0.07em; text-transform: uppercase; }
.footer-grid a, .footer-grid p { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 9px; }
.footer-grid a:hover { color: var(--gold2); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--muted); font-size: 0.86rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .profile-hero { grid-template-columns: 1fr; text-align: center; }
  .profile-photo { max-width: 260px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; display: flex; overflow-x: auto; gap: 6px; }
  .admin-side button { width: auto; white-space: nowrap; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--card-solid); padding: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; margin-left: auto; }
  .hero { padding: 56px 0 36px; }
  .feed-item { flex-direction: column; gap: 6px; }
  .feed-date { width: auto; }
}
