/* ==========================================================================
   Tag Pink - Premium Coming Soon Theme Stylesheet (WordPress Plugin Version)
   ========================================================================== */

/* 1. Global Reset & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Color of website updated to match the exact logo pink (#FFAEC9) with blended silk texture */
    background-color: #FFAEC9; 
    background-image: linear-gradient(to bottom, rgba(255, 174, 201, 0.45), rgba(255, 174, 201, 0.35)), url('../images/silk_background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    color: #3D0B1C;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Canvas overlay for floating petals */
#petals-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 2. Layout Containers */
.main-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 1.5rem 1.5rem; /* Reduced top padding to 1rem */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    z-index: 10;
}

/* 3. Header Styling */
.header-section {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem; /* Reduced margin */
}

/* Brand Logo Image Container & Spacing */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -2.5rem; /* Negative margin pulls the logo up to cancel whitespace in the source image */
    margin-bottom: 0.1rem;
    width: 100%;
}

.brand-logo-img {
    width: clamp(200px, 35vw, 320px); 
    height: auto;
    max-width: 90%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 2px 5px rgba(61, 11, 28, 0.04));
    display: block;
    margin: 0 auto;
}

.subtitle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.1rem;
}

.line {
    height: 1px;
    width: clamp(25px, 8vw, 60px);
    background: linear-gradient(90deg, transparent, #D65B82 50%, transparent);
}

.subtitle-text {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.68rem, 2vw, 0.78rem);
    letter-spacing: 0.25em;
    color: #D65B82;
    font-weight: 500;
}

/* 4. Hero Content */
.hero-section {
    text-align: center;
    max-width: 800px;
    width: 100%;
    margin-bottom: 2rem;
}

.main-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.2rem, 8vw, 5.2rem);
    font-weight: 300;
    color: #3D0B1C;
    line-height: 1.05;
    margin-bottom: 0.1rem;
    letter-spacing: -0.01em;
}

.heart-divider {
    color: #D65B82;
    font-size: 1.1rem;
    margin: 0.5rem 0 1.2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-divider::before,
.heart-divider::after {
    content: '';
    height: 1px;
    width: 35px;
    background-color: rgba(214, 91, 130, 0.2);
    margin: 0 10px;
}

.description {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.92rem, 2.5vw, 1.02rem);
    line-height: 1.75;
    color: #5C4A4F;
    max-width: 580px;
    margin: 0 auto 1.8rem auto;
    font-weight: 400;
}

.description strong {
    color: #3D0B1C;
    font-weight: 600;
}

/* Instagram Action Button */
.action-button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #3D0B1C; /* Dark burgundy pill button */
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    padding: 0.95rem 1.9rem;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(61, 11, 28, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.instagram-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
    opacity: 0;
}

.instagram-btn:hover::after {
    left: 125%;
    opacity: 1;
}

.instagram-btn:hover {
    transform: translateY(-3px);
    background-color: #521528;
    box-shadow: 0 12px 25px rgba(61, 11, 28, 0.22);
}

.instagram-btn:active {
    transform: translateY(-1px);
}

.social-icon-btn {
    transition: transform 0.3s ease;
}

.instagram-btn:hover .social-icon-btn {
    transform: rotate(10deg) scale(1.1);
}

/* 5. Newsletter Signup Box */
.newsletter-section {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    width: 100%;
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 20px 50px rgba(214, 91, 130, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 2rem 2.8rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 920px;
    width: 100%;
    position: relative;
    z-index: 12;
}

.newsletter-icon-container {
    flex-shrink: 0;
}

.newsletter-icon-bg {
    width: 70px;
    height: 70px;
    background-color: #FFF0F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D65B82;
    position: relative;
    border: 1px dashed rgba(214, 91, 130, 0.2);
}

.envelope-icon {
    transition: transform 0.4s ease;
}

.newsletter-card:hover .envelope-icon {
    transform: scale(1.1) rotate(-5deg);
}

.sparkle {
    position: absolute;
    color: #D65B82;
    font-size: 0.85rem;
    opacity: 0.7;
    user-select: none;
}

.sparkle-1 {
    top: 8px;
    right: 10px;
    animation: float-sparkle 3s infinite ease-in-out;
}

.sparkle-2 {
    bottom: 10px;
    left: 8px;
    animation: float-sparkle 3s infinite ease-in-out 1.5s;
}

@keyframes float-sparkle {
    0%, 100% { transform: translate(0, 0) scale(0.8) rotate(0deg); opacity: 0.4; }
    50% { transform: translate(2px, -3px) scale(1.2) rotate(45deg); opacity: 1; }
}

.newsletter-content {
    flex-grow: 1;
    max-width: 320px;
}

.newsletter-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #3D0B1C;
    margin-bottom: 0.3rem;
}

.newsletter-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #7A696E;
}

.newsletter-form-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.newsletter-form {
    width: 100%;
}

