/* The Prowler Brand Website - Custom Styles */

/* CSS Variables for Theme Support */
:root {
  --font-size: 16px;
  --background: #ffffff;
  --foreground: #030213;
  --card: #ffffff;
  --card-foreground: #030213;
  --popover: #ffffff;
  --popover-foreground: #030213;
  --primary: #030213;
  --primary-foreground: #ffffff;
  --secondary: #f3f3f5;
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: #b1b1b1;
  --radius: 0.625rem;
}

/* Dark Mode Variables */
.dark {
  --background: #030213;
  --foreground: #fafafa;
  --card: #030213;
  --card-foreground: #fafafa;
  --popover: #030213;
  --popover-foreground: #fafafa;
  --primary: #fafafa;
  --primary-foreground: #262626;
  --secondary: #404040;
  --secondary-foreground: #fafafa;
  --muted: #404040;
  --muted-foreground: #b1b1b1;
  --accent: #404040;
  --accent-foreground: #fafafa;
  --destructive: #991b1b;
  --destructive-foreground: #ffffff;
  --border: #404040;
  --input: #404040;
  --ring: #737373;
}

/* Global Styles */
html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  transition: background-color 0.3s, color 0.3s;
}

* {
  box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  margin: 0;
}

p {
  margin: 0;
}

/* Link Styles */
a {
  text-decoration: none;
  color: inherit;
}

/* Button Styles */
button {
  font-family: inherit;
  background: none;
  cursor: pointer;
  padding: 0;
}

/* Image Styles */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Smooth 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-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Custom Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    max-height: 0;
  }
  to {
    max-height: 600px;
  }
}

/* Theme Toggle Icons */
.dark .theme-icon-light {
  display: none;
}

.dark .theme-icon-dark {
  display: inline-block !important;
}

.theme-icon-dark {
  display: none;
}

/* Mobile Menu Icons */
.menu-open .menu-icon-open {
  display: none;
}

.menu-open .menu-icon-close {
  display: inline-block !important;
}

.menu-icon-close {
  display: none;
}

/* Mobile Menu Animation */
#mobile-menu.open {
  max-height: 600px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: #dc2626;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #991b1b;
}

/* Responsive Video */
video {
  display: block;
}

/* Image Fallback */
.image-fallback {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}



/* Custom Tailwind Dark Mode Support */
@media (prefers-color-scheme: dark) {
  /* Default dark mode if no preference set */
}

/* Print Styles */
@media print {
  nav, footer {
    display: none;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles */
*:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}
