* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

.header {
  background: #2c3e50;
  color: white;
  padding: 20px;
}

.header .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 28px;
}

.header nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
}

.header nav a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #ddd;
}

.product-info {
  padding: 20px;
}

.product-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.product-price {
  color: #e74c3c;
  font-size: 24px;
  font-weight: bold;
  margin: 10px 0;
}

.product-meta {
  color: #7f8c8d;
  font-size: 14px;
  margin: 5px 0;
}

.status-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.status-pending {
  background: #f39c12;
  color: white;
}

.status-active {
  background: #27ae60;
  color: white;
}

.status-closed {
  background: #95a5a6;
  color: white;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #2980b9;
}

.btn-success {
  background: #27ae60;
}

.btn-success:hover {
  background: #229954;
}

.alert {
  padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.6);
  }
}

.gradient-animate {
  background: linear-gradient(-45deg, #3d5deb, #7b3abd, #c749d5, #1775c8);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.auction-card {
  transition: all 0.3s ease;
}

.auction-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-card {
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: scale(1.05);
}

.timer-badge {
  animation: pulse-glow 2s ease-in-out infinite;
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-bar {
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pulse-ring {
  animation: pulse-ring 2s ease-out infinite;
}

.slide-up {
  animation: slide-up 0.5s ease-out;
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bid-history-item {
  transition: all 0.3s ease;
}

.bid-history-item:hover {
  background: #f9fafb;
  transform: translateX(5px);
}

.image-gallery-thumb {
  transition: all 0.3s ease;
  cursor: pointer;
}

.image-gallery-thumb:hover {
  transform: scale(1.05);
}

.image-gallery-thumb.active {
  border-color: #7c3aed;
  transform: scale(1.05);
}

.place-bid-btn {
  transition: all 0.3s ease;
}

.place-bid-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.watch-btn {
  transition: all 0.3s ease;
}

.watch-btn:hover {
  transform: translateY(-2px);
}

.share-btn {
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: #f3f4f6;
  transform: rotate(15deg);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.stat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: scale(1.05);
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-card {
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* small extra styles */
.thumb-active {
  border-color: rgba(124, 58, 237, 1);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.12);
  z-index: -1;
}

/* scrollbar for history */
.custom-scroll::-webkit-scrollbar {
  width: 8px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
}
