/* Valentine Wishes Generator Styles */

:root {
    --primary-purple: #6A0DAD;
    --primary-gradient: linear-gradient(135deg, #6A0DAD 0%, #9b4dff 100%);
    --secondary-pink: #FF4DA6;
    --pink-gradient: linear-gradient(135deg, #FF4DA6 0%, #ff8ac5 100%);
    --soft-white: #fff9fc;
    --light-pink: #ffe6f0;
    --deep-purple: #4a1b6d;
    --dark-grey: #333333;
    --glow-pink: #ff69b4;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
}

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

.valentine-container {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--soft-white) 0%, var(--light-pink) 100%);
    padding: 2rem 1rem;
    overflow: hidden;
}

/* Floating Hearts Animation */
.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    font-size: 20px;
    color: rgba(255, 77, 166, 0.3);
    animation: float 6s ease-in infinite;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

/* Main Card */
.valentine-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(106, 13, 173, 0.2);
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out;
}

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

/* Shining Heading */
.shining-heading {
    font-size: 2.2rem;
    text-align: center;
    color: var(--deep-purple);
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #6A0DAD, #FF4DA6, #6A0DAD);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.subtitle {
    text-align: center;
    color: var(--deep-purple);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Countdown Timer */
.countdown-container {
    text-align: center;
    background: var(--primary-gradient);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 166, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 77, 166, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 166, 0);
    }
}

.countdown-timer {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.countdown-timer span {
    display: inline-block;
    min-width: 60px;
    animation: numberPop 0.3s ease-out;
}

@keyframes numberPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.countdown-label {
    color: white;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Quote Rotator */
.quote-rotator {
    text-align: center;
    font-style: italic;
    color: var(--deep-purple);
    padding: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    animation: fadeQuote 1s ease-in-out;
}

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

/* Form Styles */
.valentine-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1.1rem;
    color: var(--deep-purple);
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 0.8rem 1rem;
    border: 2px solid transparent;
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(106, 13, 173, 0.1);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-pink);
    box-shadow: 0 0 0 3px rgba(255, 77, 166, 0.2);
}

/* Generate Button */
.generate-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #6A0DAD, #FF4DA6, #6A0DAD);
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
    margin-top: 1rem;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.generate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(106, 13, 173, 0.4);
}

.generate-btn:active {
    transform: scale(0.95);
}

/* Wish Result */
.wish-result {
    margin-top: 2rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.wish-result.show {
    opacity: 1;
}

.hidden {
    display: none;
}

.result-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.2);
    transition: all 0.3s ease;
}

.glowing-border {
    animation: borderGlow 2s infinite;
}

@keyframes borderGlow {
    0% {
        box-shadow: 0 0 5px #FF4DA6, 0 0 10px #FF4DA6, 0 0 15px #FF4DA6;
    }
    50% {
        box-shadow: 0 0 20px #6A0DAD, 0 0 30px #6A0DAD, 0 0 40px #6A0DAD;
    }
    100% {
        box-shadow: 0 0 5px #FF4DA6, 0 0 10px #FF4DA6, 0 0 15px #FF4DA6;
    }
}

.wish-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--deep-purple);
    white-space: pre-wrap;
    margin-bottom: 2rem;
    min-height: 150px;
}

/* Typing Animation */
.typing {
    overflow: hidden;
    border-right: 2px solid var(--secondary-pink);
    white-space: pre-wrap;
    word-break: break-word;
    animation: typing 0.5s steps(40, end);
}

@keyframes typing {
    from {
        max-height: 0;
    }
    to {
        max-height: 500px;
    }
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 0.5s ease-out;
}

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

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: var(--primary-gradient);
    color: white;
}

.share-btn:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 5px 15px rgba(106, 13, 173, 0.4);
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-btn.whatsapp:hover { background: #25D366; }
.share-btn.facebook:hover { background: #1877F2; }
.share-btn.twitter:hover { background: #1DA1F2; }
.share-btn.copy:hover { background: #6A0DAD; }
.share-btn.download:hover { background: #FF4DA6; }

/* Copy Message */
.copy-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(106, 13, 173, 0.4);
    animation: slideInRight 0.3s ease-out;
    z-index: 1000;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .valentine-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .shining-heading {
        font-size: 1.8rem;
    }
    
    .countdown-timer {
        font-size: 2rem;
    }
    
    .share-buttons {
        gap: 0.5rem;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .shining-heading {
        font-size: 1.5rem;
    }
    
    .countdown-timer {
        font-size: 1.5rem;
    }
    
    .countdown-timer span {
        min-width: 40px;
    }
}