@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  
  --luxury-gold: #d4af37;
  --luxury-gold-light: #f5d76e;
  --luxury-gold-dark: #c9a227;
  --luxury-gold-accent: #e8c547;
  
  
  --luxury-black: #0f0f0f;
  --luxury-black-light: #1a1a1a;
  --luxury-black-medium: #2a2a2a;
  --luxury-gray-dark: #3a3a3a;
  
  
  --luxury-gray-50: #fafafa;
  --luxury-gray-100: #f5f5f5;
  --luxury-gray-200: #e5e5e5;
  --luxury-gray-300: #d4d4d4;
  --luxury-gray-400: #a3a3a3;
  --luxury-gray-500: #737373;
  --luxury-gray-600: #525252;
  --luxury-gray-700: #404040;
  --luxury-gray-800: #262626;
  --luxury-gray-900: #171717;
  
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-luxury: 0 4px 20px rgba(212, 175, 55, 0.15);
  --shadow-luxury-gold: 0 8px 30px rgba(212, 175, 55, 0.25);
  
  
  --gradient-gold: linear-gradient(135deg, var(--luxury-gold) 0%, var(--luxury-gold-light) 100%);
  --gradient-gold-dark: linear-gradient(135deg, var(--luxury-gold-dark) 0%, var(--luxury-gold) 100%);
  --gradient-dark: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(15, 15, 15, 0.8) 0%, rgba(15, 15, 15, 0.4) 100%);
  --gradient-gold-overlay: linear-gradient(135deg, var(--luxury-gold)1a 0%, var(--luxury-gold-light)0d 100%);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

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

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

.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #f59e0b #1e293b;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 8px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border-radius: 8px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
}

/* Scrollbar hide utility for mobile horizontal scrolling */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 
    'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 
    'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 300;
  background: #fafafa;
  color: var(--luxury-gray-900);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 
    'Courier New', monospace;
}

/* Luxury Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3, h4, h5, h6 {
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Elegant text for special elements */
.elegant-text {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  letter-spacing: 0.02em;
}

