/* Brand styles for CS Attendance — Dept. of Computer Science, ATBU */
:root {
  --brand-start: #6a5cff; /* purple */
  --brand-end: #2ea1ff;   /* blue */
  --brand: #3b82f6;
  --bg: #f5f8ff;
  --card: #ffffff;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --line: #e5e7eb;
  --accent: #22c55e;
}

/* Typography & base */
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial;
  color: var(--ink-900);
  background: linear-gradient(140deg, #f2f6ff 0%, #ffffff 60%);
}

.container-narrow { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header/Nav */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.75);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid rgba(229,231,235,0.6);
}
.nav, .nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.brand {
  display:flex; align-items:center; gap:10px; font-weight:800; color: var(--ink-900); text-decoration:none;
}
.brand .dot { display:inline-block; width:8px; height:8px; border-radius:999px; background: var(--brand-end); }
.logo { font-weight:800; color: var(--brand-start); text-decoration:none; font-size: 1.05rem; }
.nav-links { display:flex; gap:20px; align-items:center; }
.nav-links a { color: var(--ink-700); text-decoration:none; font-weight:600; position: relative; }
.nav-links a.active { color: var(--ink-900); position:relative; }
.nav-links a.active::after { content:""; position:absolute; left:0; right:0; bottom:-10px; height:3px; border-radius:2px; background: linear-gradient(90deg, var(--brand-start), var(--brand-end)); }

/* Shared auth action buttons in topbar */
.btn-login { color:#fff; background: linear-gradient(135deg, var(--brand-start), var(--brand-end)); border-color: transparent; }
.btn-login:hover { filter: brightness(0.98); }
.btn-register { color: var(--brand-start); background: #fff; border-color: #dbe3f5; }
.btn-register:hover { background: #f8fbff; }

.actions, .auth-actions { display:flex; gap:10px; align-items:center; flex-wrap: wrap; }
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 16px; border-radius: 12px; font-weight: 700; text-decoration:none; border: 1px solid transparent;
}
.btn-primary { color:#fff; background: linear-gradient(135deg, var(--brand-start), var(--brand-end)); box-shadow: 0 8px 18px rgba(59,130,246,0.25); }
.btn-outline { color: var(--brand-start); background: #fff; border-color: #dbe3f5; }

/* Hero */
.hero { padding: 40px 0 24px; }
.hero-wrap { display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: center; }
.badge { display:inline-flex; align-items:center; gap:8px; font-weight:700; color:#119e4d; background:#e8fbef; border-radius:999px; padding:6px 12px; font-size:12px; }
.hero h1 { font-size: clamp(28px, 5vw, 48px); line-height:1.1; margin: 16px 0; color: var(--ink-900); }
.hero p { color: var(--ink-700); margin: 0 0 12px; }
.searchbar { margin-top:16px; position:relative; }
.searchbar .pill { height:58px; border-radius:999px; background:#fff; border:1px solid #e8ecf7; padding: 0 70px 0 20px; display:flex; align-items:center; color:#94a3b8; }
.searchbar .go { position:absolute; right:8px; top:8px; width:42px; height:42px; border-radius:999px; background: linear-gradient(135deg, var(--brand-start), var(--brand-end)); display:flex; align-items:center; justify-content:center; color:#fff; box-shadow: 0 8px 18px rgba(59,130,246,0.25); border:none; cursor:pointer; }

/* Hero image card */
.hero-art { position:relative; }
.shape {
  background: linear-gradient(135deg, #b9d9ff, #c8bfff);
  border-radius: 24px; min-height: 320px;
  box-shadow: 0 20px 40px rgba(10,31,68,0.10);
}
.art-note { position:absolute; right:14px; top:16px; background:#fff; border-radius:12px; padding:10px 12px; font-size:12px; color:var(--ink-700); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.art-badge { position:absolute; left:-8px; top:40%; background:#fff; border-radius:12px; padding:10px 12px; font-size:12px; color:var(--ink-700); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.art-photo { position:absolute; left:50%; top:50%; transform: translate(-50%, -50%); width:78%; border-radius: 14px; box-shadow: 0 14px 28px rgba(20,40,90,0.18); }

/* Feature row */
.features { display:flex; flex-wrap:wrap; gap:18px; margin-top: 18px; color: var(--ink-700); }
.feature { display:flex; align-items:center; gap:8px; background:#fff; border:1px solid #eef2ff; padding:10px 12px; border-radius: 12px; }
.check { color: #1ea7ff; }

/* Footer */
.footer { color: var(--ink-500); font-size: 12px; text-align:center; padding: 24px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .nav-links { display:none; }
  .nav, .nav-container { height: 56px; }
  .btn { padding: 8px 12px; border-radius: 10px; }
}
