/* ============================================
   Portal Tugas PBW - Geral Tritama Wahyu Ady
   styles.css
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0e1a;
  --surface: #111827;
  --card: #1a2234;
  --card-hover: #1f2a40;
  --border: rgba(255,255,255,0.07);
  --accent: #6366f1;
  --accent2: #8b5cf6;
  --accent3: #06b6d4;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --tag-bg: rgba(99,102,241,0.15);
  --tag-color: #a5b4fc;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 24px 60px;
  text-align: center;
  background: linear-gradient(135deg, #0a0e1a 0%, #12183a 50%, #0a0e1a 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(99,102,241,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.35);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #a5b4fc;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #e0e7ff 20%, #a5b4fc 60%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.meta-item { text-align: center; }
.meta-item span:first-child {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #a5b4fc;
}
.meta-item span:last-child {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── MAIN ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.section-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 28px;
}

/* ── PERTEMUAN GRID ── */
.pertemuan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* ── CARD ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity .25s ease;
}
.card:hover {
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.card:hover::before { opacity: 1; }

/* Card UTS — highlight khusus */
.card.card-uts {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, #1a2234 0%, #1f1a10 100%);
}
.card.card-uts::before {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.card.card-uts:hover {
  box-shadow: 0 16px 40px rgba(245,158,11,0.2);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.icon-html { background: rgba(239,109,38,0.18); }
.icon-css  { background: rgba(38,143,255,0.18); }
.icon-js   { background: rgba(240,219,79,0.18); }
.icon-php  { background: rgba(119,123,180,0.18); }
.icon-db   { background: rgba(6,182,212,0.18); }
.icon-uts  { background: rgba(245,158,11,0.2); }

.card-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.card-topic { font-size: .78rem; color: var(--muted); margin-top: 3px; }

/* ── TASK LIST ── */
.task-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.task-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  transition: background .2s, border-color .2s, color .2s;
}
.task-item a:hover {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.4);
  color: #c7d2fe;
}

/* ── TASK DOT ── */
.task-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.task-dot.php  { background: #7c83c7; }
.task-dot.js   { background: #f0db4f; }
.task-dot.html { background: #ef6d26; }
.task-dot.css  { background: #38bdf8; }
.task-dot.db   { background: #06b6d4; }
.task-dot.uts  { background: #f59e0b; }

/* ── TAG ── */
.tag {
  margin-left: auto;
  font-size: .65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-color);
  text-transform: uppercase;
  letter-spacing: .4px;
  flex-shrink: 0;
}
.tag.php  { background: rgba(124,131,199,0.18); color: #b0b5e8; }
.tag.js   { background: rgba(240,219,79,0.15);  color: #f0db4f; }
.tag.html { background: rgba(239,109,38,0.15);  color: #fba26a; }
.tag.css  { background: rgba(56,189,248,0.15);  color: #7dd3fc; }
.tag.db   { background: rgba(6,182,212,0.15);   color: #67e8f9; }
.tag.uts  { background: rgba(245,158,11,0.18);  color: #fcd34d; }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--muted);
  font-size: .78rem;
  border-top: 1px solid var(--border);
}
footer strong { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 540px) {
  .pertemuan-grid { grid-template-columns: 1fr; }
}