.input-wrapper {
    display: flex;
    background-color: #FFFFFF;
    border: 1px solid #FFE5EA;
    border-radius: 50px;
    padding: 5px;
    width: 100%;
    box-shadow: inset 0 2px 5px rgba(214, 91, 130, 0.02);
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #D65B82;
    box-shadow: 0 0 0 4px rgba(214, 91, 130, 0.1);
}

.input-wrapper input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 0 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #3D0B1C;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #C7B7BB;
}

.submit-btn {
    background-color: #D65B82;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.9rem 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.submit-btn:hover {
    background-color: #C54C73;
    box-shadow: 0 5px 15px rgba(214, 91, 130, 0.25);
}

.submit-btn:active {
    transform: scale(0.98);
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: #9C8C91;
    padding-left: 0.6rem;
}

.lock-icon {
    color: #D65B82;
    opacity: 0.85;
}

/* Success State for Signup Form */
.newsletter-form.success .input-wrapper {
    border-color: #4CAF50;
    background-color: #F9FFF9;
}
.newsletter-form.success .submit-btn {
    background-color: #4CAF50;
}

/* 6. Animated Butterflies */
.butterfly-container {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    transform-style: preserve-3d;
    perspective: 500px;
}

.butterfly-left {
    top: 22%;
    left: 8%;
    width: clamp(60px, 8vw, 85px);
    height: clamp(60px, 8vw, 85px);
    animation: float-left-butterfly 12s infinite ease-in-out;
}

.butterfly-right {
    top: 12%;
    right: 10%;
    width: clamp(70px, 10vw, 100px);
    height: clamp(70px, 10vw, 100px);
    animation: float-right-butterfly 14s infinite ease-in-out;
}

.butterfly {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 15px rgba(214, 91, 130, 0.12));
}

.wing {
    transform-style: preserve-3d;
}

.left-wing {
    transform-origin: 50px 50px;
    animation: flap-left 0.8s infinite ease-in-out;
}

.right-wing {
    transform-origin: 50px 50px;
    animation: flap-right 0.8s infinite ease-in-out;
}

@keyframes flap-left {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(62deg); }
}

@keyframes flap-right {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(-62deg); }
}

@keyframes float-left-butterfly {
    0%, 100% { transform: translate(0, 0) rotate(-15deg); }
    33% { transform: translate(-10px, -25px) rotate(-10deg) scale(1.02); }
    66% { transform: translate(8px, -15px) rotate(-20deg) scale(0.98); }
}

@keyframes float-right-butterfly {
    0%, 100% { transform: translate(0, 0) rotate(20deg); }
    33% { transform: translate(15px, -20px) rotate(25deg) scale(0.97); }
    66% { transform: translate(-8px, -30px) rotate(15deg) scale(1.03); }
}

/* 7. Footer Styling */
.footer-section {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}

.copyright {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    color: #8C7C81;
    letter-spacing: 0.05em;
    user-select: none;
    opacity: 0.9;
}

/* 8. Responsiveness & Mobile Optimization */
@media (max-width: 900px) {
    .newsletter-card {
        flex-direction: column;
        text-align: center;
        padding: 2.2rem 1.8rem;
        gap: 1.2rem;
        max-width: 500px;
    }
    
    .newsletter-content {
        max-width: 100%;
    }
    
    .newsletter-form-container {
        width: 100%;
    }

    .privacy-note {
        justify-content: center;
        padding-left: 0;
    }
}

@media (max-width: 600px) {
    .main-container {
        padding: 1rem 1rem 1.2rem 1rem; /* Reduced top padding to 1rem */
    }

    .logo-container {
        margin-top: -1.6rem; /* Adjust negative margin on mobile */
    }

    .line {
        width: 20px;
    }

    .subtitle-wrapper {
        gap: 0.6rem;
    }
    
    .subtitle-text {
        letter-spacing: 0.18em;
    }

    .input-wrapper {
        flex-direction: column;
        background-color: transparent;
        border: none;
        padding: 0;
        gap: 0.7rem;
        box-shadow: none;
    }

    .input-wrapper input {
        background-color: #FFFFFF;
        border: 1px solid #FFE5EA;
        border-radius: 50px;
        padding: 0.85rem 1.3rem;
        width: 100%;
        font-size: 0.85rem;
        box-shadow: inset 0 2px 4px rgba(214, 91, 130, 0.02);
    }
    
    .input-wrapper input:focus {
        border-color: #D65B82;
        box-shadow: 0 0 0 3px rgba(214, 91, 130, 0.1);
    }

    .submit-btn {
        width: 100%;
        padding: 0.85rem 0;
        font-size: 0.75rem;
    }
    
    /* Reposition butterflies on mobile so they don't block the text flow */
    .butterfly-left {
        left: 2%;
        top: 25%;
        width: 45px;
        height: 45px;
    }

    .butterfly-right {
        right: 3%;
        top: 10%;
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 400px) {
    /* Hide left butterfly on extremely narrow screens to keep screen clean */
    .butterfly-left {
        display: none;
    }
    
    .butterfly-right {
        right: 4%;
        top: 8%;
        width: 45px;
        height: 45px;
    }
}
