/* Global Styles - Velvet Design System */
/* Minimalist color scheme with glassmorphism effects */

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

:root {
  /* Main Colors (2) - Restrained Palette */
  --black: #0A0A0A;
  --white: #FFFFFF;

  /* Accent Colors (2) - Minimal Usage */
  --red: #DC2626;        /* Like button only */
  --gray: #6B7280;       /* Secondary text, inactive states */

  /* Shades for depth */
  --black-90: rgba(10, 10, 10, 0.9);
  --black-80: rgba(10, 10, 10, 0.8);
  --black-60: rgba(10, 10, 10, 0.6);
  --black-40: rgba(10, 10, 10, 0.4);
  --black-20: rgba(10, 10, 10, 0.2);
  --black-10: rgba(10, 10, 10, 0.1);
  --black-5: rgba(10, 10, 10, 0.05);

  --white-90: rgba(255, 255, 255, 0.9);
  --white-80: rgba(255, 255, 255, 0.8);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-5: rgba(255, 255, 255, 0.05);

  --gray-light: #9CA3AF;
  --gray-lighter: #E5E7EB;
  --gray-lightest: #F9FAFB;

  /* Background Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAFA;
  --bg-dark: #0A0A0A;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --bg-glass-dark: rgba(10, 10, 10, 0.8);

  /* Text Colors */
  --text-primary: #0A0A0A;
  --text-secondary: #6B7280;
  --text-primary-dark: #FFFFFF;
  --text-secondary-dark: rgba(255, 255, 255, 0.7);

  /* Border Colors */
  --border-light: rgba(10, 10, 10, 0.08);
  --border-default: rgba(10, 10, 10, 0.12);
  --border-dark: rgba(255, 255, 255, 0.08);

  /* Shadows - Subtle and refined */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.12);

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
  --spacing-3xl: 48px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index layers */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 30;
  --z-modal: 40;
  --z-popover: 50;
  --z-tooltip: 60;
  --z-notification: 70;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html, body {
  width: 100%;
  max-width: 393px;
  margin: 0 auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
}

/* Typography */
.logo-font {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Glassmorphism Effects */
.glass {
  background: var(--bg-glass) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid var(--border-light) !important;
}

.glass-dark {
  background: var(--bg-glass-dark) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid var(--border-dark) !important;
}

.glass-subtle {
  background: var(--white-80) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid var(--border-light) !important;
}

/* Smooth Scrolling */
.smooth-scroll {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Hide Scrollbar */
.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

/* Custom Scrollbar - Minimal */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--gray) transparent;
}

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

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

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: var(--gray);
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: var(--black-60);
}

/* Button Base Styles - Minimal */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: var(--spacing-sm) var(--spacing-lg) !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  border-radius: var(--radius-md) !important;
  transition: all var(--transition-fast) !important;
  cursor: pointer !important;
  border: none !important;
  outline: none !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.btn:active {
  transform: scale(0.98) !important;
}

.btn-primary {
  background: var(--black) !important;
  color: var(--white) !important;
}

.btn-primary:hover {
  background: var(--black-90) !important;
}

.btn-secondary {
  background: transparent !important;
  color: var(--black) !important;
  border: 1px solid var(--border-default) !important;
}

.btn-secondary:hover {
  background: var(--black-5) !important;
}

.btn-red {
  background: var(--red) !important;
  color: var(--white) !important;
}

.btn-red:hover {
  opacity: 0.9 !important;
}

/* Icon Buttons - Minimal */
.icon-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: var(--radius-full) !important;
  transition: all var(--transition-fast) !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
}

.icon-btn:hover {
  background: var(--black-5) !important;
}

.icon-btn:active {
  transform: scale(0.95) !important;
}

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

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

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}

.animate-slideUp {
  animation: slideUp 0.3s ease-out;
}

.animate-slideDown {
  animation: slideDown 0.3s ease-out;
}

.animate-heartBeat {
  animation: heartBeat 0.6s ease-in-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-lighter) 25%,
    var(--gray-lightest) 50%,
    var(--gray-lighter) 75%
  ) !important;
  background-size: 936px 100% !important;
  animation: shimmer 1.5s infinite !important;
  border-radius: var(--radius-md) !important;
}

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

/* Responsive Text */
.text-responsive {
  font-size: clamp(0.875rem, 2vw, 1rem);
}

/* Safe Area Insets for iPhone */
.safe-top {
  padding-top: env(safe-area-inset-top);
}

.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

.safe-left {
  padding-left: env(safe-area-inset-left);
}

.safe-right {
  padding-right: env(safe-area-inset-right);
}

/* Utility Classes */
.flex-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.absolute-center {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.select-none {
  user-select: none !important;
  -webkit-user-select: none !important;
}

.pointer-events-none {
  pointer-events: none !important;
}

.transition-all {
  transition: all var(--transition-base) !important;
}

/* Touch Feedback */
.touch-feedback {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.touch-feedback:active {
  opacity: 0.7;
  transform: scale(0.98);
}

/* VIP/Premium Badge - Minimal glass style */
.vip-badge {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: var(--white) !important;
  padding: 2px 8px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
  }
}
