@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

.auction-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #0a0e17;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 40%);
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  position: relative;
}

/* Background Grid Animation */
.auction-view::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(500px) rotateX(60deg);
  animation: gridMove 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes gridMove {
  0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(60deg) translateY(40px); }
}

.auction-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  grid-template-rows: auto 1fr;
  gap: 2rem;
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  z-index: 1;
}

/* Header */
.auction-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.auction-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #06b6d4;
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.current-bid-display {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bid-label {
  font-size: 0.9rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bid-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #f59e0b;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

/* Main Content - Item Preview */
.auction-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
}

.item-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.item-icon-large {
  font-size: 6rem;
  filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.4));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.item-name {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.item-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.stat-pill {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  color: #06b6d4;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-arrow {
  color: #f59e0b;
}

/* Sidebar - Bidders */
.auction-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bidders-list {
  flex: 1;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.sidebar-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.bidder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.bidder-row.active {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.bidder-row.passed {
  opacity: 0.5;
  background: rgba(0, 0, 0, 0.2);
}

.bidder-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bidder-avatar {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.bidder-name {
  font-weight: 600;
  color: #e2e8f0;
}

.bidder-coins {
  font-size: 0.9rem;
  color: #f59e0b;
  font-weight: 600;
}

/* Status Overlay */
.status-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  padding: 2rem 4rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.status-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.status-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.status-subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
}
