/* =========================================
   Wife.uz - Elegant Wedding Theme Styles
   Celebrating Love & Partnership
   ========================================= */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', serif;
    color: #3D3D3D;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(
        135deg,
        #FFF0F0 0%,
        #FFFFFF 50%,
        #E6E6FA 100%
    );
    background-attachment: fixed;
}

/* ===== Animated Background ===== */
.petals-container,
.sparkles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Rose Petal Styling */
.petal {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(ellipse at center, #FFB7C5 0%, #FFC0CB 50%, transparent 80%);
    border-radius: 50% 0 50% 0;
    opacity: 0.7;
    animation: fall linear infinite;
    filter: blur(0.5px);
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* Sparkle Styling */
.sparkle-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #F4E4C1 0%, transparent 70%);
    border-radius: 50%;
    animation: sparkle-float linear infinite;
}

@keyframes sparkle-float {
    0% {
        transform: translateY(110vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* ===== Corner Decorations ===== */
.corner-decoration {
    position: fixed;
    width: 120px;
    height: 120px;
    background-image:
        radial-gradient(circle at 20% 20%, #E0BBE4 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, #FFB7C5 0%, transparent 50%);
    opacity: 0.15;
    pointer-events: none;
    z-index: 2;
}

.corner-top-left {
    top: 0;
    left: 0;
    border-radius: 0 0 100% 0;
}

.corner-top-right {
    top: 0;
    right: 0;
    border-radius: 0 0 0 100%;
}

.corner-bottom-left {
    bottom: 0;
    left: 0;
    border-radius: 0 100% 0 0;
}

.corner-bottom-right {
    bottom: 0;
    right: 0;
    border-radius: 100% 0 0 0;
}

/* ===== Main Container ===== */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 10;
}

/* ===== Content Card ===== */
.content-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 700px;
    width: 100%;
    box-shadow:
        0 10px 40px rgba(183, 110, 121, 0.15),
        0 0 60px rgba(255, 183, 197, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 240, 240, 0.8);
    position: relative;
    animation: fadeInUp 1.2s ease-out;
}

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

/* ===== Decorative Header ===== */
.decorative-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.lace-pattern {
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(224, 187, 228, 0.1) 20px,
            rgba(224, 187, 228, 0.1) 22px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 10px,
            rgba(255, 183, 197, 0.05) 10px,
            rgba(255, 183, 197, 0.05) 12px
        );
}

/* ===== Wedding Rings Icon ===== */
.rings-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0 1.5rem;
}

.wedding-rings {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 5px 15px rgba(183, 110, 121, 0.2));
    animation: gentle-pulse 3s ease-in-out infinite;
}

.ring {
    fill: none;
    stroke: #B76E79;
    stroke-width: 7;
    stroke-linecap: round;
}

.ring-left {
    stroke: url(#roseGoldGradient);
}

.ring-right {
    stroke: #E0BBE4;
}

.ring-inner {
    fill: rgba(255, 255, 255, 0.3);
    stroke: none;
}

.sparkle {
    color: #F4E4C1;
    animation: sparkle-shine 2s ease-in-out infinite;
    transform-origin: center;
}

.sparkle-1 {
    animation-delay: 0s;
}

.sparkle-2 {
    animation-delay: 1s;
}

@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes sparkle-shine {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* ===== Typography ===== */
.main-heading {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    font-weight: 400;
    text-align: center;
    color: #B76E79;
    margin: 1rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(183, 110, 121, 0.2);
    animation: fadeIn 1.5s ease-out 0.3s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== Decorative Divider ===== */
.divider {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    animation: fadeIn 1.5s ease-out 0.5s backwards;
}

.divider svg {
    width: 200px;
    height: 20px;
    color: #E0BBE4;
    opacity: 0.6;
}

/* ===== Tagline ===== */
.tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    color: #8B4789;
    margin: 1.5rem 0;
    font-style: italic;
    animation: fadeIn 1.5s ease-out 0.7s backwards;
}

/* ===== Main Message ===== */
.message {
    margin: 2rem 0;
    text-align: center;
    animation: fadeIn 1.5s ease-out 0.9s backwards;
}

.message-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #3D3D3D;
    margin: 0.5rem 0;
}

/* ===== Contact Section ===== */
.contact-section {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    animation: fadeIn 1.5s ease-out 1.1s backwards;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #B76E79 0%, #E0BBE4 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(183, 110, 121, 0.3);
    position: relative;
    overflow: hidden;
}

.email-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.email-link:hover::before {
    width: 300px;
    height: 300px;
}

.email-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183, 110, 121, 0.4);
}

