/* PrestoneX Luxury Design System - Enhanced Font Consistency */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Custom Properties for Consistency */
:root {
  --gold-primary: #D4AF37;
  --gold-light: #F4E4A6;
  --gold-dark: #B8860B;
  --light-luxury: #FEFEFE;
  --light-luxury-alt: #FAF8F5;
  --light-luxury-card: #F8F6F3;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --transition-luxury: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Typography Scale */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
}

/* Enhanced Typography */
.luxury-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--gray-700);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.luxury-subheading {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--gray-700);
  opacity: 0.8;
  line-height: 1.6;
}

/* Gold Divider - Refined */
.gold-divider {
  width: 4rem;
  height: 0.125rem;
  background: linear-gradient(90deg, transparent 0%, var(--gold-primary) 20%, var(--gold-light) 50%, var(--gold-primary) 80%, transparent 100%);
  border: none;
  margin: 1.5rem auto;
  position: relative;
}

.gold-divider::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 0.25rem;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  border-radius: 2px;
  opacity: 0.6;
}

/* Enhanced Buttons */
.luxury-button {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition-luxury);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.luxury-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transition: left 0.6s ease;
}

.luxury-button:hover::before {
  left: 100%;
}

.luxury-button:hover {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.luxury-button-outline {
  background: transparent;
  color: var(--gold-primary);
  border: 2px solid var(--gold-primary);
  padding: 0.75rem 2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition-luxury);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.luxury-button-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gold-primary);
  transition: width 0.5s ease;
  z-index: -1;
}

.luxury-button-outline:hover::before {
  width: 100%;
}

.luxury-button-outline:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* Enhanced Cards */
.luxury-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(252, 250, 247, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.15);
  padding: 1.5rem;
  transition: var(--transition-luxury);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.luxury-card > * {
  position: relative;
  z-index: 3;
}

.luxury-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.05) 50%, transparent 100%);
  transition: left 0.8s ease;
  pointer-events: none;
  z-index: 1;
}

.luxury-card:hover::before {
  left: 100%;
}

.luxury-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(212, 175, 55, 0.25);
}

/* Enhanced Input Fields */
.luxury-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.95);
  font-family: 'Inter', sans-serif;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition-luxury);
  border-radius: 0;
}

.luxury-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
  background: rgba(255, 255, 255, 1);
}

.luxury-input::placeholder {
  color: rgba(55, 65, 81, 0.5);
  font-weight: 400;
}

/* Hero Gradient - Enhanced */
.hero-gradient {
  background: 
    linear-gradient(135deg, var(--light-luxury) 0%, var(--light-luxury-alt) 100%),
    radial-gradient(ellipse at center, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
  position: relative;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(184, 134, 11, 0.015) 0%, transparent 50%);
  pointer-events: none;
  animation: shimmer 12s ease-in-out infinite;
}

/* Section Spacing - Optimized for Better Layout */
.section-spacing {
  padding: 4rem 0;
}

.section-spacing-large {
  padding: 5rem 0;
}

.section-spacing-xl {
  padding: 6rem 0;
}

.section-spacing-sm {
  padding: 3rem 0;
}

/* Content Spacing - Improved */
.content-spacing {
  margin-bottom: 2rem;
}

.content-spacing-lg {
  margin-bottom: 3rem;
}

.content-spacing-xl {
  margin-bottom: 4rem;
}

/* Container Spacing */
.container-padding {
  padding: 0 2rem;
}

.container-padding-lg {
  padding: 0 3rem;
}

@media (min-width: 768px) {
  .container-padding {
    padding: 0 3rem;
  }
  
  .container-padding-lg {
    padding: 0 4rem;
  }
}

@media (min-width: 1024px) {
  .container-padding {
    padding: 0 4rem;
  }
  
  .container-padding-lg {
    padding: 0 6rem;
  }
}

/* Header Spacing Fix */
.header-spacing {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

/* Hamburger Menu Responsive Fix */
@media (min-width: 1024px) {
  .mobile-only {
    display: none !important;
  }
}
}

