/*
Theme Name: Secret Garden Stitches
Theme URI: https://secretgardenstitches.com
Author: Secret Garden Stitches
Author URI: https://secretgardenstitches.com
Description: A warm, artisanal WordPress block theme for Secret Garden Stitches handmade crochet flowers and bouquets. Fully editable via the WordPress Site Editor with WooCommerce support for physical and digital products.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: secret-garden-stitches
Tags: full-site-editing, block-patterns, e-commerce, woocommerce, custom-colors, custom-fonts, wide-blocks, editor-style
*/

/* --- Optimization Styles --- */

/* Animations */
@keyframes sgsFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sgs-fade-in {
    opacity: 0;
    animation: sgsFadeInUp 0.8s ease forwards;
}

.sgs-delay-1 { animation-delay: 0.2s; }
.sgs-delay-2 { animation-delay: 0.4s; }
.sgs-delay-3 { animation-delay: 0.6s; }

/* Hero Enhancements */
.sgs-hero-glass {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 3rem !important;
}

/* Collection Cards */
.sgs-collection-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    overflow: hidden;
}

.sgs-collection-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--wp--custom--shadow--large) !important;
}

.sgs-collection-card .wp-block-cover__background {
    transition: transform 0.6s ease;
}

.sgs-collection-card:hover .wp-block-cover__background {
    transform: scale(1.1);
}

/* Testimonials */
.sgs-testimonial-card {
    background: var(--wp--preset--color--white);
    padding: 2.5rem !important;
    border-radius: 20px;
    box-shadow: var(--wp--custom--shadow--small);
    transition: all 0.3s ease;
    border: 1px solid var(--wp--preset--color--light-gray);
}

.sgs-testimonial-card:hover {
    box-shadow: var(--wp--custom--shadow--medium);
    border-color: var(--wp--preset--color--dusty-rose);
}

/* Decorative Divider */
.sgs-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--wp--preset--color--blush-bloom), transparent);
    width: 60%;
    margin: 2rem auto !important;
    position: relative;
    overflow: visible;
}

.sgs-divider::after {
    content: "✿";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--wp--preset--color--soft-cream);
    padding: 0 10px;
    color: var(--wp--preset--color--blush-bloom);
    font-size: 1.2rem;
}

/* Buttons */
.sgs-btn-primary:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.sgs-btn-secondary:hover {
    background-color: var(--wp--preset--color--blush-bloom) !important;
    color: var(--wp--preset--color--white) !important;
    transition: all 0.3s ease;
}

/* Subscribe Form */
.sgs-subscribe-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    width: 100%;
    margin-top: 2rem;
}

.sgs-subscribe-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-family: var(--wp--preset--font-family--quicksand);
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sgs-subscribe-form .sgs-btn {
    padding: 1rem 2rem;
    border-radius: 999px;
    border: none;
    background: var(--wp--preset--color--rosewood);
    color: white;
    font-family: var(--wp--preset--font-family--quicksand);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(219, 83, 79, 0.3);
}

.sgs-subscribe-form .sgs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(219, 83, 79, 0.4);
    background: var(--wp--preset--color--petal-coral);
}

@media (max-width: 600px) {
    .sgs-subscribe-form {
        flex-direction: column;
    }
}
