/* Love Prediction Plugin Styles */
:root {
    --primary-pink: #ff4da6;
    --secondary-purple: #8a2be2;
    --gradient-primary: linear-gradient(135deg, #ff4da6, #8a2be2);
    --gradient-hover: linear-gradient(135deg, #ff6bb5, #9d4eed);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-color: rgba(138, 43, 226, 0.2);
    --text-dark: #2d1b3c;
    --text-light: #ffffff;
}

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

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.love-prediction-container {
    position: relative;
    min-height: 600px;
    padding: 30px 15px;
    background: var(--gradient-primary);
    border-radius: 30px;
    overflow: hidden;
    margin: 20px 0;
}

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

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    animation: float 6s infinite;
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: inherit;
    border-radius: 50%;
}

.heart::before {
    left: -10px;
    top: 0;
}

.heart::after {
    top: -10px;
    left: 0;
}

.heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.heart:nth-child(2) { left: 30%; animation-delay: 2s; width: 25px; height: 25px; }
.heart:nth-child(3) { left: 50%; animation-delay: 4s; }
.heart:nth-child(4) { left: 70%; animation-delay: 1s; width: 30px; height: 30px; }
.heart:nth-child(5) { left: 90%; animation-delay: 3s; }
.heart:nth-child(6) { left: 20%; animation-delay: 5s; width: 15px; height: 15px; }

@keyframes float {
    0% {
        bottom: -50px;
        opacity: 0;
        transform: rotate(45deg) scale(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        bottom: 100%;
        transform: rotate(45deg) scale(1);
        opacity: 0;
    }
}

/* Glassmorphism Card */
.love-card {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: 0 20px 50px var(--shadow-color);
    animation: fadeIn 1s ease-out;
}

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

.love-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                     0 0 30px var(--primary-pink);
    }
}

/* Form Styles */
.love-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.required {
    color: #ffeb3b;
    margin-left: 3px;
}

.love-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.love-input:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 5px 15px rgba(255, 77, 166, 0.3);
}

.love-input:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 5px 20px rgba(255, 77, 166, 0.4);
    transform: translateY(-2px);
}

select.love-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238a2be2'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

/* Submit Button */
.love-submit-btn {
    position: relative;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
}

.love-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 77, 166, 0.4);
}

.love-submit-btn:active {
    transform: translateY(-1px);
}

.love-submit-btn .btn-text {
    position: relative;
    z-index: 2;
}

.love-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-hover);
    transition: left 0.5s ease;
    z-index: 1;
}

.love-submit-btn:hover::before {
    left: 0;
}

/* Loader Animation */
.btn-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

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

/* Results Section */
.love-results {
    margin-top: 40px;
    animation: slideUp 0.6s ease-out;
}

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

/* Percentage Circle */
.percentage-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.progress-circle {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-pink) 0deg, var(--secondary-purple) 360deg);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotateIn 1s ease-out;
    box-shadow: 0 0 30px rgba(255, 77, 166, 0.5);
}

.progress-circle-inner {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.percentage-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.percentage-symbol {
    font-size: 1.5rem;
    color: var(--primary-pink);
    margin-top: -5px;
}

.heartbeat-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 77, 166, 0.5);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    35% { transform: scale(1); }
    45% { transform: scale(1.05); }
    55% { transform: scale(1); }
    100% { transform: scale(1); }
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

/* Compatibility Level */
.compatibility-level {
    text-align: center;
    margin: 20px 0;
}

.level-badge {
    display: inline-block;
    padding: 8px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Prediction Message */
.prediction-message {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.prediction-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.prediction-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    min-height: 60px;
    border-right: 2px solid var(--primary-pink);
    white-space: pre-wrap;
}

.poetry-message {
    font-size: 1rem;
    color: var(--secondary-purple);
    font-style: italic;
    line-height: 1.6;
    white-space: pre-line;
}

/* Share Buttons */
.share-buttons {
    margin: 30px 0;
    text-align: center;
}

.share-buttons h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--gradient-primary);
    border: 2px solid transparent;
}

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

.share-btn i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.share-btn span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.reset-btn, .sound-toggle {
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 50px;
    background: transparent;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover, .sound-toggle:hover {
    background: white;
    color: var(--primary-pink);
    transform: scale(1.05);
}

.sound-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .love-card {
        padding: 25px;
    }
    
    .love-title {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .share-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .percentage-number {
        font-size: 2.5rem;
    }
    
    .progress-circle {
        width: 150px;
        height: 150px;
    }
    
    .progress-circle-inner {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 480px) {
    .love-card {
        padding: 20px;
    }
    
    .love-title {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn span {
        font-size: 0.7rem;
    }
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideUpFade 0.3s ease;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}