/* Love Compatibility Quiz Styles */

:root {
    --gradient-start: #ff9a9e;
    --gradient-mid: #fad0c4;
    --gradient-end: #fbc2eb;
    --accent-gold: #ffd700;
    --text-dark: #2d3436;
    --white-soft: #fff9f9;
}

.love-quiz-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f5 50%, #f8f0ff 100%);
}

.love-quiz-header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.love-quiz-title {
    font-size: 2.5em;
    background: linear-gradient(45deg, #ff6b9d, #9b6bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.2);
}

.love-quiz-subtitle {
    color: var(--text-dark);
    font-size: 1.1em;
    opacity: 0.8;
}

.love-quiz-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 
        0 20px 40px rgba(255, 105, 180, 0.2),
        0 0 0 2px rgba(255, 215, 0, 0.1) inset,
        0 0 20px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.love-quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 50px rgba(255, 105, 180, 0.3),
        0 0 0 3px rgba(255, 215, 0, 0.2) inset,
        0 0 30px rgba(255, 215, 0, 0.3);
}

/* 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;
    opacity: 0;
    animation: float 6s infinite;
}

.heart1 { left: 10%; animation-delay: 0s; }
.heart2 { left: 30%; animation-delay: 1s; }
.heart3 { left: 50%; animation-delay: 2s; }
.heart4 { left: 70%; animation-delay: 3s; }
.heart5 { left: 90%; animation-delay: 4s; }

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

/* Input Section */
.input-section {
    position: relative;
    z-index: 2;
}

.input-group {
    margin-bottom: 25px;
    animation: fadeInUp 0.6s ease;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1em;
    background: linear-gradient(45deg, #ff6b9d, #9b6bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.love-input,
.love-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 182, 193, 0.5);
    border-radius: 50px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
}

.love-input:focus,
.love-select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.3),
        0 0 0 3px rgba(255, 105, 180, 0.1);
    transform: scale(1.02);
}

/* Love Button */
.love-button {
    position: relative;
    width: 100%;
    padding: 18px 30px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #ff6b9d, #9b6bff, #ff6b9d);
    background-size: 200% 200%;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: gradientShift 3s ease infinite;
}

.love-button:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 30px rgba(255, 105, 180, 0.5),
        0 0 0 3px rgba(255, 215, 0, 0.3);
}

.love-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.love-button:hover .button-glow {
    opacity: 1;
    animation: rotate 4s linear infinite;
}

/* Result Section */
.result-section {
    margin-top: 40px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease;
}

.result-card {
    background: linear-gradient(135deg, #fff5f5, #fff0f5);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 
        0 20px 40px rgba(255, 105, 180, 0.2),
        0 0 0 3px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.result-card.glow-effect {
    animation: goldenGlow 2s ease;
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.percentage-container {
    margin-bottom: 15px;
}

.percentage-number {
    font-size: 5em;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b9d, #9b6bff, #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: pulse 2s infinite;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
}

.compatibility-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(45deg, #ffd700, #ffb347);
    border-radius: 50px;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.result-message {
    text-align: center;
    margin-bottom: 30px;
    min-height: 100px;
}

.message-line1,
.message-line2 {
    font-size: 1.2em;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 10px 0;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.message-line1 {
    animation-delay: 0.2s;
    font-weight: 600;
    background: linear-gradient(45deg, #ff6b9d, #9b6bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.message-line2 {
    animation-delay: 0.4s;
}

/* Result Footer */
.result-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.reset-button {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #ffb6c1, #ffc0cb);
    color: var(--text-dark);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.reset-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.5);
    background: linear-gradient(45deg, #ffc0cb, #ffb6c1);
}

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

.share-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(45deg, #f0f0f0, #ffffff);
    color: var(--text-dark);
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.share-btn.whatsapp:hover { background: linear-gradient(45deg, #25D366, #128C7E); color: white; }
.share-btn.facebook:hover { background: linear-gradient(45deg, #4267B2, #3b5998); color: white; }
.share-btn.twitter:hover { background: linear-gradient(45deg, #1DA1F2, #14171A); color: white; }
.share-btn.telegram:hover { background: linear-gradient(45deg, #0088cc, #004d7a); color: white; }
.share-btn.copy-link:hover { background: linear-gradient(45deg, #6c5ce7, #a463f5); color: white; }

.download-card {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #a8e6cf, #d4edfa);
    color: var(--text-dark);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.download-card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(168, 230, 207, 0.5);
    background: linear-gradient(45deg, #d4edfa, #a8e6cf);
}

/* Footer */
.love-quiz-footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: var(--text-dark);
    opacity: 0.7;
    font-size: 0.9em;
}

.footer-text {
    position: relative;
    display: inline-block;
}

.footer-text::before,
.footer-text::after {
    content: "✨";
    margin: 0 10px;
    opacity: 0.5;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes goldenGlow {
    0%, 100% {
        box-shadow: 
            0 20px 40px rgba(255, 105, 180, 0.2),
            0 0 0 3px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 
            0 30px 60px rgba(255, 105, 180, 0.4),
            0 0 0 6px rgba(255, 215, 0, 0.4),
            0 0 30px rgba(255, 215, 0, 0.5);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .love-quiz-container {
        padding: 15px;
    }
    
    .love-quiz-card {
        padding: 25px;
    }
    
    .love-quiz-title {
        font-size: 2em;
    }
    
    .percentage-number {
        font-size: 3.5em;
    }
    
    .result-footer {
        flex-direction: column;
    }
    
    .reset-button,
    .download-card {
        width: 100%;
    }
    
    .share-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .love-quiz-title {
        font-size: 1.5em;
    }
    
    .percentage-number {
        font-size: 2.5em;
    }
    
    .message-line1,
    .message-line2 {
        font-size: 1em;
    }
}

/* Print Styles */
@media print {
    .love-quiz-container {
        background: white;
    }
    
    .love-button,
    .share-buttons,
    .download-card,
    .floating-hearts {
        display: none;
    }
    
    .result-card {
        box-shadow: none;
        border: 2px solid #ffd700;
    }
}