/* ============================================
   EduFlame — semester.css (Subjects Page)
   Optional overrides for subject list layout.
   Core styles come from style.css + program.css
   ============================================ */

/* ---- Subject List (row layout) ---- */
.subject-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- Subject Row Card ---- */
.subject-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.3s ease both;
}

.subject-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

/* Subject icon */
.subject-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
}

.subject-card:hover .subject-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Subject info */
.subject-info {
  flex: 1;
  min-width: 0;
}

.subject-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.subject-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.subject-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Arrow */
.subject-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  flex-shrink: 0;
  transition: color 0.18s, gap 0.18s;
  white-space: nowrap;
}

.subject-card:hover .subject-arrow {
  color: var(--accent);
  gap: 10px;
}

/* ---- Skeleton ---- */
.subj-skeleton {
  height: 72px;
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius);
  animation: shimmer 1.6s infinite;
}
.subj-skeleton:nth-child(2) { animation-delay: 0.1s; }
.subj-skeleton:nth-child(3) { animation-delay: 0.2s; }
.subj-skeleton:nth-child(4) { animation-delay: 0.3s; }
.subj-skeleton:nth-child(5) { animation-delay: 0.4s; }

/* ---- Stagger ---- */
.subject-card:nth-child(1)  { animation-delay: 0.04s; }
.subject-card:nth-child(2)  { animation-delay: 0.08s; }
.subject-card:nth-child(3)  { animation-delay: 0.12s; }
.subject-card:nth-child(4)  { animation-delay: 0.16s; }
.subject-card:nth-child(5)  { animation-delay: 0.20s; }
.subject-card:nth-child(6)  { animation-delay: 0.24s; }
.subject-card:nth-child(7)  { animation-delay: 0.28s; }
.subject-card:nth-child(8)  { animation-delay: 0.32s; }
.subject-card:nth-child(9)  { animation-delay: 0.36s; }
.subject-card:nth-child(10) { animation-delay: 0.40s; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
  .subject-card {
    padding: 14px 16px;
    gap: 12px;
  }
  .subject-arrow span { display: none; }
}

@media (max-width: 480px) {
  .subject-card {
    padding: 12px 14px;
    gap: 10px;
  }
  .subject-icon {
    width: 36px;
    height: 36px;
  }
  .subject-icon svg { width: 16px; height: 16px; }
  .subject-name { font-size: 13px; }
  .subject-meta { gap: 8px; font-size: 11.5px; }
  .subject-arrow { font-size: 0; gap: 0; }
  .subject-arrow svg { font-size: initial; }
}