/* ═══════════════════════════════════════════════════════════════
   JEE Counsellor — Colleges & College Detail Styles (Premium UI)
   ═══════════════════════════════════════════════════════════════ */

/* ── Glassmorphism Sidebar ── */
.colleges-filters {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  height: fit-content;
  max-height: calc(100vh - var(--nav-h) - 3rem);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.colleges-filters::-webkit-scrollbar {
  width: 4px;
}
.colleges-filters::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
}

@media(max-width:900px){
  .colleges-filters{display:none;position:static;max-height:none;}
  .colleges-filters.show{display:block;}
  #mobileFilterBtn{display:flex!important;justify-content:center;}
}

/* ── Range Slider Polish ── */
.filter-section input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  outline: none;
  margin-top: 5px;
}
.filter-section input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-600);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(37,99,235,0.4);
  transition: transform 0.15s;
}
.filter-section input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* ── Premium College Grid ── */
.colleges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media(max-width:850px) { .colleges-grid { grid-template-columns: 1fr; } }

.colleges-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.colleges-count strong { color: var(--gray-900); }

/* ── Premium College Card ── */
.premium-college-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  height: 100%;
}
.premium-college-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Cover Image / Gradient */
.card-cover {
  height: 100px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
}
.bg-gradient-iit { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.bg-gradient-nit { background: linear-gradient(135deg, #064e3b, #10b981); }
.bg-gradient-iiit { background: linear-gradient(135deg, #581c87, #8b5cf6); }
.bg-gradient-gfti { background: linear-gradient(135deg, #7c2d12, #f59e0b); }
.bg-gradient-state { background: linear-gradient(135deg, #334155, #64748b); }

.card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1.5" fill="rgba(255,255,255,0.15)"/></svg>');
  opacity: 0.6;
}

.premium-college-card .badge {
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(4px);
}

.save-btn {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}
.save-btn:hover {
  background: white;
  color: var(--blue-600);
}

/* Body */
.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.35;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stats */
.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  background: var(--gray-50);
  padding: 0.85rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}
.stat-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}
.stat-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--blue-700);
  font-family: var(--font-sans);
}
.stat-label {
  font-size: 0.65rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Footer */
.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-info {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}
.view-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-600);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.view-btn i {
  transition: transform 0.2s;
}
.premium-college-card:hover .view-btn i {
  transform: translateX(4px);
}
