/* ==========================================================================
   Project: Fashion Pilot - Modern Men's Fashion
   Description: Core styles defining the visual language and custom components
   Author: HAISNAP
   Date: 2025-12-12
   ========================================================================== */

/* 1. Font Imports & System */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  /* Color Palette */
  --color-primary: #2C3E50;       /* 深空灰 */
  --color-secondary: #1A5276;     /* 深海蓝 */
  --color-accent: #F1C40F;        /* 赭石黄 */
  --color-bg: #F9F9F9;            /* 高级白 */
  --color-surface: #ECF0F1;       /* 石灰岩色 */
  --color-muted: #7F8C8D;         /* 矿物灰 */
  
  /* Typography */
  --font-heading: 'Montserrat', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout */
  --nav-height: 80px;
}

/* 2. Global Reset & Typography */
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* 3. Utility Components */

/* Gradient Navigation Bar */
.nav-gradient {
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
  transition: all 0.4s ease;
}

.nav-scrolled {
  background-color: rgba(44, 62, 80, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Text Enhancements */
.text-shadow-lg {
  text-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.text-shadow-sm {
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Image Handling */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-zoom:hover .img-cover {
  transform: scale(1.05);
}

/* 4. Custom Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* 5. Specific Components */

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

/* Tailoring Slider Comparison (Before/After) */
.comparison-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 4px;
}

.comparison-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%; /* JS will control this */
  height: 100%;
  overflow: hidden;
  border-right: 2px solid var(--color-bg);
  background-color: white;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%; /* JS will control this */
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--color-bg);
  border-radius: 50%;
  cursor: ew-resize;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-handle::after {
  content: '< >';
  color: var(--color-primary);
  font-size: 12px;
  font-weight: bold;
}

/* Loader */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-primary);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.loader-line {
  width: 0;
  height: 2px;
  background: var(--color-bg);
  animation: load 1.5s ease-in-out forwards;
}

@keyframes load {
  0% { width: 0; opacity: 0.5; }
  50% { width: 50%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

/* Fabric Page Parallax */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Slot Placeholder Style */
.slot-placeholder {
  border: 1px dashed var(--color-muted);
  background: rgba(236, 240, 241, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.875rem;
  padding: 1rem;
}