@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Playfair+Display:ital,wght@0,500;0,700;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;1,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    
    /* --- FIX 1: Darker Background so Snow is Visible --- */
    /* Changed from white-pink to a richer Rose-Peach gradient */
    background: linear-gradient(135deg, #ffdee9 0%, #b5fffc 100%); /* Optional: Blue-ish tint */
    /* OR use this purely pink one if you prefer: */
    background: linear-gradient(135deg, #f5d0d6 0%, #ff9a9e 100%);
    
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #5d4037;
    position: relative;
    overflow: hidden;
}

/* --- Snow Layer 1 (Background) --- */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(3px 3px at 20% 30%, rgba(255,255,255,0.9) 50%, transparent 50%),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.9) 50%, transparent 50%),
        radial-gradient(3px 3px at 60% 20%, rgba(255,255,255,0.9) 50%, transparent 50%);
    background-size: 300px 300px;
    animation: snow 10s linear infinite;
    z-index: -2;
}

/* --- Snow Layer 2 (Foreground - Faster & Bigger) --- */
body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Made flakes purely white (1.0 opacity) to be visible */
    background-image: 
        radial-gradient(6px 6px at 10% 10%, rgba(255,255,255,1) 50%, transparent 50%),
        radial-gradient(5px 5px at 30% 60%, rgba(255,255,255,1) 50%, transparent 50%),
        radial-gradient(7px 7px at 80% 40%, rgba(255,255,255,1) 50%, transparent 50%);
    background-size: 500px 500px;
    animation: snow 6s linear infinite;
    z-index: -1;
}

@keyframes snow {
    0% { background-position: 0 0; }
    100% { background-position: 0 500px; }
}

.quote-container {
    width: 100%;
    max-width: 800px;
    padding: 40px 30px;
    border-radius: 25px;
    
    /* Frosted Glass Effect */
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    
    /* Gold Ribbon */
    border-top: 8px solid #d4af37;
    
    text-align: center;
    transition: transform 0.3s ease;
}

.quote-text {
    /* --- FIX 2: Changing the Font --- */
    /* Cormorant Garamond is elegant but does NOT overlap like Cinzel */
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem; /* Larger because this font is delicate */
    font-weight: 600;
    line-height: 1.4;
    color: #5d4037;
    margin-bottom: 20px;
    font-style: italic; /* Adds that fancy "quote" feel */
}

.long-quote {
    font-size: 2rem;
}

.fa-quote-left {
    font-size: 3rem;
    color: #d4af37; /* Gold Icon */
    margin-bottom: 15px;
    opacity: 0.9;
    display: block;
}

.quote-author {
    margin-top: 25px;
    font-size: 2.4rem;
    color: #c06c84; /* Deep Pink */
    font-family: 'Great Vibes', cursive; /* Very fancy signature font */
    font-weight: 400;
}

.button-container {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

button {
    cursor: pointer;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    color: white;
    outline: none;
    padding: 12px 40px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    transition: all 0.2s ease;
    
    /* Sage Green */
    background: linear-gradient(135deg, #84a98c 0%, #52796f 100%);
    box-shadow: 0 5px 15px rgba(82, 121, 111, 0.3);
}

button:hover {
    transform: translateY(-2px);
    filter: brightness(110%);
}

button:active {
    transform: scale(0.95);
}

.twitter-button {
    /* Rose Gold */
    background: linear-gradient(135deg, #e6a4a4 0%, #d48888 100%);
    box-shadow: 0 5px 15px rgba(212, 136, 136, 0.3);
}

/* Loader */
.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    border: 6px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border-top: 6px solid #d4af37;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mobile */
@media screen and (max-width: 600px) {
    .quote-text {
        font-size: 1.8rem;
    }
    .long-quote {
        font-size: 1.5rem;
    }
    .quote-author {
        font-size: 2rem;
    }
    button {
        width: 100%;
        max-width: 200px;
    }
}