/* DirectMarket Theme - TailwindCSS Compiled Styles */
/* Note: In production, compile with TailwindCSS CLI */

/* CSS Variables */
:root {
  --background: oklch(0.985 0.002 120);
  --foreground: oklch(0.25 0.02 250);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.25 0.02 250);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.25 0.02 250);
  --primary: oklch(0.55 0.17 160);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.96 0.01 160);
  --secondary-foreground: oklch(0.35 0.02 250);
  --muted: oklch(0.96 0.005 120);
  --muted-foreground: oklch(0.5 0.02 250);
  --accent: oklch(0.88 0.08 160);
  --accent-foreground: oklch(0.25 0.02 250);
  --destructive: oklch(0.55 0.22 25);
  --destructive-foreground: oklch(1 0 0);
  --border: oklch(0.90 0.01 120);
  --input: oklch(0.94 0.005 120);
  --ring: oklch(0.55 0.17 160);
  --radius: 1rem;
}

.dark {
  --background: oklch(0.15 0.01 250);
  --foreground: oklch(0.95 0.005 120);
  --card: oklch(0.18 0.01 250);
  --card-foreground: oklch(0.95 0.005 120);
  --popover: oklch(0.18 0.01 250);
  --popover-foreground: oklch(0.95 0.005 120);
  --primary: oklch(0.65 0.17 160);
  --primary-foreground: oklch(0.15 0.01 250);
  --secondary: oklch(0.25 0.01 250);
  --secondary-foreground: oklch(0.95 0.005 120);
  --muted: oklch(0.25 0.01 250);
  --muted-foreground: oklch(0.65 0.01 250);
  --accent: oklch(0.35 0.05 160);
  --accent-foreground: oklch(0.95 0.005 120);
  --destructive: oklch(0.45 0.2 25);
  --destructive-foreground: oklch(0.95 0.005 120);
  --border: oklch(0.28 0.01 250);
  --input: oklch(0.25 0.01 250);
  --ring: oklch(0.65 0.17 160);
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

body {
  margin: 0;
  line-height: inherit;
}

/* Semantic Colors */
.bg-background { background-color: var(--background); }
.bg-foreground { background-color: var(--foreground); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-muted { background-color: var(--muted); }
.bg-accent { background-color: var(--accent); }
.bg-destructive { background-color: var(--destructive); }

.text-background { color: var(--background); }
.text-foreground { color: var(--foreground); }
.text-card-foreground { color: var(--card-foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-secondary-foreground { color: var(--secondary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-accent-foreground { color: var(--accent-foreground); }
.text-destructive { color: var(--destructive); }
.text-destructive-foreground { color: var(--destructive-foreground); }

.border-border { border-color: var(--border); }
.border-input { border-color: var(--input); }
.border-primary { border-color: var(--primary); }

/* Focus Ring */
.focus\:ring-primary:focus {
  --tw-ring-color: var(--ring);
}

.focus\:border-primary:focus {
  border-color: var(--primary);
}

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

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

/* Form Elements */
input[type="checkbox"] {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--input);
  border-radius: 0.25rem;
  background-color: var(--background);
  cursor: pointer;
}

input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

input[type="radio"] {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--input);
  border-radius: 50%;
  background-color: var(--background);
  cursor: pointer;
}

input[type="radio"]:checked {
  border-color: var(--primary);
  background-color: var(--primary);
  box-shadow: inset 0 0 0 3px var(--background);
}

/* Transitions */
.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Hover States */
.hover\:bg-primary\/90:hover { background-color: color-mix(in oklch, var(--primary) 90%, transparent); }
.hover\:bg-secondary:hover { background-color: var(--secondary); }
.hover\:bg-secondary\/80:hover { background-color: color-mix(in oklch, var(--secondary) 80%, transparent); }
.hover\:text-foreground:hover { color: var(--foreground); }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-primary\/80:hover { color: color-mix(in oklch, var(--primary) 80%, transparent); }

/* Text Balance */
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* Selection */
::selection {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
