/* ──────── SUBJECT PAGE ENHANCEMENTS ────────── */

/* Enhanced Download Buttons */
.download-btn {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.download-btn:hover {
  background: var(--green);
  color: #0b1220;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}

.download-btn:active {
  transform: translateY(0);
}

/* Item Cards Grid */
.item-card {
  animation: fadeUp 0.5s ease both;
}

.item-card:nth-child(1) { animation-delay: 0.1s; }
.item-card:nth-child(2) { animation-delay: 0.15s; }
.item-card:nth-child(3) { animation-delay: 0.2s; }
.item-card:nth-child(4) { animation-delay: 0.25s; }
.item-card:nth-child(5) { animation-delay: 0.3s; }
.item-card:nth-child(n+6) { animation-delay: 0.35s; }

/* File Type Icons */
.file-type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  display: inline-block;
  margin-bottom: 8px;
}

/* Item Header */
.item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.item-header svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  opacity: 0.7;
}

/* Empty State Enhancement */
.empty-state {
  padding: 80px 20px;
  color: var(--text3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  color: var(--text3);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text2);
  margin-bottom: 8px;
  font-family: 'Syne', sans-serif;
}

.empty-state p {
  font-size: 0.9rem;
  max-width: 300px;
  text-align: center;
  line-height: 1.6;
}

/* Subject Hero Enhancements */
.page-hero {
  animation: fadeUp 0.6s ease both;
}

.page-hero-text {
  animation: slideInLeft 0.6s 0.1s ease both;
}

/* Search Enhancement */
.search-input {
  transition: all var(--transition);
}

.search-input:focus {
  background: rgba(22, 35, 64, 0.9);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.search-input::placeholder {
  color: rgba(77, 106, 143, 0.6);
}

/* Section Header Animation */
.section-header {
  animation: fadeUp 0.6s ease both;
}

/* Grid Container Animation */
.items-grid {
  animation: fadeUp 0.6s 0.2s ease both;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  transition: all var(--transition);
}

.filter-btn:hover {
  transform: translateY(-2px);
}

.filter-btn.active {
  animation: pulse 0.4s ease;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Content Section */
.content-section {
  animation: fadeUp 0.6s ease both;
}

.content-section:nth-of-type(1) { animation-delay: 0.1s; }
.content-section:nth-of-type(2) { animation-delay: 0.2s; }
.content-section:nth-of-type(3) { animation-delay: 0.3s; }

/* Responsive Adjustments */
@media (max-width: 640px) {
  .toolbar {
    flex-direction: column;
  }
  
  .search-wrap {
    width: 100%;
  }
  
  .filter-tabs {
    width: 100%;
  }
  
  .items-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessibility */
.item-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.download-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.filter-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
