/* Landing Page Specific Styles */

/* ========================================
   HERO - Full-width Crossfading Carousel
   ======================================== */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background carousel */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark overlay so text is readable */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 35, 50, 0.85) 0%,
        rgba(36, 59, 83, 0.7) 50%,
        rgba(51, 78, 104, 0.65) 100%
    );
    z-index: 1;
}

/* Content on top */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--space-8);
}

.hero-logo {
    max-width: 160px;
    height: auto;
    margin: 0 auto var(--space-8);
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    animation: fadeInUp 0.8s ease-out;
    border-radius: var(--radius-2xl);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: var(--space-6);
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--cream-200);
    margin-bottom: var(--space-10);
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

.hero-content .btn-primary,
.hero-content .btn-secondary {
    font-size: var(--font-size-base);
    padding: var(--space-5) var(--space-12);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

/* Carousel navigation dots */
.carousel-dots {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: var(--space-3);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Mobile Hero */
@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
    }

    .hero-logo {
        max-width: 120px;
        margin-bottom: var(--space-6);
    }

    .hero-content .btn-primary {
        padding: var(--space-4) var(--space-8);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SECTIONS
   ======================================== */

/* Featured Section */
.featured-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    padding: var(--space-20) 0;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-200) 50%, transparent 100%);
}

/* Etsy Section */
.etsy-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    padding: var(--space-20) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header h2 {
    color: var(--primary-800);
    margin-bottom: var(--space-4);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-xl);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

/* ========================================
   PRODUCT GRID
   ======================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

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

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

@media (min-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.product-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-color);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--shadow-color-strong);
    border-color: var(--accent-300);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--cream-50);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-info {
    padding: var(--space-4) var(--space-4) var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    text-align: center;
}

.product-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-800);
    letter-spacing: -0.02em;
}

.product-price {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--accent-600);
    letter-spacing: -0.01em;
}

.product-info .btn-secondary {
    margin-top: auto;
    width: 100%;
}

.btn-etsy {
    font-size: var(--font-size-xs);
    padding: var(--space-2) var(--space-3);
    gap: var(--space-1);
    margin-top: var(--space-2);
}

.shop-link-container {
    text-align: center;
    margin-top: var(--space-8);
}

.shop-link-container .btn-primary {
    box-shadow: 0 4px 16px rgba(36, 59, 83, 0.2);
}

.shop-link-container .btn-primary:hover {
    box-shadow: 0 6px 24px rgba(36, 59, 83, 0.3);
}

/* ========================================
   MYPATTERN SECTION (retained for compatibility)
   ======================================== */
.mypattern-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
    padding: var(--space-20) 0;
    position: relative;
}

.mypattern-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-400) 50%, transparent 100%);
}

.mypattern-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .mypattern-content {
        grid-template-columns: 1fr 1fr;
    }
}

.mypattern-info h2 {
    color: var(--primary-800);
    margin-bottom: var(--space-4);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
}

.mypattern-info > p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-8);
    line-height: 1.8;
}

.features {
    display: grid;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.feature {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.feature i {
    font-size: var(--font-size-2xl);
    color: var(--accent-500);
    margin-top: var(--space-1);
    flex-shrink: 0;
}

.feature h3 {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.feature p {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    margin: 0;
}

.pricing {
    background: linear-gradient(135deg, var(--accent-50) 0%, var(--cream-100) 100%);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    text-align: center;
    border: 2px solid var(--accent-200);
    box-shadow: 0 2px 8px rgba(217, 127, 46, 0.1);
}

.pricing .price {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--accent-700);
    margin-bottom: var(--space-2);
}

.pricing .price-description {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.note {
    text-align: center;
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
    margin-top: var(--space-3);
}

.mypattern-preview {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.mypattern-carousel {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-tertiary);
}

.mypattern-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.mypattern-slide.active {
    opacity: 1;
}

.mypattern-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mypattern-carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) 0;
    background: var(--bg-secondary);
}

.mypattern-carousel-dots .carousel-dot {
    background: rgba(0, 0, 0, 0.2);
}

.mypattern-carousel-dots .carousel-dot.active {
    background: var(--primary-500);
}

.mypattern-carousel-dots .carousel-dot:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* ========================================
   ABOUT
   ======================================== */
.about-section {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--cream-100) 100%);
    text-align: center;
    padding: var(--space-20) 0;
    position: relative;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.about-section h2 {
    color: var(--primary-800);
    margin-bottom: var(--space-8);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
}

.about-section p {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.9;
    font-weight: 400;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, #1a2332 0%, #243b53 50%, #334e68 100%);
    color: var(--cream-100);
    padding: var(--space-16) 0 var(--space-10);
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-500) 50%, transparent 100%);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-10);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--cream-100);
    font-weight: 600;
    font-size: var(--font-size-lg);
    transition: all var(--transition-fast);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-400);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-300);
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

.copyright {
    color: rgba(250, 248, 245, 0.6);
    font-size: var(--font-size-base);
    margin: 0;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: var(--space-6);
    }
}
