/* Tailwind CSS Configuration */
tailwind.config = {
  important: true,
  theme: {
    extend: {
      colors: {
        'fashion-white': '#FFFFFF',
        'fashion-gray': '#F5F5F7',
        'fashion-beige': '#F9F3EC',
        'fashion-almond': '#F8F0E9',
        'fashion-black': '#1A1A1A',
      },
      fontFamily: {
        'sans': ['Source Han Sans CN', 'Helvetica Now', 'system-ui', 'sans-serif'],
      },
    },
  },
};

/* Google Fonts - Source Han Sans CN */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1A1A1A;
  background-color: #FFFFFF;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
  background: #F5F5F7;
}

::-webkit-scrollbar-thumb {
  background: #1A1A1A;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #333;
}

/* Image Lazy Load Effect */
img {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

img.loaded {
  opacity: 1;
}

/* Hover Effects */
.hover-scale {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Carousel Indicators */
.carousel-indicator {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s ease;
  cursor: pointer;
}

.carousel-indicator.active {
  background: #FFFFFF;
}

/* Navigation Animation */
nav a {
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #1A1A1A;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Grid Layout for Series Page */
.fashion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .fashion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .fashion-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card Hover Effect */
.fashion-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.fashion-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.125rem;
  padding: 1rem;
  text-align: center;
}

.fashion-card:hover .overlay {
  opacity: 1;
}

/* Page Transition */
.page-transition {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  letter-spacing: 0.02em;
}

.text-display {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
}

.text-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
}

/* Button Styles */
.btn-explore {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #1A1A1A;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #1A1A1A;
}

.btn-explore:hover {
  background: #FFFFFF;
  color: #1A1A1A;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: #FFFFFF;
  transition: right 0.3s ease;
  z-index: 1000;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  right: 0;
}

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

/* Footer */
footer {
  border-top: 1px solid #F5F5F7;
}

/* Aspect Ratio Helper */
.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

/* Filter Buttons */
.filter-btn {
  padding: 0.5rem 1.5rem;
  background: transparent;
  border: 1px solid #1A1A1A;
  color: #1A1A1A;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #1A1A1A;
  color: #FFFFFF;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #F5F5F7;
  border-top-color: #1A1A1A;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Print Styles */
@media print {
  nav, footer, .btn-explore {
    display: none;
  }
}