/* fashion-showcase-040511/frontend/public/css/style.css */

/* 
   Theme: Modern Minimalist Fashion Showcase
   Author: HAISNAP
   Date: 2025
*/

/* --- 1. Root Variables & Reset --- */
:root {
    /* Colors */
    --bg-color: #ffffff;
    --bg-secondary: #f9f9f7;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e5e5e5;
    --white: #ffffff;
    --overlay: rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-primary: "Noto Sans SC", "Source Han Sans CN", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration: 0.4s;
}

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

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

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

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

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

ul { list-style: none; }

/* --- 2. Typography --- */
h1, h2, h3, h4 {
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
p { color: var(--text-secondary); margin-bottom: var(--spacing-sm); }

.text-center { text-align: center; }
.section-title {
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    font-size: 1.8rem;
    letter-spacing: 0.15em;
}

/* --- 3. Layout Components --- */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

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

/* --- 4. Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid transparent;
    transition: all var(--duration) ease;
}

header.scrolled {
    height: 70px;
    border-bottom: 1px solid var(--border-color);
}

nav {
    width: 90%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    z-index: 1001;
}

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

.nav-links a {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width var(--duration) var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--text-primary);
    margin: 6px 0;
    transition: 0.3s;
}

/* --- 5. Hero Carousel --- */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 1;
}

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

.slide img {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s forwards 0.5s;
}

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

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

.btn-explore.dark {
    border-color: var(--text-primary);
    color: var(--text-primary);
}
.btn-explore.dark:hover {
    background: var(--text-primary);
    color: var(--white);
}

/* --- 6. Grids & Cards --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

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

/* Card Styles */
.card {
    position: relative;
    cursor: pointer;
}

.card-image {
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    aspect-ratio: 3/4;
}

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

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

.card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.card-info p {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* --- 7. Masonry Layout (Women) --- */
.masonry-wrapper {
    column-count: 3;
    column-gap: var(--spacing-md);
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: var(--spacing-md);
}

/* --- 8. Split Section (Men) --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.split-layout:nth-child(even) {
    flex-direction: row-reverse;
}

.split-visual {
    flex: 1;
    aspect-ratio: 4/5;
}

.split-text {
    flex: 1;
    padding: var(--spacing-md);
}

/* --- 9. Seasonal Section --- */
.season-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}
.season-tab {
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    opacity: 0.5;
}
.season-tab.active {
    opacity: 1;
    border-color: var(--text-primary);
}

/* --- 10. Footer --- */
footer {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    background: var(--bg-secondary);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- 11. Animations & Utilities --- */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.fade-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Content Slot for Dynamic Injections */
.content-slot {
    display: none; /* Hidden by default, activated by JS if needed */
    padding: var(--spacing-md);
    border: 1px dashed var(--border-color);
    text-align: center;
}

/* --- 12. Responsive --- */
@media (max-width: 1024px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .masonry-wrapper { column-count: 2; }
    h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }
    .nav-links.open { right: 0; }

    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .split-layout { flex-direction: column !important; gap: var(--spacing-md); }
    .masonry-wrapper { column-count: 1; }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    
    section { padding: var(--spacing-md) 0; }
}