/* fashion-visual-gallery-032358/frontend/public/styles.css */

:root {
  /* Color Palette */
  --bg-color: #F9F9F9;
  --bg-white: #FFFFFF;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #EAEAEA;
  --accent-color: #C0A062;
  --border-color: #E5E5E5;

  /* Typography */
  --font-en: "Helvetica Now", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-cn: "Source Han Sans CN", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-family: var(--font-en), var(--font-cn);
  
  /* Spacing */
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Layout */
  --nav-height: 80px;
  --max-width: 1440px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.font-light { font-weight: 300; }
.font-regular { font-weight: 400; }

h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: 0.05em; }
h3 { font-size: 1.5rem; }
p { margin-bottom: var(--spacing-sm); color: var(--text-secondary); }

/* Layout */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-lg) 0;
}

.grid {
  display: grid;
  gap: var(--spacing-md);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(249, 249, 249, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.navbar.scrolled {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
  font-family: var(--font-en);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 20px;
  height: 20px;
  border: 1px solid var(--text-primary);
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-link {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: 500;
}

/* Footer */
.footer {
  padding: var(--spacing-md) 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  border-top: 1px solid transparent;
  margin-top: var(--spacing-lg);
}

/* Page: Home - Hero Slider */
.hero-section {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  width: 80%;
  pointer-events: none; /* Let clicks pass through if needed, but text selection might be tricky */
}

.hero-title {
  color: var(--bg-white);
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 100;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s forwards 0.5s;
}

.intro-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-white);
}

.intro-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.btn-outline {
  display: inline-block;
  margin-top: var(--spacing-md);
  padding: 12px 30px;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--text-primary);
  color: var(--bg-white);
}

/* Page: Catalog */
.filter-bar {
  padding-top: calc(var(--nav-height) + var(--spacing-md));
  padding-bottom: var(--spacing-md);
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.filter-tags span {
  display: inline-block;
  margin: 0 15px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px; /* Very tight grid */
}

.grid-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: crosshair;
}

.grid-item img {
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.grid-text {
  color: var(--bg-white);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transform: translateY(10px);
  transition: transform 0.4s ease;
  text-align: center;
  padding: 0 20px;
}

.grid-item:hover img {
  transform: scale(1.05);
}

.grid-item:hover .grid-overlay {
  opacity: 1;
}

.grid-item:hover .grid-text {
  transform: translateY(0);
}

/* Page: Inspiration */
.inspiration-container {
  height: 100vh;
  width: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.inspire-section {
  min-width: 100vw;
  height: 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inspire-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.inspire-content {
  background: rgba(255, 255, 255, 0.9);
  padding: var(--spacing-lg);
  max-width: 500px;
  margin-left: 10%; /* Offset design */
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.inspire-title {
  font-family: var(--font-cn);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.2em;
}

.inspire-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Page: Detail */
.detail-header {
  padding-top: calc(var(--nav-height) + var(--spacing-lg));
  padding-bottom: var(--spacing-lg);
  text-align: center;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-item img {
  aspect-ratio: 1/1;
  transition: filter 0.3s;
}

.detail-item:hover img {
  filter: contrast(1.1);
}

.detail-caption {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-align: right;
  padding-top: 5px;
  border-top: 1px solid #eee;
}

/* Page: About */
.about-wrapper {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

.about-visual {
  flex: 1;
  background-color: #f0f0f0;
  position: relative;
  overflow: hidden;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  flex: 1;
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg-white);
}

.about-text {
  max-width: 480px;
}

.about-text p {
  margin-bottom: var(--spacing-md);
  font-size: 1rem;
  line-height: 2;
  text-align: justify;
}

/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeUp 1s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

/* Responsive */
@media (max-width: 1024px) {
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-wrapper {
    flex-direction: column;
  }
  
  .about-visual {
    height: 40vh;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
  }

  .navbar {
    padding: 0 var(--spacing-sm);
  }
  
  .nav-links {
    gap: 15px;
  }
  
  .nav-link {
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .catalog-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .detail-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .inspire-section {
    flex-direction: column;
  }

  .inspire-content {
    width: 90%;
    margin: -50px auto 0;
    z-index: 2;
  }
  
  .inspire-bg {
    height: 60%;
    position: relative;
  }
}