/* ═══════════════════════════════════════
   HELLENGINEERS — COMPONENTS
═══════════════════════════════════════ */

/* ─── CARDS ─── */
.card {
  background: var(--card-bg); border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--trans), background var(--trans);
}
.card:hover { border-color: var(--border2); }
.card-pad { padding: 18px 20px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 50px; font-size: 14px;
  font-weight: 500; border: none; cursor: pointer;
  font-family: var(--font-b); transition: all var(--trans);
  white-space: nowrap;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { opacity: .88; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 0.5px solid var(--border2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-ghost { background: var(--surface2); color: var(--text2); border: 0.5px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border2); }
.btn-danger { background: var(--red-dim); color: var(--red); border: 0.5px solid rgba(239,68,68,0.25); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ─── BADGES ─── */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 20px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.badge-q   { background: var(--blue-dim);  color: var(--blue); }
.badge-r   { background: var(--teal-dim);  color: var(--teal); }
.badge-s   { background: var(--accent-dim);color: var(--accent); }
.badge-ok  { background: var(--green-dim); color: var(--green); }
.badge-hot { background: var(--red-dim);   color: var(--red); }

/* ─── AVATAR ─── */
.avatar {
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 600; color: #fff; flex-shrink: 0;
}
.av-36 { width:36px; height:36px; font-size:13px; }
.av-28 { width:28px; height:28px; font-size:11px; }
.av-48 { width:48px; height:48px; font-size:16px; }
.av-60 { width:60px; height:60px; font-size:20px; font-family:var(--font-h); font-weight:700; }
.av-80 { width:80px; height:80px; font-size:26px; font-family:var(--font-h); font-weight:800; }

/* ─── CHIP ─── */
.chip {
  padding: 2px 8px; border-radius: 20px; font-size: 10px;
  font-weight: 500; background: var(--surface2); color: var(--text2);
  border: 0.5px solid var(--border);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 5px; }

/* ─── INPUT FIELDS ─── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 500; color: var(--text2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--input-bg);
  border: 0.5px solid var(--border2); border-radius: var(--radius);
  padding: 10px 14px; font-size: 14px; color: var(--text);
  outline: none; transition: border-color var(--trans), box-shadow var(--trans);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: var(--glow); }
.field input::placeholder, .field textarea::placeholder { color: var(--text3); }
.field textarea { resize: vertical; min-height: 100px; }

/* ─── TOGGLE SWITCH ─── */
.toggle {
  width: 44px; height: 24px; background: var(--border2);
  border-radius: 12px; position: relative; cursor: pointer;
  transition: background var(--trans); flex-shrink: 0; border: none;
}
.toggle.on { background: var(--accent); }
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
  transition: transform var(--trans);
}
.toggle.on::after { transform: translateX(20px); }

/* ─── FOLLOW BUTTON ─── */
.follow-btn {
  width: 100%; padding: 8px; border-radius: var(--radius);
  background: var(--accent-dim); border: 0.5px solid var(--accent-border);
  color: var(--accent2); font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all var(--trans); font-family: var(--font-b);
}
.follow-btn:hover { background: rgba(249,115,22,.18); }
.follow-btn.on {
  background: var(--green-dim); color: var(--green);
  border-color: rgba(34,197,94,.25);
}

/* ─── POST CARD ─── */
.post-card { padding: 18px 20px; margin-bottom: 10px; }
.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.post-meta { flex: 1; }
.post-author { font-size: 13px; font-weight: 500; color: var(--text); }
.post-author span { color: var(--text3); font-weight: 400; }
.post-time { font-size: 11px; color: var(--text3); }
.post-title {
  font-family: var(--font-h); font-size: 15px; font-weight: 700;
  letter-spacing: -.02em; color: var(--text); margin-bottom: 8px;
  cursor: pointer;
}
.post-title:hover { color: var(--accent); }
.post-content { font-size: 13px; color: var(--text2); line-height: 1.65; margin-bottom: 13px; }
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 13px; }
.post-tag {
  padding: 3px 10px; border-radius: 20px; font-size: 11px;
  background: var(--surface2); color: var(--text3); border: 0.5px solid var(--border);
  cursor: pointer; transition: color var(--trans);
}
.post-tag:hover { color: var(--accent); }
.post-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.post-action {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text3); cursor: pointer;
  padding: 5px 9px; border-radius: var(--radius);
  transition: background var(--trans), color var(--trans);
  border: none; background: none; font-family: var(--font-b);
}
.post-action:hover { background: var(--surface2); color: var(--text2); }
.post-action.liked { color: var(--accent); }
.solved-tag {
  margin-left: auto; padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 600;
  background: var(--green-dim); color: var(--green);
}

