/*
 * AuctionPropertyToday - Global Stylesheet
 * Premium Luxury Real Estate Auction Platform
 * Design: Apple-style Minimal, Glassmorphism, Elegant Gold Accents
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Font Families */
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Theme: Dark Mode (Default) */
  --bg-color: #070708;
  --bg-surface: #121214;
  --bg-surface-elevated: #1a1a1e;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-gold: rgba(212, 175, 55, 0.2);
  
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #6e6e73;
  
  --gold-primary: #d4af37;
  --gold-hover: #f5d061;
  --gold-dark: #aa841c;
  --gold-gradient: linear-gradient(135deg, #f5d061 0%, #d4af37 50%, #aa841c 100%);
  --gold-glow: rgba(212, 175, 55, 0.15);
  
  --glass-bg: rgba(18, 18, 20, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.4);
  
  --status-pending: #e0a92d;
  --status-accepted: #2fa868;
  --status-completed: #1a8cff;
  --status-cancelled: #e24c4c;
  
  /* Animations */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Theme Toggle styles */
[data-theme="light"] {
  --bg-color: #f7f7f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f0f0f5;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-gold: rgba(212, 175, 55, 0.3);
  
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #86868b;
  
  --gold-primary: #b38f24;
  --gold-hover: #d4af37;
  --gold-dark: #8c6e14;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #b38f24 50%, #8c6e14 100%);
  --gold-glow: rgba(179, 143, 36, 0.12);
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-shadow: rgba(0, 0, 0, 0.05);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  transition: background-color 0.5s ease, color 0.5s ease;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition-smooth);
}

input, select, textarea {
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition-smooth);
}

/* Premium Typography classes */
h1, h2, h3, h4, h5, h6, .luxury-heading {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.gold-text-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--gold-primary);
}

.apple-subtitle {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.body-large {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

/* Glassmorphism Class */
.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px var(--glass-shadow);
}

/* Premium Buttons */
.btn-luxury {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.25rem;
  background: var(--gold-gradient);
  color: #070708 !important;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border-radius: 4px;
  box-shadow: 0 4px 15px var(--gold-glow);
  transform: translateY(0);
}

.btn-luxury:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.3);
}

.btn-luxury-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.25rem;
  border: 1px solid var(--gold-primary);
  background: transparent;
  color: var(--gold-primary);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transform: translateY(0);
}

.btn-luxury-outline:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold-hover);
  color: var(--gold-hover);
  transform: translateY(-2px);
}

.btn-minimal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  font-size: 0.95rem;
}

.btn-minimal:hover {
  color: var(--gold-primary);
  border-bottom: 1px solid var(--gold-primary);
}

/* Shimmer Loading Animations */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-surface) 25%,
    var(--bg-surface-elevated) 50%,
    var(--bg-surface) 75%
  );
  background-size: 200% 100%;
  animation: loadingShimmer 1.5s infinite;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Common Layout Utilities */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Decorative Gold Dots */
.gold-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  margin: 0 0.5rem;
  vertical-align: middle;
}
