/* ── RESET & ROOT ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a14;
  --surface: rgba(255,255,255,0.03);
  --border: rgba(138,110,255,0.15);
  --border-hover: rgba(138,110,255,0.5);
  --purple: #8a6eff;
  --blue: #5a9fff;
  --text: #e8e4f0;
  --muted: #7d6fa0;
  --dim: #4a4060;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,20,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar .logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none;
}
.navbar .logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.navbar .logo-text { font-size: 17px; font-weight: 700; color: #fff; }
.navbar .logo-text span { color: var(--purple); }
.navbar .nav-right { display: flex; align-items: center; gap: 16px; }
.nav-link { color: var(--muted); font-size: 14px; text-decoration: none; }
.nav-link:hover { color: var(--text); }

/* ── AUTH BUTTONS ── */
.btn-login {
  padding: 6px 16px; border-radius: 6px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border-hover); color: #a08cff;
  background: transparent; cursor: pointer; text-decoration: none;
  transition: all 0.2s; display: inline-block;
}
.btn-login:hover { background: rgba(138,110,255,0.15); }
.btn-logout {
  padding: 6px 16px; border-radius: 6px; font-size: 13px; font-weight: 500;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border: none; color: #fff; cursor: pointer; font-family: inherit;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--bg) 0%, #12102a 60%, #0f1428 100%);
  padding: 90px 32px 70px; text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(138,110,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: 48px; font-weight: 700; color: #fff;
  letter-spacing: -1.5px; line-height: 1.1; position: relative;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--purple), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  margin-top: 14px; color: var(--muted); font-size: 17px;
  max-width: 480px; margin-left: auto; margin-right: auto; position: relative;
}
.hero .cta {
  margin-top: 32px; display: flex; gap: 12px;
  justify-content: center; position: relative;
}

/* ── BUTTONS ── */
.btn-primary {
  padding: 10px 24px; border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff; font-weight: 600; font-size: 14px;
  border: none; cursor: pointer; text-decoration: none;
  transition: opacity 0.2s; display: inline-block;
}
.btn-primary:hover { opacity: 0.85; }
.btn-ghost {
  padding: 10px 24px; border-radius: 8px;
  border: 1px solid rgba(138,110,255,0.4); color: #c8b8ff;
  font-size: 14px; background: transparent; cursor: pointer;
  text-decoration: none; transition: all 0.2s; display: inline-block;
}
.btn-ghost:hover { background: rgba(138,110,255,0.08); }

/* ── SECTION LABEL ── */
.section-label {
  max-width: 960px; margin: 48px auto 20px; padding: 0 24px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--dim); display: flex; align-items: center; gap: 12px;
}
.section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── PROJECT GRID ── */
.grid {
  max-width: 960px; margin: 0 auto 72px; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; cursor: pointer;
  transition: all 0.25s; position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top left, rgba(138,110,255,0.07) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.25s;
}
.card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(138,110,255,0.1); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 18px; font-weight: 600; color: #f0eaff; margin-bottom: 8px; }
.card p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── BADGES ── */
.badge {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 4px;
  background: rgba(138,110,255,0.15); color: var(--purple);
  margin-right: 4px; margin-bottom: 10px; font-weight: 500;
}
.detail-badges { margin-bottom: 6px; }

/* ── CARD LINKS ── */
.card-links { margin-top: 20px; display: flex; gap: 10px; }
.card-links a {
  font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 6px;
  border: 1px solid rgba(138,110,255,0.25); color: #a08cff;
  text-decoration: none; transition: all 0.2s;
}
.card-links a:hover { background: rgba(138,110,255,0.15); border-color: var(--border-hover); }

/* ── PROJECT DETAIL ── */
.detail-hero {
  padding: 60px 32px 50px; max-width: 760px; margin: 0 auto;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13px;
  margin-bottom: 32px; text-decoration: none; transition: color 0.2s;
}
.back-btn:hover { color: var(--text); }
.detail-hero h1 {
  font-size: 38px; font-weight: 700; color: #fff;
  letter-spacing: -1px; margin-bottom: 14px;
}
.detail-hero .description { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 600px; }
.detail-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.detail-body { max-width: 760px; margin: 0 auto; padding: 0 32px 80px; }
.detail-section { margin-bottom: 48px; }
.detail-section h2 { font-size: 16px; font-weight: 600; color: #c8b8ff; margin-bottom: 16px; }
.detail-section p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.detail-section ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.detail-section ul li {
  font-size: 14px; color: var(--muted); padding-left: 20px;
  position: relative; line-height: 1.6;
}
.detail-section ul li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--purple); font-size: 12px; top: 1px;
}

/* ── RELEASE LIST ── */
.release-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.release-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px;
}
.release-item .rel-info h4 { font-size: 14px; color: #f0eaff; font-weight: 600; }
.release-item .rel-info span { font-size: 12px; color: var(--dim); }
.rel-download {
  padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 500;
  color: var(--purple); border: 1px solid rgba(138,110,255,0.3);
  text-decoration: none; transition: all 0.2s; display: inline-block;
}
.rel-download:hover { background: rgba(138,110,255,0.15); }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0 0 48px; }

/* ── ABOUT PAGE ── */
.about-body { max-width: 680px; margin: 60px auto; padding: 0 32px 80px; }
.about-body h1 { font-size: 36px; font-weight: 700; color: #fff; letter-spacing: -1px; margin-bottom: 20px; }
.about-body p { font-size: 15px; color: var(--muted); line-height: 1.85; margin-bottom: 20px; }
.about-body h2 { font-size: 18px; font-weight: 600; color: #c8b8ff; margin: 36px 0 12px; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.skill-tag {
  font-size: 12px; padding: 4px 12px; border-radius: 20px;
  border: 1px solid var(--border); color: var(--muted);
}

/* ── ADMIN SECTION ── */
.admin-header {
  max-width: 760px; margin: 0 auto; padding: 60px 32px 0;
}
.admin-header h1 { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.admin-header p { font-size: 14px; color: var(--muted); }
.admin-badge {
  display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 4px;
  background: rgba(255,100,100,0.15); color: #ff6b6b;
  margin-right: 6px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border); padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 960px; margin: 0 auto; color: var(--dim); font-size: 12px;
}
.footer a { color: var(--dim); text-decoration: none; }
.footer a:hover { color: var(--muted); }