/* ─── PROJECT CARD ─── */
.proj-card { padding: 20px; }
.proj-thumb {
  width: 100%; height: 110px; border-radius: 10px;
  background: var(--bg3); border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; margin-bottom: 16px;
}
.proj-title {
  font-family: var(--font-h); font-size: 15px; font-weight: 700;
  letter-spacing: -.02em; color: var(--text); margin-bottom: 7px;
}
.proj-desc { font-size: 12px; color: var(--text2); line-height: 1.6; margin-bottom: 14px; }
.proj-footer { display: flex; align-items: center; justify-content: space-between; }
.proj-likes { font-size: 12px; color: var(--accent); font-weight: 500; }
.tm-badge {
  padding: 3px 8px; border-radius: 20px;
  font-size: 10px; font-weight: 600;
  background: var(--teal-dim); color: var(--teal);
}

/* ─── PERSON CARD ─── */
.person-card { padding: 20px; text-align: center; }
.person-name {
  font-family: var(--font-h); font-size: 15px; font-weight: 700;
  letter-spacing: -.02em; color: var(--text);
}
.person-role { font-size: 11px; color: var(--text3); margin: 3px 0 10px; }

/* ─── WIDGET ─── */
.widget { margin-bottom: 14px; }
.widget-title {
  font-family: var(--font-h); font-size: 13px; font-weight: 700;
  letter-spacing: -.01em; color: var(--text); margin-bottom: 14px;
}
.suggest-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 0.5px solid var(--border);
}
.suggest-item:last-child { border-bottom: none; }
.suggest-info { flex: 1; }
.suggest-name { font-size: 13px; font-weight: 500; color: var(--text); }
.suggest-role { font-size: 11px; color: var(--text3); }
.trend-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 0.5px solid var(--border);
}
.trend-item:last-child { border-bottom: none; }
.trend-num { font-size: 11px; color: var(--text3); width: 16px; flex-shrink: 0; margin-top: 2px; }
.trend-tag { font-size: 13px; font-weight: 500; color: var(--text); }
.trend-count { font-size: 11px; color: var(--text3); }

/* ─── DIVIDER ─── */
.divider { height: 0.5px; background: var(--border); margin: 20px 0; }
.divider-row {
  display: flex; align-items: center; gap: 12px; margin: 16px 0;
}
.divider-row .line { flex: 1; height: 0.5px; background: var(--border); }
.divider-row .txt { font-size: 12px; color: var(--text3); }

/* ─── NOTIF ITEM ─── */
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 15px; border-radius: var(--radius);
  margin-bottom: 5px; transition: background var(--trans);
}
.notif-item:hover { background: var(--surface2); }
.notif-item.unread { background: var(--accent-dim); border: 0.5px solid var(--accent-border); }
.notif-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 5px; }
.notif-text { flex: 1; font-size: 13px; color: var(--text2); line-height: 1.5; }
.notif-text strong { color: var(--text); font-weight: 500; }
.notif-time { font-size: 11px; color: var(--text3); white-space: nowrap; margin-top: 2px; }

/* ─── SCORE BAR ─── */
.score-bar { height: 5px; background: var(--surface2); border-radius: 5px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--blue)); transition: width 1s ease; }

/* ─── EMPTY STATE ─── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-title { font-family: var(--font-h); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-sub { font-size: 14px; color: var(--text2); font-weight: 300; }

/* ─── ASK BOX ─── */
.ask-box { padding: 16px 18px; margin-bottom: 14px; display: flex; gap: 12px; align-items: center; }
.ask-input {
  flex: 1; background: var(--input-bg); border: 0.5px solid var(--border);
  border-radius: 30px; padding: 10px 18px; font-size: 14px;
  color: var(--text); outline: none; transition: border-color var(--trans);
}
.ask-input:focus { border-color: var(--accent); }
.ask-input::placeholder { color: var(--text3); }
