/* =========================================
   BuddyPlanner v2 — Home Screen
   ========================================= */

.home-alert-section {
  padding: var(--sp-4) var(--sp-5) var(--sp-2);
}
.has-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--text-300);
  margin-bottom: var(--sp-3);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}
.has-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.home-alert-card {
  display: flex;
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  background: var(--grad-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.home-alert-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad-accent-v);
  border-radius: 0 var(--r-full) var(--r-full) 0;
}
.home-alert-card:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
  background: var(--bg-card-hover);
}
.hac-badge {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 10px;
  font-weight: var(--fw-extrabold);
  padding: 3px 8px;
  border-radius: var(--r-full);
  margin-right: var(--sp-3);
  flex-shrink: 0;
  border: 1px solid rgba(34, 201, 135, 0.2);
}
.hac-info {
  flex: 1;
  min-width: 0;
}
.hac-course {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--text-100);
  margin-bottom: 2px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.hac-time {
  font-size: var(--fs-xs);
  color: var(--text-400);
}
.hac-arrow {
  color: var(--text-500);
  font-size: var(--fs-sm);
  margin-left: var(--sp-2);
  transition: transform var(--dur-fast) var(--ease-out);
}
.home-alert-card:hover .hac-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

.home-alert-empty {
  padding: var(--sp-4) var(--sp-3);
  background: var(--bg-card);
  border: 1px dashed var(--border-default);
  border-radius: var(--r-lg);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-400);
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-out);
}
.home-alert-empty:hover {
  border-color: var(--border-accent);
  background: var(--accent-dim);
  color: var(--accent);
}

/* ── Main Dashboard Styles ── */
.dash-header {
  padding: var(--sp-6) var(--sp-5) var(--sp-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dash-welcome {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dash-welcome h2 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tight);
}
.dash-welcome h2 span {
  background: linear-gradient(135deg, var(--text-100), var(--gold-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dash-quote {
  font-size: var(--fs-sm);
  color: var(--text-400);
  font-weight: var(--fw-medium);
}
.dash-profile {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm), 0 0 12px rgba(34, 201, 135, 0.2);
  border: 2px solid var(--border-strong);
}

/* 2x2 Grid */
.dash-grid-section {
  padding: 0 var(--sp-5) var(--sp-4);
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.dash-card {
  background: var(--grad-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-normal) var(--ease-spring);
}
.dash-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-glass-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.4;
}
.dash-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}
.dash-card:active {
  transform: translateY(-1px) scale(0.97);
}
.dash-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-300);
  transition: all var(--dur-fast);
}
.dash-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}
.dash-card:hover .dash-card-icon {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
}
.dash-card.card-gold:hover .dash-card-icon {
  background: var(--gold-dim);
  border-color: rgba(200,169,81,0.3);
  color: var(--gold);
}
.dash-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-card-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--text-100);
}
.dash-card-desc {
  font-size: var(--fs-2xs);
  color: var(--text-500);
  font-weight: var(--fw-medium);
}
