/* Bidumo - Art Auction Platform Styles */

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --deep-black: #0c0c0c;
  --charcoal: #2c2c2c;
  --slate: #4a4a4a;
  --accent-tan: #bea98e;
  --accent-tan-hover: #b09a7f;
  --accent-tan-light: rgba(190, 169, 142, 0.15);
  --white: #ffffff;
  --warm-bg: #f7f5f2;
  --border-light: rgba(44, 44, 44, 0.08);
  --border-medium: rgba(44, 44, 44, 0.15);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-full: 9999px;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --max-width: 1160px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--deep-black);
  background-color: var(--warm-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-serif {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.font-sans {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, .h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2, .h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h3, .h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

.text-sm {
  font-size: 13px;
}

.text-meta {
  font-size: 13px;
  color: var(--slate);
}

.label-role {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--slate);
}

@media (min-width: 768px) {
  h1, .h1 { font-size: 40px; }
  h2, .h2 { font-size: 28px; }
  h3, .h3 { font-size: 24px; }
}

@media (min-width: 1024px) {
  h1, .h1 { font-size: 48px; }
  h2, .h2 { font-size: 32px; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container { padding: 0 24px; }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   CARDS & SURFACES
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: 16px;
}

@media (min-width: 768px) {
  .card-body { padding: 20px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-tan);
  color: var(--deep-black);
}

.btn-primary:hover {
  background-color: var(--accent-tan-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--charcoal);
  border: 1px solid var(--accent-tan);
}

.btn-secondary:hover {
  background-color: var(--accent-tan-light);
}

.btn-ghost {
  color: var(--charcoal);
  padding: 8px 16px;
}

.btn-ghost:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   PILLS / TAGS
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.pill-active {
  background-color: var(--accent-tan);
  color: var(--deep-black);
}

.pill-inactive {
  background-color: transparent;
  color: var(--slate);
  border: 1px solid var(--border-medium);
}

.pill-inactive:hover {
  border-color: var(--accent-tan);
  color: var(--deep-black);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.status-live { background-color: #e8f5e9; color: #2e7d32; }
.status-awaiting { background-color: var(--accent-tan-light); color: #8b6914; }
.status-ended { background-color: #f5f5f5; color: var(--slate); }
.status-draft { background-color: #f5f5f5; color: var(--slate); }
.status-sold { background-color: var(--accent-tan); color: var(--deep-black); }

/* ============================================================
   INPUTS
   ============================================================ */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
}

.input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--deep-black);
  transition: border-color var(--transition-fast);
  outline: none;
}

.input:focus {
  border-color: var(--accent-tan);
}

.input-error {
  border-color: #c62828;
}

.error-text {
  font-size: 13px;
  color: #c62828;
}

textarea.input {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  height: 56px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--deep-black);
}

.nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

@media (min-width: 768px) {
  .nav-bottom { display: none; }
}

.nav-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 12px;
  font-size: 10px;
  color: var(--slate);
  transition: color var(--transition-fast);
}

.nav-bottom-item.active {
  color: var(--deep-black);
}

.nav-desktop-links {
  display: none;
  align-items: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .nav-desktop-links { display: flex; }
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--deep-black);
}

/* Page offset for fixed nav */
.page-content {
  padding-top: 56px;
  padding-bottom: 72px;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .page-content { padding-bottom: 0; }
}

/* Landing page mobile nav spacing */
.landing-page {
  padding-bottom: 72px;
}

@media (min-width: 768px) {
  .landing-page { padding-bottom: 0; }
}

/* Hide "How It Works" on mobile — carousel + auctions are shown directly */
@media (max-width: 767px) {
  .how-it-works-section { display: none; }
}

/* ============================================================
   LANDING SECTIONS
   ============================================================ */
.stream-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.stream-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .stream-card { max-width: 800px; }
}

.stream-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background-color: #e8e4de;
}

.stream-body {
  padding: 24px;
}

@media (min-width: 768px) {
  .stream-body { padding: 32px; }
}

/* Track selector pills */
.track-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

.track-selector::-webkit-scrollbar {
  display: none;
}

/* ============================================================
   AUCTION CARD
   ============================================================ */
.auction-card {
  cursor: pointer;
}

.auction-card-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background-color: #e8e4de;
}

.auction-card-info {
  padding: 12px 16px 16px;
}

.auction-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.auction-card-artist {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 8px;
}

.auction-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.auction-card-price {
  font-size: 15px;
  font-weight: 600;
}

.auction-card-time {
  font-size: 12px;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   ARTIST CARD
   ============================================================ */
.artist-card {
  text-align: center;
  padding: 24px 16px;
  cursor: pointer;
}

.artist-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  background-color: #e8e4de;
}

