/**
 * Promoflex PWA Platform - Custom Design Tokens & Standalone CSS
 */

:root {
  --brand-primary: #4f46e5;
  --brand-primary-hover: #4338ca;
  --brand-accent: #f59e0b;
  --surface-bg: #f8fafc;
  --surface-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
}

/* Alpine.js cloak fix */
[x-cloak] {
  display: none !important;
}

/* Smooth Scrolling & Tap Highlight */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-tap-highlight-color: transparent;
  background-color: var(--surface-bg);
  color: var(--text-main);
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Line Clamp Utilities (Fallback) */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card hover animation & shadows */
.offer-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease-out;
}

.offer-card:hover {
  transform: translateY(-2px);
}

/* PWA Standalone Mobile Optimizations */
@media all and (display-mode: standalone) {
  nav.fixed.bottom-0 {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }
}

/* Printable Coupon Voucher */
@media print {
  header, nav, .no-print, button {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .print-only {
    display: block !important;
  }
}
