/* CR Tile & Construction - Custom Styles (v1.2) */

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

:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-headline: "Public Sans", sans-serif;
  
  --color-primary: #E73127;
  --color-primary-container: #FFDAD4;
  --color-on-primary: #ffffff;
  
  --color-surface: #FFFFFF;
  --color-on-surface: #0A1221;
  
  --color-surface-container: #F5F5F5;
  --color-surface-container-low: #FAFAFA;
  --color-surface-container-high: #EBEBEB;
  --color-surface-container-highest: #E2E2E2;
  
  --color-secondary: #0A1221;
  --color-on-secondary: #FFFFFF;
  --color-secondary-container: #D6E3FF;
  --color-on-secondary-container: #001B3E;
  
  --radius-lg: 0.5rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
}

/* Tailwind Base Layer Overrides */
body {
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
}

/* Custom Utilities */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom Colors for standard Tailwind usage in script/style if needed */
.bg-surface { background-color: var(--color-surface); }
.text-on-surface { color: var(--color-on-surface); }
.bg-surface-container { background-color: var(--color-surface-container); }
.bg-surface-container-low { background-color: var(--color-surface-container-low); }
.bg-surface-container-high { background-color: var(--color-surface-container-high); }
.bg-primary { background-color: var(--color-primary); }
.text-primary { color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.text-secondary { color: var(--color-secondary); }

/* Animations */
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 49, 39, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(231, 49, 39, 0); }
}

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

@keyframes pulse-white {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

.animate-pulse-white {
  animation: pulse-white 3.5s infinite;
}

/* Metallic Sweep Animation */
@keyframes metallic-sweep {
  0% { transform: translateX(-150%) skewX(-30deg); }
  20% { transform: translateX(150%) skewX(-30deg); }
  100% { transform: translateX(150%) skewX(-30deg); }
}

.btn-metallic {
  position: relative;
  overflow: hidden;
}

.btn-metallic::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-150%) skewX(-30deg);
  animation: metallic-sweep 4s infinite ease-in-out;
  pointer-events: none;
}

/* Fade in up support */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
}

.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }
