/**
 * Julius Yale Web - Homepage Styles
 * Experimental Streetwear Aesthetic
 */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-alt) 100%);
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 51, 102, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 51, 102, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--primary);
    margin-bottom: 24px;
    display: block;
}

.hero-title {
    margin-bottom: 24px;
    line-height: 0.9;
}

.type-text {
    display: inline;
}

.cursor {
    color: var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    display: block;
    line-height: 1;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Flash Sale Section */
.flash-sale {
    padding: 100px 0;
    background: var(--bg-alt);
    position: relative;
}

.flash-sale::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    margin-bottom: 32px;
}

.section-link {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    transition: var(--transition);
}

.section-link:hover {
    color: var(--primary);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 40px;
}

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

.countdown-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary);
    display: block;
    line-height: 1;
    min-width: 80px;
}

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

.flash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.flash-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.flash-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.flash-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    padding: 4px 12px;
    z-index: 2;
}

.flash-image {
    display: block;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.flash-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.flash-info {
    padding: 20px;
}

.flash-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flash-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flash-price .sale {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.flash-price .original {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-decoration: line-through;
}

/* New Arrivals - Stacked Cards */
.new-arrivals {
    padding: 100px 0;
    overflow: hidden;
}

.stacked-cards {
    display: flex;
    gap: -60px;
    justify-content: center;
    perspective: 1000px;
}

.stack-card {
    flex: 0 0 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transform: rotateY(calc(var(--index) * 5deg)) translateZ(calc(var(--index) * -20px));
    transition: var(--transition);
    margin-left: -60px;
}

.stack-card:first-child {
    margin-left: 0;
}

.stack-card:hover {
    transform: rotateY(0) translateZ(50px) scale(1.05);
    z-index: 10;
    border-color: var(--primary);
}

.stack-image {
    display: block;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.stack-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack-info {
    padding: 16px;
}

.stack-info h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stack-info p {
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

/* Lookbook Section */
.lookbook {
    padding: 100px 0;
    background: var(--bg-alt);
}

.lookbook-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.lookbook-text {
    max-width: 400px;
}

.lookbook-text .section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.lookbook-text p {
    margin-bottom: 32px;
}

.lookbook-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 500px;
}

.lookbook-img {
    overflow: hidden;
    border-radius: 4px;
}

.lookbook-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.lookbook-img-1 {
    grid-row: 1 / 3;
}

.lookbook-img-2 {
    grid-column: 2;
    grid-row: 1;
}

.lookbook-img-3 {
    grid-column: 2;
    grid-row: 2;
}

/* Newsletter */
.newsletter {
    padding: 100px 0;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    margin-bottom: 16px;
}

.newsletter p {
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-form input::placeholder {
    color: var(--text-dim);
}

/* Categories Section */
.categories-section {
    padding: 100px 0;
    background: var(--bg-main);
}

.categories-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 600px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    display: block;
}

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

.category-card:hover .category-overlay {
    background: rgba(255, 51, 102, 0.9);
}

.category-large {
    grid-row: 1 / 3;
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transition: var(--transition);
}

.category-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.category-overlay span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-main);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.testimonial-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 51, 102, 0.1) 100%);
}

.testimonial-stars {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author .name {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-main);
    letter-spacing: 0.05em;
}

.testimonial-author .location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .flash-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stacked-cards {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .stack-card {
        margin-left: 0;
        transform: none;
        flex: 0 0 calc(50% - 12px);
    }
    
    .lookbook-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .lookbook-text {
        max-width: 100%;
        text-align: center;
    }
    
    .lookbook-images {
        height: 400px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    
    .category-large {
        grid-row: auto;
        grid-column: 1 / 3;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .flash-grid {
        grid-template-columns: 1fr;
    }
    
    .countdown {
        gap: 20px;
    }
    
    .countdown-number {
        font-size: 2rem;
        min-width: 60px;
    }
    
    .stack-card {
        flex: 0 0 100%;
    }
    
    .lookbook-images {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 200px);
        height: auto;
    }
    
    .lookbook-img-1,
    .lookbook-img-2,
    .lookbook-img-3 {
        grid-column: 1;
        grid-row: auto;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-large {
        grid-column: 1;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 30px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}