.email-icon {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

/* ===== Quote Section ===== */
.quote {
    margin: 2.5rem 0 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 240, 240, 0.6), rgba(230, 230, 250, 0.4));
    border-left: 4px solid #B76E79;
    border-radius: 0 10px 10px 0;
    animation: fadeIn 1.5s ease-out 1.3s backwards;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-style: italic;
    color: #2C2C2C;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.quote-author {
    display: block;
    font-family: 'Crimson Text', serif;
    font-size: 0.938rem;
    font-style: normal;
    color: #8B4789;
    text-align: right;
    margin-top: 0.75rem;
}

/* ===== Decorative Footer ===== */
.decorative-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(224, 187, 228, 0.3);
    animation: fadeIn 1.5s ease-out 1.5s backwards;
}

.hearts-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.heart {
    font-size: 1.5rem;
    color: #FFB7C5;
    animation: heart-beat 2s ease-in-out infinite;
    display: inline-block;
}

.heart:nth-child(2) {
    animation-delay: 0.3s;
}

.heart:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes heart-beat {
    0%, 100% {
        transform: scale(1);
    }
    10% {
        transform: scale(1.2);
    }
    20% {
        transform: scale(1);
    }
}

/* ===== Floating Heart ===== */
.floating-heart {
    position: fixed;
    bottom: 50px;
    right: 50px;
    width: 80px;
    height: 80px;
    color: #FFB7C5;
    pointer-events: none;
    z-index: 1;
    animation: float-gentle 6s ease-in-out infinite;
}

.floating-heart svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 10px rgba(255, 183, 197, 0.3));
}

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

/* ===== Footer ===== */
.site-footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem 1rem;
}

.footer-text {
    font-size: 0.875rem;
    color: #8B4789;
    opacity: 0.8;
}

/* ===== Responsive Design ===== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .main-heading {
        font-size: 3.5rem;
    }

    .tagline {
        font-size: 1.25rem;
    }

    .floating-heart {
        width: 60px;
        height: 60px;
        bottom: 30px;
        right: 30px;
    }
}

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }

    .content-card {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }

    .main-heading {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.125rem;
    }

    .wedding-rings {
        width: 90px;
        height: 90px;
    }

    .divider svg {
        width: 150px;
    }

    .message-text {
        font-size: 1rem;
    }

    .email-link {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .quote-text {
        font-size: 1rem;
    }

    .quote-author {
        font-size: 0.875rem;
    }

    .corner-decoration {
        width: 80px;
        height: 80px;
    }

    .floating-heart {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .hearts-row {
        gap: 1rem;
    }

    .heart {
        font-size: 1.25rem;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .main-heading {
        font-size: 2rem;
    }

    .content-card {
        padding: 1.5rem 1rem;
    }

    .email-link {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Accessibility ===== */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .petal,
    .sparkle-particle {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .content-card {
        border: 2px solid #2C2C2C;
    }

    .email-link {
        border: 2px solid #FFFFFF;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #B76E79;
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
    body {
        background: white;
    }

    .petals-container,
    .sparkles-container,
    .corner-decoration,
    .floating-heart {
        display: none;
    }

    .content-card {
        box-shadow: none;
        border: 1px solid #CCCCCC;
    }
}
