/* 
 * Project: Fashion Dimension - Minimalist Menswear Visual Platform
 * Style: Minimalist Modernism / Magazine Layout
 * Copyright 2025
 */

:root {
  /* Design Tokens */
  --color-bg: #FFFFFF;
  --color-text: #0A0A0A;
  --color-muted: #666666;
  --color-accent: #8D8B88; /* Advanced Grey */
  --color-surface: #F5F5F7;
  
  --font-primary: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Futura", "Montserrat", var(--font-primary);
  
  --spacing-unit: 1rem;
  --container-max: 1280px;
  
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --anim-fade: 0.8s var(--ease-out-expo);
  --anim-hover: 0.4s var(--ease-out-expo);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--anim-hover);
}

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

ul {
  list-style: none;
}

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

.text-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-transform: uppercase;
}

.text-subtitle {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.text-body {
  font-size: 1rem;
  color: #333;
  max-width: 60ch;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
}

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

/* Animation Utilities */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--anim-fade), transform var(--anim-fade);
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation - Minimalist Fixed Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.nav-link {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link.active,
.nav-link:hover {
  color: var(--color-text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width var(--anim-hover), left var(--anim-hover);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Hero Section */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  filter: brightness(0.85);
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-align: center;
}

.hero-title {
  font-family: "Brush Script MT", "Caveat", cursive; /* Fallback for handwritten style */
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero-caption {
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  padding-top: 1.5rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* Style Cards */
.style-card {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: pointer;
}

.card-image-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  transition: transform 1.2s var(--ease-out-expo);
}

.style-card:hover .card-image-wrap img {
  transform: scale(1.05);
}

.card-overlay {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-tag {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.card-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--anim-hover);
}

.style-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Wardrobe Items */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  cursor: pointer;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: all var(--anim-hover);
}

.filter-btn.active, .filter-btn:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

.item-card {
  text-align: center;
}

.item-visual {
  background-color: var(--color-surface);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background-color var(--anim-hover);
}

.item-visual img {
  max-width: 80%;
  max-height: 80%;
  mix-blend-mode: multiply; /* Natural blend with bg */
  transition: transform var(--anim-hover);
}

.item-card:hover .item-visual {
  background-color: #ECECEC;
}

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

.item-keywords {
  font-size: 0.75rem;
  color: var(--color-accent);
  margin-top: 0.5rem;
  opacity: 0.7;
  letter-spacing: 0.05em;
}

/* Masonry Layout (Inspiration) */
.masonry {
  column-count: 3;
  column-gap: 2rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
}

.masonry-item img {
  width: 100%;
  margin-bottom: 1rem;
}

.masonry-caption {
  font-size: 0.875rem;
  color: var(--color-muted);
  font-style: italic;
  line-height: 1.4;
}

/* About Page */
.about-header {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-surface);
}

.about-text-block {
  max-width: 800px;
  margin: 4rem auto;
  text-align: center;
}

.about-text-block p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #444;
}

/* Footer */
.site-footer {
  margin-top: 6rem;
  padding: 2rem;
  border-top: 1px solid var(--color-surface);
  text-align: right;
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* Slot for dynamic content */
#app-slot { display: contents; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .masonry { column-count: 2; }
}

@media (max-width: 768px) {
  .site-header { padding: 1rem 0; }
  .nav-menu { gap: 1.5rem; font-size: 0.75rem; }
  .section { padding: 4rem 0; }
  .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
  .masonry { column-count: 1; }
  
  .hero-title { font-size: 2.5rem; }
  .text-display { font-size: 2.5rem; }
  
  .filter-bar { gap: 1rem; overflow-x: auto; white-space: nowrap; justify-content: flex-start; padding-bottom: 0.5rem; }
}