/* Display font for large headings */
.display-text {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@layer components {
  
  .luxury-card {
    @apply bg-white rounded-sm shadow-lg border border-gray-100;
    @apply transition-all duration-300 ease-out;
    @apply hover:-translate-y-1;
    box-shadow: var(--shadow-lg), 0 0 0 0 transparent;
  }
  
  .luxury-card:hover {
    box-shadow: var(--shadow-xl), 0 0 20px rgba(var(--luxury-gold-rgb), 0.1);
  }

  
  .luxury-card-gold {
    @apply bg-white rounded-sm shadow-lg;
    @apply relative overflow-hidden;
    @apply transition-all duration-300 ease-out;
    border-top: 2px solid var(--luxury-gold);
  }
  
  .luxury-card-gold:hover {
    box-shadow: var(--shadow-xl), 0 0 30px rgba(var(--luxury-gold-rgb), 0.2);
  }

  
  .luxury-card-dark {
    @apply bg-gradient-to-b from-[#1a1a1a] to-[#0f0f0f] rounded-sm shadow-2xl;
    @apply transition-all duration-300 ease-out;
    border: 1px solid rgba(var(--luxury-gold-rgb), 0.2);
  }
  
  .luxury-card-dark:hover {
    box-shadow: 0 0 40px rgba(var(--luxury-gold-rgb), 0.3);
    border-color: rgba(var(--luxury-gold-rgb), 0.4);
  }

  
  .btn-luxury-primary {
    @apply px-6 py-3 rounded-sm font-medium tracking-wide;
    @apply text-[#0f0f0f];
    @apply transition-all duration-300 ease-out;
    @apply hover:-translate-y-0.5;
    @apply active:translate-y-0;
    @apply disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:translate-y-0;
    @apply relative overflow-hidden;
    background: var(--gradient-gold-dark);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(var(--luxury-gold-rgb), 0.3);
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
  }
  
  .btn-luxury-primary:hover {
    background: var(--gradient-gold);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(var(--luxury-gold-rgb), 0.4);
  }

  .btn-luxury-primary::before {
    content: '';
    @apply absolute inset-0 bg-gradient-to-r from-white/0 via-white/20 to-white/0;
    @apply translate-x-[-100%] transition-transform duration-700;
  }

  .btn-luxury-primary:hover::before {
    @apply translate-x-[100%];
  }

  
  .btn-luxury-secondary {
    @apply px-6 py-3 rounded-sm font-medium tracking-wide;
    @apply bg-white/10 backdrop-blur-sm text-white;
    @apply transition-all duration-300 ease-out;
    @apply hover:-translate-y-0.5;
    @apply active:translate-y-0;
    border: 1px solid rgba(var(--luxury-gold-rgb), 0.3);
  }
  
  .btn-luxury-secondary:hover {
    background-color: rgba(var(--luxury-gold-rgb), 0.1);
    border-color: var(--luxury-gold);
    color: var(--luxury-gold);
  }

  
  .luxury-section-header {
    @apply mb-8 pb-4;
    border-bottom: 1px solid rgba(var(--luxury-gold-rgb), 0.2);
  }

  .luxury-section-title {
    @apply text-3xl md:text-4xl font-display font-semibold;
    @apply text-gray-900 tracking-tight;
    @apply mb-2;
    letter-spacing: -0.02em;
  }

  .luxury-section-subtitle {
    @apply text-gray-600 text-lg font-light;
    @apply tracking-wide;
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    letter-spacing: 0.05em;
  }

  
  .luxury-stat-card {
    @apply luxury-card p-6;
    @apply relative overflow-hidden;
  }

  .luxury-stat-card::before {
    content: '';
    @apply absolute top-0 left-0 w-1 h-full;
    background: var(--gradient-gold);
  }

  
  .luxury-table {
    @apply w-full;
  }

  .luxury-table thead {
    @apply bg-gradient-to-r from-gray-50 to-gray-100;
    border-bottom: 2px solid rgba(var(--luxury-gold-rgb), 0.3);
  }

  .luxury-table th {
    @apply px-6 py-4 text-left text-xs font-semibold;
    @apply text-gray-700 uppercase tracking-wider;
    @apply border-b-2 border-gray-200;
  }

  .luxury-table td {
    @apply px-6 py-4 whitespace-nowrap text-sm text-gray-900;
    @apply border-b border-gray-100;
  }

  .luxury-table tbody tr {
    @apply transition-colors duration-150;
  }
  
  .luxury-table tbody tr:hover {
    background-color: rgba(var(--luxury-gold-rgb), 0.05);
  }

  
  .luxury-badge {
    @apply inline-flex items-center px-3 py-1 rounded-sm;
    @apply text-xs font-medium tracking-wide;
    @apply transition-all duration-200;
    color: var(--luxury-gold-dark);
    background-color: rgba(var(--luxury-gold-rgb), 0.1);
    border: 1px solid rgba(var(--luxury-gold-rgb), 0.3);
  }

  
  .luxury-input {
    @apply w-full px-4 py-3 rounded-sm border border-gray-300;
    @apply transition-all duration-200;
    @apply bg-white text-gray-900;
    @apply placeholder:text-gray-400;
    @apply font-light tracking-wide;
    font-family: 'Poppins', 'Inter', sans-serif;
    letter-spacing: 0.01em;
  }
  
  .luxury-input:focus {
    outline: none;
    ring: 2px;
    ring-color: rgba(var(--luxury-gold-rgb), 0.5);
    border-color: var(--luxury-gold);
  }

  
  .luxury-gradient-bg {
    background: var(--gradient-gold);
  }

  
  .luxury-glass {
    @apply bg-white/90 backdrop-blur-xl;
    @apply shadow-2xl;
    border: 1px solid rgba(var(--luxury-gold-rgb), 0.2);
  }

  
  .enterprise-card {
    @apply bg-white rounded-lg shadow-xl border border-gray-200/60;
    @apply relative overflow-hidden;
    @apply transition-all duration-300 ease-out;
    @apply hover:-translate-y-0.5;
    @apply backdrop-blur-sm;
  }
  
  .enterprise-card:hover {
    box-shadow: var(--shadow-2xl), 0 0 30px rgba(var(--luxury-gold-rgb), 0.1);
  }

  .enterprise-card::before {
    content: '';
    @apply absolute top-0 left-0 right-0 h-0.5;
    background: linear-gradient(90deg, transparent 0%, var(--luxury-gold) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease-out;
  }

  .enterprise-card:hover::before {
    opacity: 1;
  }

  
  .enterprise-section-title {
    @apply text-3xl md:text-4xl font-serif font-bold;
    @apply text-gray-900 tracking-tight;
    @apply bg-gradient-to-r from-gray-900 via-gray-800 to-gray-900;
    @apply bg-clip-text text-transparent;
  }

  
  .enterprise-section-subtitle {
    @apply text-gray-600 text-base font-light;
    @apply tracking-wide leading-relaxed;
  }

  
  .btn-enterprise-primary {
    @apply px-8 py-3.5 rounded-lg font-semibold tracking-wide text-sm;
    @apply text-[#0f0f0f];
    @apply transition-all duration-300 ease-out;
    @apply hover:-translate-y-0.5 hover:scale-[1.02];
    @apply active:translate-y-0 active:scale-100;
    @apply disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:translate-y-0 disabled:hover:scale-100;
    @apply relative overflow-hidden;
    background: linear-gradient(to right, var(--luxury-gold), var(--luxury-gold-accent), var(--luxury-gold));
    box-shadow: var(--shadow-lg), 0 0 30px rgba(var(--luxury-gold-rgb), 0.3);
  }
  
  .btn-enterprise-primary:hover {
    background: linear-gradient(to right, var(--luxury-gold-light), var(--luxury-gold), var(--luxury-gold-light));
    box-shadow: var(--shadow-xl), 0 0 40px rgba(var(--luxury-gold-rgb), 0.4);
  }

  .btn-enterprise-primary::before {
    content: '';
    @apply absolute inset-0 bg-gradient-to-r from-white/0 via-white/30 to-white/0;
    @apply translate-x-[-100%] transition-transform duration-700;
  }

  .btn-enterprise-primary:hover::before {
    @apply translate-x-[100%];
  }

  
  .btn-enterprise-secondary {
    @apply px-5 py-2.5 rounded-lg font-medium tracking-wide text-xs;
    @apply bg-white border-2 border-gray-300 text-gray-700;
    @apply shadow-md shadow-gray-200/50;
    @apply transition-all duration-300 ease-out;
    @apply hover:-translate-y-0.5;
    @apply active:translate-y-0;
    @apply disabled:opacity-50 disabled:cursor-not-allowed;
  }
  
  .btn-enterprise-secondary:hover {
    @apply hover:bg-gray-50;
    border-color: var(--luxury-gold);
    color: var(--luxury-gold-dark);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(var(--luxury-gold-rgb), 0.2);
  }

  
  .enterprise-input {
    @apply w-full px-4 py-3 rounded-lg border-2 border-gray-200;
    @apply transition-all duration-200;
    @apply bg-white text-gray-900;
    @apply placeholder:text-gray-400;
    @apply font-light tracking-wide;
    @apply shadow-sm;
  }

  .enterprise-input:focus {
    outline: none;
    ring: 2px;
    ring-color: rgba(var(--luxury-gold-rgb), 0.3);
    border-color: var(--luxury-gold);
    box-shadow: var(--shadow-md), 0 0 20px rgba(var(--luxury-gold-rgb), 0.1);
  }
}

@layer utilities {
  .text-balance {
    text-wrap: balance;
  }

  /* Theme color utilities with opacity support */
  .bg-luxury-gold {
    background-color: var(--luxury-gold);
  }
  
  .bg-luxury-gold\/10 {
    background-color: rgba(var(--luxury-gold-rgb), 0.1);
  }
  
  .bg-luxury-gold\/20 {
    background-color: rgba(var(--luxury-gold-rgb), 0.2);
  }
  
  .text-luxury-gold {
    color: var(--luxury-gold);
  }
  
  .text-luxury-gold\/70 {
    color: rgba(var(--luxury-gold-rgb), 0.7);
  }
  
  .border-luxury-gold {
    border-color: var(--luxury-gold);
  }
  
  .border-luxury-gold\/10 {
    border-color: rgba(var(--luxury-gold-rgb), 0.1);
  }
  
  .border-luxury-gold\/20 {
    border-color: rgba(var(--luxury-gold-rgb), 0.2);
  }
  
  .border-luxury-gold\/30 {
    border-color: rgba(var(--luxury-gold-rgb), 0.3);
  }
  
  .border-luxury-gold\/40 {
    border-color: rgba(var(--luxury-gold-rgb), 0.4);
  }
  
  .shadow-luxury {
    box-shadow: var(--shadow-luxury);
  }

  .shadow-luxury-lg {
    box-shadow: var(--shadow-luxury-gold);
  }

  .shadow-luxury-gold {
    box-shadow: var(--shadow-luxury-gold);
  }

  
  .animate-fade-in {
    animation: fadeIn 0.4s ease-out;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  
  .animate-slide-in {
    animation: slideIn 0.5s ease-out;
  }

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

  
  .animate-scale-in {
    animation: scaleIn 0.4s ease-out;
  }

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

  
  .transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .transition-enterprise {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  
  .animate-slide-up {
    animation: slideUp 0.4s ease-out;
  }

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

  
  .animate-pulse-enterprise {
    animation: pulseEnterprise 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  @keyframes pulseEnterprise {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.8;
    }
  }

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

  .animate-shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(
      to right,
      #f1f5f9 0%,
      #e2e8f0 20%,
      #f1f5f9 40%,
      #f1f5f9 100%
    );
    background-size: 1000px 100%;
  }

  
  .text-gradient-luxury {
    background: linear-gradient(to right, var(--luxury-gold), var(--luxury-gold-light), var(--luxury-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }

  .text-gradient-luxury-dark {
    @apply bg-gradient-to-r from-gray-900 via-gray-800 to-gray-900;
    @apply bg-clip-text text-transparent;
  }

  
  .backdrop-blur-luxury {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src]) {
  opacity: 1;
}

/* Policy pages content styling - ensure all text is visible */
.prose.prose-invert {
  color: #d1d5db !important;
}

.prose.prose-invert * {
  color: inherit;
}

.prose.prose-invert p,
.prose.prose-invert li,
.prose.prose-invert span,
.prose.prose-invert div {
  color: #d1d5db !important;
}

.prose.prose-invert h1,
.prose.prose-invert h2,
.prose.prose-invert h3,
.prose.prose-invert h4,
.prose.prose-invert h5,
.prose.prose-invert h6 {
  color: #ffffff !important;
}

.prose.prose-invert strong,
.prose.prose-invert b {
  color: var(--luxury-gold) !important;
}

.prose.prose-invert a {
  color: var(--luxury-gold) !important;
}

/* Custom luxury scrollbar for modals */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--luxury-gold) 0%, var(--luxury-gold-dark) 100%);
  border-radius: 10px;
  border: 2px solid #f3f4f6;
}

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