/* Purple & Pink Romantic Theme */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Poppins:wght@300;400;600&display=swap');

.magic-valentine-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px 30px;
    background: linear-gradient(145deg, #fff5f7 0%, #f8e8ff 100%);
    border-radius: 50px;
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.2);
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

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

.heart {
    position: absolute;
    color: rgba(255, 105, 180, 0.3);
    font-size: 20px;
    animation: float 6s infinite;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.magic-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.magic-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 42px;
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
    text-shadow: 3px 3px 6px rgba(255, 182, 193, 0.3);
}

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
    color: #ff4d6d;
    font-size: 32px;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

.magic-input-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.3);
    position: relative;
    z-index: 2;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #8a4b6e;
    font-weight: 600;
    font-size: 16px;
}

.input-group label i {
    margin-right: 10px;
    color: #ff6b9d;
}

.magic-input, .magic-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ffe0f0;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #4a4a4a;
}

.magic-input:focus, .magic-select:focus {
    border-color: #ff6b9d;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
    outline: none;
}

.magic-button {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.magic-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(196, 69, 105, 0.4);
}

.magic-button i {
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.result-container {
    position: relative;
    z-index: 2;
    animation: slideIn 0.8s ease;
}

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

.hidden {
    display: none;
}

.love-percentage-card {
    background: white;
    padding: 30px;
    border-radius: 40px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.3);
    position: relative;
    overflow: hidden;
}

.percentage-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    background: linear-gradient(145deg, #ffe6f0, #ffd9e8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 8px solid white;
    box-shadow: 0 0 0 5px #ffb6c1;
}

.percentage-circle span {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(45deg, #ff4d6d, #c44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.friendship-message {
    font-size: 20px;
    color: #8a4b6e;
    font-weight: 600;
    margin: 10px 0 0;
}

.wish-card {
    background: linear-gradient(145deg, #fff0f5, #ffe4ec);
    padding: 35px;
    border-radius: 40px;
    margin: 25px 0;
    border: 2px solid white;
    position: relative;
}

.wish-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    color: #c44569;
}

.wish-header i {
    font-size: 24px;
    color: #ff6b9d;
}

.typing-animation {
    font-size: 20px;
    line-height: 1.8;
    color: #4a4a4a;
    font-family: 'Dancing Script', cursive;
    font-size: 24px;
    white-space: pre-wrap;
    word-wrap: break-word;
    border-right: 3px solid #ff6b9d;
    animation: blink 1s step-end infinite;
    min-height: 120px;
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: #ff6b9d; }
}

.social-sharing {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 30px;
}

.social-sharing h4 {
    color: #8a4b6e;
    margin-bottom: 20px;
    font-size: 20px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.whatsapp {
    background: linear-gradient(45deg, #25d366, #128C7E);
}

.facebook {
    background: linear-gradient(45deg, #4267B2, #344e86);
}

.twitter {
    background: linear-gradient(45deg, #1DA1F2, #0d8bd9);
}

/* Petal Animation */
.petal {
    position: absolute;
    background: radial-gradient(circle, #ffb6c1, #ff9eb5);
    width: 15px;
    height: 15px;
    border-radius: 100% 0 100% 0;
    animation: petalFall 8s linear infinite;
    opacity: 0.6;
}

@keyframes petalFall {
    0% {
        transform: rotate(0deg) translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) translateY(100vh);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .magic-valentine-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .magic-header h2 {
        font-size: 32px;
    }
    
    .typing-animation {
        font-size: 20px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .magic-header h2 {
        font-size: 28px;
    }
    
    .percentage-circle {
        width: 120px;
        height: 120px;
    }
    
    .percentage-circle span {
        font-size: 36px;
    }
}