/* custom-styles.css - The Running Banker */

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Lightbox modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.98); /* Rich Slate 950 deep overlay */
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

/* Blog/Content modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85); /* Rich Slate 900 translucent overlay */
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 780px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

/* Custom Scrollbar for Modal content and general page in the future */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Progress bar */
.progress-bar {
  height: 8px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #bef264;
  border-radius: 9999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Loading spinner */
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #f1f5f9;
  border-top-color: #bef264;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Hover effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.08);
}

/* Gallery grid - premium responsive design */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Blog grid - premium responsive design */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* Image grid zoom hover for gallery items */
.gallery-img-container {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}

.gallery-img-container img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-img-container:hover img {
  transform: scale(1.06);
}

/* Image text overlay hover */
.gallery-overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-img-container:hover .gallery-overlay {
  opacity: 1;
}

/* Utilities for tabs and custom dashboard stats */
.glass-glow {
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.05), 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