.artist-card-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

/* ============================================================
   AUCTION DETAIL
   ============================================================ */
.auction-hero {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background-color: #e8e4de;
}

@media (min-width: 768px) {
  .auction-detail-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
  }

  .auction-hero {
    aspect-ratio: auto;
    max-height: 600px;
    border-radius: var(--radius-md);
  }
}

@media (min-width: 1024px) {
  .auction-detail-layout {
    grid-template-columns: 1fr 440px;
    gap: 48px;
  }
}

.bid-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 72px;
}

.bid-current {
  font-size: 28px;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
}

.bid-estimate {
  font-size: 13px;
  color: var(--slate);
}

.detail-section {
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.detail-key {
  font-size: 13px;
  color: var(--slate);
}

.detail-value {
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================
   ARTIST PROFILE
   ============================================================ */
.profile-hero {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #e8e4de;
}

@media (min-width: 768px) {
  .profile-hero { height: 300px; }
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  margin-top: -48px;
  background-color: #e8e4de;
}

@media (min-width: 768px) {
  .profile-avatar {
    width: 100px;
    height: 100px;
    margin-top: -60px;
  }
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  animation: fadeIn var(--transition-normal);
}

@media (min-width: 768px) {
  .modal-overlay { align-items: center; }
}

.modal {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px 12px 0 0;
  padding: 24px;
  animation: slideUp var(--transition-normal);
}

@media (min-width: 768px) {
  .modal {
    border-radius: var(--radius-md);
    max-height: 80vh;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* ============================================================
   ONBOARDING STEPS
   ============================================================ */
.onboard-step {
  min-height: calc(100vh - 112px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
  max-width: 400px;
  margin: 0 auto;
}

.onboard-step .h1 {
  margin-bottom: 8px;
}

.onboard-step .text-meta {
  margin-bottom: 32px;
}

.step-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.step-dot {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--border-medium);
  transition: background-color var(--transition-normal);
}

.step-dot.active {
  background-color: var(--accent-tan);
}

.step-dot.completed {
  background-color: var(--deep-black);
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
  border-bottom: 1px solid var(--border-medium);
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.text-center { text-align: center; }
.text-slate { color: var(--slate); }
.text-tan { color: var(--accent-tan); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.w-full { width: 100%; }
.hidden { display: none; }
.relative { position: relative; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeSlideIn {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.animate-in {
  animation: fadeSlideIn 0.4s ease forwards;
}

/* Stagger children */
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 60ms; }
.stagger > *:nth-child(3) { animation-delay: 120ms; }
.stagger > *:nth-child(4) { animation-delay: 180ms; }
.stagger > *:nth-child(5) { animation-delay: 240ms; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 3px;
}

/* ============================================================
   LOADING
   ============================================================ */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-medium);
  border-top-color: var(--accent-tan);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 48px 0 32px;
  margin-top: 64px;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--accent-tan);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ============================================================
   CAROUSEL
   ============================================================ */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img,
.carousel-hero-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

@media (min-width: 480px) {
  .carousel-slide img, .carousel-hero-img { height: 380px; }
}

@media (min-width: 768px) {
  .carousel-slide img, .carousel-hero-img { height: 480px; }
}

@media (min-width: 1024px) {
  .carousel-slide img, .carousel-hero-img { height: 540px; }
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: var(--white);
}

@media (min-width: 768px) {
  .carousel-overlay { padding: 48px 40px; }
}

.carousel-overlay-inner {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.carousel-artist-info {
  flex: 1;
  min-width: 0;
}

.carousel-artist-label {
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 6px;
}

.carousel-artist-name {
  font-size: clamp(18px, 4vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
}

.carousel-artist-bio {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .carousel-artist-bio { font-size: 14px; -webkit-line-clamp: 3; }
}

.carousel-lot-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 12px;
  width: 170px;
  flex-shrink: 0;
}

@media (max-width: 479px) {
  .carousel-lot-card { display: none; }
}

@media (min-width: 768px) {
  .carousel-lot-card { width: 210px; padding: 16px; }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: var(--deep-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  z-index: 10;
  transition: background var(--transition-fast);
}

.carousel-btn:hover {
  background: var(--white);
}

.carousel-btn-prev { left: 12px; }
.carousel-btn-next { right: 12px; }

@media (min-width: 768px) {
  .carousel-btn-prev { left: 24px; }
  .carousel-btn-next { right: 24px; }
}

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 16px 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-medium);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast);
}

.carousel-dot.active {
  background: var(--deep-black);
}

/* ============================================================
   AUCTION TILE GRID
   ============================================================ */

/* Mobile-first: single full-width column */
.auction-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 640px) {
  .auction-feed {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (min-width: 1024px) {
  .auction-feed {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* Mobile snap-scroll: each card is a snap target */
@media (max-width: 639px) {
  html {
    scroll-snap-type: y proximity;
    scroll-padding-top: 56px;
  }

  .auction-tile-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-radius: 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: none;
    margin: 0;
  }

  .auction-tile-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* 9:16 vertical video ratio for mobile */
  .auction-tile-media {
    aspect-ratio: 9 / 16;
  }

  /* Carousel is also a snap target on landing page */
  .carousel {
    scroll-snap-align: start;
  }
}

/* ============================================================
   AUCTION TILE CARD (square: media top, artist mid, chin bottom)
   ============================================================ */
.auction-tile-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.auction-tile-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.auction-tile-media {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background-color: #e8e4de;
  cursor: pointer;
  flex-shrink: 0;
}

.auction-tile-media-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.auction-tile-media:hover .auction-tile-media-inner {
  transform: scale(1.03);
}

.auction-tile-artist {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px 0;
  cursor: pointer;
}

.auction-tile-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background-color: #e8e4de;
  background-size: cover;
  background-position: center;
}

@media (min-width: 640px) {
  .auction-tile-avatar { width: 36px; height: 36px; }
}

.auction-tile-artist-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--deep-black);
  line-height: 1.3;
}

@media (min-width: 640px) {
  .auction-tile-artist-name { font-size: 13px; }
}

.auction-tile-bio {
  font-size: 10px;
  color: var(--slate);
  line-height: 1.4;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .auction-tile-bio { font-size: 11px; }
}

.auction-tile-chin {
  padding: 8px 12px 12px;
  margin-top: 8px;
  border-top: 1px solid var(--border-light);
}

.auction-tile-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--deep-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  cursor: pointer;
}

@media (min-width: 640px) {
  .auction-tile-title { font-size: 13px; }
}

.auction-tile-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
}

.auction-tile-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--deep-black);
}

