:root {
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-primary-light: #818cf8;
  --color-secondary: #8b5cf6;
  --color-accent: #ec4899;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  
  --color-bg: #ffffff;
  --color-bg-secondary: #f8fafc;
  --color-bg-tertiary: #f1f5f9;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body > .container {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 2rem; }
}

div.page-details h2 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Modern Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: var(--transition);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar.scroll-down {
  transform: translateY(-100%);
}

.navbar.scroll-up {
  box-shadow: var(--shadow-lg);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.navbar-brand strong {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text) !important;
  transition: var(--transition);
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius);
}

.nav-link:hover {
  color: var(--color-primary) !important;
  background-color: var(--color-bg-tertiary);
}

/* Modern Buttons */
.btn {
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.625rem 1.5rem;
  transition: var(--transition);
  border: none;
  box-shadow: var(--shadow-sm);
  text-transform: none;
  letter-spacing: 0;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
}

.btn-outline-primary {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--color-primary);
  color: white;
}

.btn-outline-secondary {
  border: 2px solid var(--color-border);
  color: var(--color-text);
  background: white;
}

.btn-outline-secondary:hover {
  border-color: var(--color-text);
  color: var(--color-text);
  background: var(--color-bg-tertiary);
}

/* Modern Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: var(--radius-xl);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin-bottom: 3rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  color: white;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .hero-section h1 {
    font-size: 4.5rem;
  }
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.hero-section .btn {
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

/* Modern Cards */
.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
  background: white;
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.card-img-top {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-header {
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  background: white;
  border-top: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
}

.card-title {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Modern Badges */
.badge {
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}

.bg-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%) !important;
}

.bg-secondary {
  background-color: var(--color-text-muted) !important;
}

.bg-success {
  background-color: var(--color-success) !important;
}

.bg-warning {
  background-color: var(--color-warning) !important;
}

.bg-danger {
  background-color: var(--color-danger) !important;
}

