/* style.css - SnapToBuy Site Styles */

/* CSS Variables */
:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #45B7D1;
    --dark: #2C3E50;
    --light: #ECF0F1;
    --white: #FFFFFF;
    --gray-light: #F8F9FA;
    --gray: #6C757D;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(to bottom, var(--gray-light), #e9ecef);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

@keyframes gradient-shift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Header Styles */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo svg {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: left 0.3s ease;
    z-index: 99;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    color: var(--dark);
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-svg-container {
    margin: 2rem auto;
    max-width: 600px;
}

/* Featured Section */
.featured-section {
    text-align: center;
    padding: 2rem;
}

.featured-indicator {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* Products Grid */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.product-card:hover::before {
    transform: scale(1);
}

.product-svg-wrapper {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.product-svg-wrapper svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: bold;
}

.product-hover-effect {
    position: absolute;
    bottom: -50px;
    right: -50px;
    pointer-events: none;
}

/* Product Hero (Individual Product Pages) */
.product-hero {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-image-section {
    position: relative;
}

.product-hero svg {
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
}

.color-customizer {
    margin-top: 2rem;
    text-align: center;
}

.color-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.color-option {
    background: none;
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.color-option:hover {
    border-color: var(--dark);
    transform: scale(1.1);
}

.product-info-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-price-large {
    font-size: 2rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 2rem;
}

.product-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.product-features {
    margin-bottom: 2rem;
}

.product-features ul {
    list-style: none;
}

.product-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.product-dimensions {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 10px;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-secondary:hover {
    background: var(--dark);
    color: var(--white);
}

/* Interactive Features */
.interactive-features {
    padding: 4rem 2rem;
    background: var(--gray-light);
    margin: 4rem 0;
}

.feature-demos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.demo-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.demo-card h3 {
    margin-top: 1rem;
    font-size: 1.2rem;
}

.demo-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Related Products */
.related-products {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-product-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.related-svg-wrapper {
    height: 150px;
    margin-bottom: 1rem;
}

.related-svg-wrapper svg {
    width: 100%;
    height: 100%;
}

.related-price {
    color: var(--primary);
    font-weight: bold;
}

/* Color Showcase */
.color-showcase {
    padding: 4rem 2rem;
    text-align: center;
}

.color-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.color-theme {
    cursor: pointer;
    transition: var(--transition);
}

.color-theme:hover {
    transform: scale(1.1);
}

.color-theme p {
    margin-top: 0.5rem;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    margin: 4rem 0;
}

/* Pattern Showcase */
.pattern-showcase {
    padding: 4rem 2rem;
    text-align: center;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 2rem auto;
}

.pattern-box {
    height: 150px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

/* Thank You Page */
.thank-you-section {
    padding: 4rem 2rem;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 300px;
    pointer-events: none;
}

.thank-you-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.thank-you-message {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.order-summary {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--gray-light);
    border-radius: 15px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 1rem 0;
}

.order-item-svg {
    width: 100px;
    height: 100px;
}

.order-item-svg svg {
    width: 100%;
    height: 100%;
}

.order-item-details {
    text-align: left;
}

.order-price {
    color: var(--primary);
    font-weight: bold;
}

.order-status {
    margin-top: 2rem;
}

.thank-you-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.celebration-svg {
    margin-top: 3rem;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

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

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 0.5rem 0;
}

.footer-section a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: block;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0 1rem;
}

.domain-highlight {
    color: var(--secondary);
    font-weight: bold;
    margin-top: 0.5rem;
}

/* Animations */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .products {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .product-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .feature-demos {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Print Styles */
@media print {
    header,
    footer,
    .color-customizer,
    .product-actions,
    .newsletter-section {
        display: none;
    }
    
    .product-container {
        grid-template-columns: 1fr;
    }
}