@media (min-width: 640px) {
  .auction-tile-price { font-size: 15px; }
}

.auction-tile-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Compact tweaks for very small phones */
@media (max-width: 479px) {
  .auction-feed { gap: 8px; }
  .auction-tile-artist { padding: 7px 9px 0; gap: 6px; }
  .auction-tile-avatar { width: 26px; height: 26px; }
  .auction-tile-bio { -webkit-line-clamp: 1; font-size: 9px; }
  .auction-tile-chin { padding: 6px 9px 9px; margin-top: 5px; }
  .auction-tile-title { font-size: 10px; margin-bottom: 3px; }
  .auction-tile-meta { margin-bottom: 6px; }
  .auction-tile-price { font-size: 11px; }
  .auction-tile-actions { gap: 4px; }
  .watch-btn-card { width: 30px; height: 30px; min-width: 30px; }
}

/* ============================================================
   AUCTION SPLIT CARD (artist left, video right)
   ============================================================ */

.auction-split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 240px;
  overflow: hidden;
}

.auction-split-card-featured {
  min-height: 280px;
}

@media (min-width: 640px) {
  .auction-split-card { min-height: 280px; }
  .auction-split-card-featured { min-height: 320px; }
}

@media (min-width: 1024px) {
  .auction-split-card { min-height: 300px; }
  .auction-split-card-featured { min-height: 360px; }
}

/* LEFT panel */
.auction-split-left {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--white);
  border-right: 1px solid var(--border-light);
  min-width: 0;
}

@media (min-width: 640px) {
  .auction-split-left { padding: 20px; }
}

/* Artist row inside left panel */
.auction-split-artist {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.auction-split-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e8e4de;
}

@media (min-width: 640px) {
  .auction-split-avatar { width: 52px; height: 52px; }
}

.auction-split-artist-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--deep-black);
  line-height: 1.3;
}

@media (min-width: 640px) {
  .auction-split-artist-name { font-size: 15px; }
}

.auction-split-location {
  font-size: 10px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.auction-split-bio {
  font-size: 12px;
  color: var(--slate);
  line-height: 1.5;
  margin: 0 0 0 0;
}

@media (min-width: 640px) {
  .auction-split-bio { font-size: 13px; }
}

.auction-split-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--deep-black);
  line-height: 1.3;
  margin-bottom: 8px;
}

@media (min-width: 640px) {
  .auction-split-title { font-size: 15px; }
}

.auction-split-bid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.auction-split-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate);
  margin-bottom: 2px;
}

.auction-split-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--deep-black);
}

@media (min-width: 640px) {
  .auction-split-price { font-size: 18px; }
}