/* Modern Forms */
.form-label {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.form-control, .form-select {
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.625rem 1rem;
  transition: var(--transition);
  font-size: 1rem;
  background-color: white;
}

.form-control:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

.form-control:hover, .form-select:hover {
  border-color: var(--color-text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* User Avatar */
.user-avatar {
  cursor: pointer;
  transition: var(--transition);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  font-weight: 600;
}

.user-avatar:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.user-avatar-sm {
width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.user-avatar-sm:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Dropdown */
.dropdown-menu {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.dropdown-item {
  border-radius: var(--radius);
  padding: 0.625rem 1rem;
  transition: var(--transition);
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: var(--color-bg-tertiary);
  color: var(--color-primary);
}

.dropdown-divider {
  border-color: var(--color-border);
  margin: 0.5rem 0;
}

/* Modern Footer */
.footer {
  background: white;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  padding: 2rem 0;
}

.footer a {
color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.footer a:hover {
  color: var(--color-primary);
}

/* Grid Spacing */
.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

/* Pagination */
.pagination {
  gap: 0.5rem;
}

.page-item .page-link {
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.page-item .page-link:hover {
  background-color: var(--color-bg-tertiary);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.page-item.active .page-link {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-color: var(--color-primary);
  color: white;
}

/* Toast Notifications */
.toast {
  min-width: 300px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  background: white;
}

.toast-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-weight: 600;
}

.toast-body {
  padding: 1rem;
}

/* Item Card Animations */
.item-card {
  transition: var(--transition);
}

.item-card.opacity-50 {
  opacity: 0.5;
}

/* List Group */
.list-group-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  transition: var(--transition);
  background: white;
}

.list-group-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.list-group-flush .list-group-item {
  border-left: none;
  border-right: none;
  border-radius: 0;
}

.list-group-flush .list-group-item:first-child {
  border-top: none;
}

.list-group-flush .list-group-item:last-child {
  border-bottom: none;
}

/* Alert Messages */
.alert {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
padding: 1rem 1.25rem;
  font-weight: 500;
}

.alert-info {
  background-color: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}

.alert-danger {
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.alert-success {
  background-color: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}

/* Image Thumbnails */
.img-thumbnail {
  max-height: 400px;
  object-fit: contain;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  background-color: white;
}

/* Utility Classes */
.text-muted {
  color: var(--color-text-muted) !important;
}

.text-decoration-none {
  text-decoration: none !important;
}

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

/* Rounded Corners */
.rounded-circle {
  border-radius: 50% !important;
}

.rounded {
  border-radius: var(--radius) !important;
}

.rounded-lg {
  border-radius: var(--radius-lg) !important;
}

/* Loading States */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Ripple Effect for Buttons */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Navbar Scroll Behavior */
.navbar {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

.navbar.scroll-down {
  transform: translateY(-100%);
}

.navbar.scroll-up {
  box-shadow: var(--shadow-lg);
}

/* Image Loading State */
img {
  transition: opacity 0.3s ease;
}

img[data-src] {
opacity: 0.5;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Card Loading State */
.card.loading {
  pointer-events: none;
  opacity: 0.7;
}

.card.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
}

/* Form Loading Spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* Enhanced Focus States */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* Smooth Page Transitions */
main {
  animation: fadeInPage 0.5s ease-in;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image Preview */
.image-preview {
  animation: fadeIn 0.3s ease-in;
  padding: 1rem;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
  text-align: center;
}

.image-preview img {
  display: block;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

/* Better Text Selection */
::selection {
  background-color: rgba(99, 102, 241, 0.2);
  color: var(--color-text);
}

::-moz-selection {
  background-color: rgba(99, 102, 241, 0.2);
  color: var(--color-text);
}

/* Prevent layout shift */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Better link hover states */
a {
  transition: var(--transition);
}

a:not(.btn):hover {
  opacity: 0.8;
}

/* Status Indicators */
.online-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-success);
  border: 2px solid white;
  position: absolute;
  bottom: 0;
  right: 0;
}

/* Pulse Animation for Live Elements */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Improved Tooltip Styling */
.tooltip {
  font-size: 0.875rem;
}

.tooltip-inner {
  background-color: var(--color-text);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
}

/* Print Styles */
@media print {
  .navbar, .footer, .btn, form {
    display: none !important;
  }
  
  body {
    background: white;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --color-border: #000;
    --color-text-muted: #333;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark Mode Preparation (for future implementation) */
@media (prefers-color-scheme: dark) {
  /* Dark mode styles can be added here in the future */
}

/* Auction-Style Card Design */
.auction-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.auction-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.auction-card-image {
position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow: hidden;
}

.auction-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.auction-card:hover .auction-card-image img {
  transform: scale(1.05);
}

.auction-badge {
  position: absolute;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  z-index: 10;
  letter-spacing: 0.025em;
  transition: var(--transition);
}

.auction-badge:hover {
  transform: scale(1.05);
}

.auction-badge i {
  font-size: 1rem;
}

.auction-badge-upvotes {
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
  color: white;
}

.auction-badge-items {
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.auction-badge-featured {
  bottom: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  letter-spacing: 0.05em;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3), 0 2px 4px -2px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.5), 0 4px 6px -4px rgba(99, 102, 241, 0.5);
  }
}

.auction-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.auction-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  color: var(--color-text);
}

.auction-card-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.auction-card-title a:hover {
  color: var(--color-primary);
}

.auction-card-description {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.auction-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  font-size: 0.875rem;
}

.auction-card-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.user-avatar-sm {
width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.user-avatar-sm:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.user-name {
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.auction-card-date {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state svg {
  margin: 0 auto 1.5rem;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.empty-state p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* Responsive adjustments for auction cards */
@media (max-width: 767px) {
  .auction-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .auction-card-date {
    width: 100%;
  }
  
  .user-name {
 max-width: 200px;
  }
}

/* Details Page Enhancements */
.details-image-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.details-main-image {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
  display: block;
  background: white;
}

/* Explore Page Header */
.explore-header {
  padding: 2rem 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 2rem;
}

.explore-header h1 {
  color: var(--color-text);
  font-size: 2.5rem;
}

.explore-header .lead {
  font-size: 1.125rem;
}

.btn-group .btn-outline-secondary {
  border-color: var(--color-border);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.9375rem;
}

.btn-group .btn-outline-secondary:hover,
.btn-group .btn-outline-secondary.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.btn-group .btn-outline-secondary i {
  font-size: 1rem;
}

@media (max-width: 767px) {
  .explore-header h1 {
 font-size: 2rem;
  }
  
  .btn-group {
    display: flex;
width: 100%;
  }
  
  .btn-group .btn {
    flex: 1;
    font-size: 0.8125rem;
    padding: 0.5rem 0.5rem;
  }
  
  .btn-group .btn i {
    display: none;
  }
}

/* Authentication Pages */
.auth-container {
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 3rem 2.5rem;
  width: 100%;
max-width: 480px;
  border: 1px solid var(--color-border);
}

@media (max-width: 576px) {
  .auth-card {
  padding: 2rem 1.5rem;
  }
}

.auth-header {
  margin-bottom: 2rem;
}

.auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  margin: 0 auto;
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.auth-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.auth-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-border);
  z-index: 0;
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 1rem;
  background: white;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1;
}

.auth-footer {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

/* Social Login Buttons */
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: white;
  color: var(--color-text);
  transition: var(--transition);
  width: 100%;
}

.btn-social:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-social i {
  font-size: 1.25rem;
}

.btn-google {
  border-color: #e8e8e8;
}

.btn-google:hover {
  border-color: #db4437;
  background: #fff;
  color: #db4437;
}

.btn-facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: white;
}

.btn-facebook:hover {
  background: #166fe5;
  border-color: #166fe5;
  color: white;
  box-shadow: 0 10px 20px -5px rgba(24, 119, 242, 0.4);
}

.btn-apple {
  background: #000;
  border-color: #000;
  color: white;
}

.btn-apple:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: white;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.4);
}

/* Auth Form Styles */
.auth-card .form-control {
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.auth-card .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.auth-card .form-label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.auth-card .form-check-label {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.auth-card .btn-success {
  background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
  border: none;
  color: white;
  padding: 0.875rem;
  font-size: 1rem;
}

.auth-card .btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, var(--color-success) 100%);
  box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.auth-card .btn-primary {
  padding: 0.875rem;
  font-size: 1rem;
}

/* Validation Errors */
.auth-card .text-danger {
  font-size: 0.875rem;
  margin-top: 0.25rem;
display: block;
}

.auth-card .alert {
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

a.auction-card-link {
  text-decoration: none;
}

/* Details Page Description Styling */
.details-description-card {
  height: auto !important;
  min-height: 0 !important;
}

.details-description-card .card-body {
  height: auto !important;
}

.description-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
  white-space: normal;
  line-height: 1.6;
  font-size: 0.9375rem;
  color: var(--color-text);
  margin: 0;
  padding: 0;
}

/* Our Take / AI Description Section Styling */
.description-content h2,
.description-content h3,
.description-content h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.description-content h2:first-child,
.description-content h3:first-child,
.description-content h4:first-child {
  margin-top: 0;
}

/* Add icons to specific headings */
.description-content h2:first-child::before,
.description-content h3:first-child::before,
.description-content h4:first-child::before {
  content: "💡";
  font-size: 0.875rem;
}

/* Style Pros heading */
.description-content h2:nth-of-type(2)::before,
.description-content h3:nth-of-type(2)::before,
.description-content h4:nth-of-type(2)::before {
  content: "✅";
  font-size: 0.875rem;
}

/* Style Suggestions heading */
.description-content h2:nth-of-type(3)::before,
.description-content h3:nth-of-type(3)::before,
.description-content h4:nth-of-type(3)::before {
  content: "💭";
  font-size: 0.875rem;
}

.description-content p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.description-content p:last-child {
  margin-bottom: 0;
}

.description-content em {
  color: var(--color-primary);
  font-style: italic;
  font-weight: 500;
}

.description-content strong {
  color: var(--color-text);
  font-weight: 700;
}

/* Compact card for AI description */
.details-description-card .card-body {
  padding: 1.25rem !important;
}

.details-description-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 0.75rem;
}

.details-description-card h5 i {
  color: var(--color-primary);
}