/* Enhanced Card Styles */
.card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Professional Glass Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Art Card Specific Styles */
.art-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.art-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.art-image {
  transition: all 0.4s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-card:hover .art-image {
  transform: scale(1.1);
}

/* Overlay Effects */
.art-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  opacity: 0;
  transition: all 0.3s ease;
}

.art-card:hover .art-overlay {
  opacity: 1;
}

/* Button Styles */
.art-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
  border: none;
  outline: none;
}

.art-card:hover .art-button {
  transform: translateY(0);
  opacity: 1;
}

.art-button:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Section Header */
.section-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Loading Animation */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Fade In Animation */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography */
.art-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

/* Fullscreen image container styles */
.fullscreen-img-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

/* Fullscreen image styles */
.fullscreen-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Timer styles */
#countdown {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e53e3e;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 12px 20px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(229, 62, 62, 0.2);
}

#countdown-container {
  text-align: center;
  margin-top: 15px;
  font-size: 1.25rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .art-card {
    margin-bottom: 1rem;
  }

  .art-title {
    font-size: 1.5rem;
  }

  .glass-card {
    margin: 0 0.5rem;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Focus States for Accessibility */
.art-card:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.art-button:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Enhanced Filter Buttons */
.filter-btn {
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Enhanced Art Cards */
.art-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.art-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.art-card:hover::before {
  opacity: 1;
}

.art-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Line Clamp Utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Enhanced Loading Skeleton */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

/* Search Input Enhancements */
#searchInput:focus {
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.5);
}

/* Custom Scrollbar for Select */
#sortSelect::-webkit-scrollbar {
  width: 6px;
}

#sortSelect::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

#sortSelect::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

#sortSelect::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .filter-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}

/* Performance Optimizations */
.art-card,
.art-image,
.art-button {
  will-change: transform;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .art-card,
  .art-image,
  .art-button,
  .hero-title,
  .hero-line,
  .hero-description,
  .hero-buttons,
  .hero-stats,
  .scroll-indicator,
  .shape {
    animation: none;
    transition: none;
  }
}
