/* CCTU SRC Hostels Page - Main Stylesheet */

/* Hide scrollbar for filter chips */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Smooth transitions */
.hostel-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hostel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.1);
}

/* Filter chip animations */
.filter-chip {
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-chip:active {
  transform: scale(0.95);
}

/* Featured hostel hover effect */
.featured-hostel {
  transition: transform 0.3s ease;
}

.featured-hostel:hover {
  transform: scale(1.01);
}

/* Button press effect */
.btn-press:active {
  transform: scale(0.96);
}

/* Status badge pulse animation */
@keyframes pulseGreen {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0);
  }
}

.status-badge {
  animation: pulseGreen 1.5s infinite;
}

/* FAB button hover effect */
.fab-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px -5px rgba(254, 203, 0, 0.4);
}

/* Loading skeleton animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Toast notification style */
.toast-notification {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1f2937;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .toast-notification {
    font-size: 12px;
    padding: 10px 16px;
    white-space: normal;
    text-align: center;
    max-width: 90%;
  }
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 1.5rem;
  max-width: 90%;
  width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .bg-white {
    background-color: #ffffff;
  }
  
  .modal-content {
    background: #ffffff;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .hostel-card:hover {
    transform: none;
  }
  
  .filter-chip:active {
    transform: scale(0.96);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .featured-hostel h3 {
    font-size: 1.1rem;
  }
  
  .featured-hostel .text-right p:first-child {
    font-size: 1rem;
  }
}

/* Print styles */
@media print {
  .fab-btn,
  nav,
  header,
  .filter-section {
    display: none;
  }
  
  .hostel-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}