.auction-split-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--slate);
}

/* RIGHT panel */
.auction-split-right {
  position: relative;
  overflow: hidden;
  background-color: #e8e4de;
}

.auction-split-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   VIDEO-FIRST AUCTION MEDIA
   ============================================================ */
.auction-card-video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background-color: #e8e4de;
}

.auction-card-media {
  width: 100%;
  aspect-ratio: 16/9;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.video-play-overlay-lg {
  width: 64px;
  height: 64px;
}

.auction-video-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.auction-video-player {
  width: 100%;
  /* Default 9:16 for vertical mobile video; browser adjusts if video is landscape */
  aspect-ratio: 9 / 16;
  display: block;
  background: #000;
  max-height: 80vh;
  object-fit: contain;
}

@media (min-width: 640px) {
  .auction-video-player {
    max-height: 70vh;
  }
}

.auction-secondary-images {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.auction-secondary-images::-webkit-scrollbar {
  display: none;
}

.auction-secondary-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.auction-secondary-img:hover {
  border-color: var(--accent-tan);
}

@media (min-width: 768px) {
  .auction-secondary-img {
    width: 100px;
    height: 100px;
  }
}

/* ============================================================
   ARTIST-CENTERED: SQUARE AVATARS + INFO BARS
   ============================================================ */
.artist-avatar-square {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artist-avatar-square-lg {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auction-card-artist {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
}

.auction-card-artist-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--deep-black);
  line-height: 1.3;
}

.auction-card-artist-bio {
  font-size: 11px;
  color: var(--slate);
  line-height: 1.3;
  margin-top: 1px;
}

.artist-detail-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow var(--transition-normal);
}

.artist-detail-card:hover {
  box-shadow: var(--shadow-md);
}

.profile-avatar-square {
  border-radius: var(--radius-md) !important;
}

/* ============================================================
   PROMINENT BID BUTTON
   ============================================================ */
.bid-btn {
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.auction-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   NOTIFICATION BELL + DROPDOWN
   ============================================================ */
.nav-notif-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--slate);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-notif-btn:hover {
  color: var(--deep-black);
  background: rgba(0,0,0,0.04);
}

.nav-notif-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #c62828;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

.nav-notif-badge-mobile {
  top: -2px;
  right: -2px;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-height: 440px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid var(--border-light);
  overflow-y: auto;
  z-index: 200;
  animation: fadeSlideIn 0.15s ease;
}

@media (max-width: 400px) {
  .notif-dropdown { width: calc(100vw - 24px); right: -12px; }
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background: var(--white);
}

.notif-dropdown-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.notif-empty {
  padding: 32px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--slate);
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}

.notif-item:last-child { border-bottom: none; }

.notif-item:hover { background: var(--warm-bg); }

.notif-item-unread { background: rgba(190, 169, 142, 0.08); }

.notif-item-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--deep-black);
  margin-bottom: 2px;
  line-height: 1.3;
}

.notif-item-msg {
  font-size: 12px;
  color: var(--slate);
  line-height: 1.4;
  margin-bottom: 3px;
}

.notif-item-time {
  font-size: 11px;
  color: var(--slate);
  opacity: 0.7;
}

/* ============================================================
   WATCH BELL BUTTONS
   ============================================================ */
.watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  color: var(--slate);
  background: transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.watch-btn:hover {
  border-color: var(--accent-tan);
  color: var(--deep-black);
}

.watch-btn-active {
  background: var(--accent-tan-light);
  border-color: var(--accent-tan);
  color: var(--deep-black);
}

.watch-btn-card {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  color: var(--slate);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.watch-btn-card:hover {
  border-color: var(--accent-tan);
  color: var(--deep-black);
}

.watch-btn-card-active {
  background: var(--accent-tan);
  border-color: var(--accent-tan);
  color: var(--deep-black);
}

/* ============================================================
   BID UI ENHANCEMENTS
   ============================================================ */
.bid-increment-hint {
  font-size: 12px;
  color: var(--slate);
  padding: 8px 12px;
  background: var(--warm-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.bid-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--slate);
  padding: 8px 12px;
  background: var(--warm-bg);
  border-radius: var(--radius-sm);
}

.bid-leading-badge {
  font-size: 11px;
  font-weight: 600;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bid-extended-notice {
  font-size: 12px;
  color: #8b6914;
  background: var(--accent-tan-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 12px;
}

.bid-ended-box {
  padding: 12px 16px;
  background: rgba(0,0,0,0.04);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* Actions row in split cards */
.auction-split-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Wide-spaced uppercase text for labels */
.text-wide {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--slate);
}

.nav-link {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
}