/* Navigation Spacing */
.nav-spacing {
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem;
}

/* Card Spacing */
.card-spacing {
  margin-bottom: 2.5rem;
  padding: 2rem;
}

/* Text Spacing */
.text-spacing {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Button Spacing */
.button-spacing {
  margin: 1rem 0.5rem;
  padding: 1rem 2rem;
}

/* Enhanced Animations */
@keyframes shimmer {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.95; 
    transform: scale(1.01);
  }
}

@keyframes pulse-gold {
  0%, 100% { 
    opacity: 1;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  }
  50% { 
    opacity: 0.9;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
  }
}

.animate-pulse-gold {
  animation: pulse-gold 3s ease-in-out infinite;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--light-luxury-alt);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  border-radius: 6px;
  border: 2px solid var(--light-luxury-alt);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-primary) 100%);
}

/* Focus States */
.focus-gold:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
  .luxury-heading {
    font-size: var(--font-size-xl);
  }
  
  .luxury-card {
    padding: 1rem;
    margin: 0.25rem;
  }
  
  .luxury-button,
  .luxury-button-outline {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-xs);
  }
  
  .section-spacing {
    padding: 2.5rem 0;
  }
  
  .section-spacing-large {
    padding: 3rem 0;
  }
  
  .section-spacing-xl {
    padding: 4rem 0;
  }
  
  .section-spacing-sm {
    padding: 2rem 0;
  }
  
  .gold-divider {
    width: 3rem;
  }
}

/* High Contrast Mode Support */
@media (forced-colors: active) {
  .luxury-button,
  .luxury-button-outline {
    border: 2px solid;
  }
  
  .luxury-card {
    border: 2px solid;
  }
}

/* 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;
  }
} 

/* Header and Navigation Enhancements */
.header-fixed {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.logo-container {
  transition: transform 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.05);
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu {
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.hamburger-line {
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Mobile Menu Animations - Enhanced */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.mobile-nav-item {
  animation: slideDown 0.3s ease forwards;
}

.mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-item:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav-item:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav-item:nth-child(4) { animation-delay: 0.4s; }
.mobile-nav-item:nth-child(5) { animation-delay: 0.5s; }
.mobile-nav-item:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Header Adjustments */
@media (max-width: 1024px) {
  .header-nav-left,
  .header-nav-right {
    display: none;
  }
  
  .header-logo {
    flex: 1;
    justify-content: center;
  }
  
  .mobile-menu-button {
    display: flex;
  }
}

@media (min-width: 1025px) {
  .mobile-menu-button {
    display: none;
  }
  
  .header-nav-left,
  .header-nav-right {
    display: flex;
    flex: 1;
  }
  
  .header-nav-right {
    justify-content: flex-end;
  }
}

/* Enhanced Scrollbar - Admin Panel Optimized */
*::-webkit-scrollbar {
  width: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--cream);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-primary), var(--gold-light));
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Admin Panel Specific Scrolling */
.admin-scroll-container {
  max-height: 80vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.admin-modal-scroll {
  max-height: 70vh;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding-right: 4px;
}

/* Smooth scrolling for all containers */
html {
  scroll-behavior: smooth;
}

/* Prevent horizontal overflow */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  position: relative;
}

/* Fix for modal scrolling */
.modal-content {
  overflow-y: auto;
  max-height: calc(100vh - 120px);
}

/* Custom scrollbar for product thumbnails */
.thumbnail-scroller {
  scrollbar-width: thin;
  scrollbar-color: #D4AF37 #f5f5f5;
}

.thumbnail-scroller::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-scroller::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 3px;
}

.thumbnail-scroller::-webkit-scrollbar-thumb {
  background: #D4AF37;
  border-radius: 3px;
  transition: background 0.3s ease;
}

.thumbnail-scroller::-webkit-scrollbar-thumb:hover {
  background: #B8941F;
} 