
/* Love Language Quiz - Romance & Connection Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44dff 50%, #ff6b9d 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Love-themed Background Elements */
.love-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.heart-particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: floatHeart 6s infinite ease-in-out;
}

.heart-particle:nth-child(1) { left: 15%; animation-delay: 0s; }
.heart-particle:nth-child(2) { left: 45%; animation-delay: 2s; }
.heart-particle:nth-child(3) { left: 75%; animation-delay: 4s; }

@keyframes floatHeart {
    0%, 100% { transform: translateY(100vh) scale(0.5); opacity: 0; }
    50% { transform: translateY(50vh) scale(1); opacity: 1; }
}

.floating-heart {
    position: absolute;
    top: 10%;
    right: 10%;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.3);
    animation: heartBeat 2s infinite;
}

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

.love-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(45deg, rgba(255, 107, 157, 0.2), rgba(196, 77, 255, 0.2));
    clip-path: polygon(0% 50%, 25% 0%, 50% 50%, 75% 0%, 100% 50%, 100% 100%, 0% 100%);
    animation: waveFlow 4s ease-in-out infinite;
}

@keyframes waveFlow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-20px); }
}

.cupid-arrow {
    position: absolute;
    top: 30%;
    left: 5%;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    animation: arrowFly 8s linear infinite;
}

.cupid-arrow::before {
    content: '';
    position: absolute;
    right: -10px;
    top: -3px;
    width: 0;
    height: 0;
    border-left: 10px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

@keyframes arrowFly {
    0% { transform: translateX(-100px) rotate(0deg); opacity: 0; }
    25% { opacity: 1; }
    75% { opacity: 1; }
    100% { transform: translateX(calc(100vw + 100px)) rotate(360deg); opacity: 0; }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.logo i {
    font-size: 28px;
    color: #ff6b9d;
}

.home-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.home-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Quiz Content */
.quiz-content {
    text-align: center;
}

.quiz-intro {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.quiz-icon {
    font-size: 80px;
    margin-bottom: 30px;
    display: block;
    animation: loveGlow 2s infinite alternate;
}

@keyframes loveGlow {
    0% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1.1); filter: brightness(1.2); }
}

h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.quiz-description {
    font-size: 1.2em;
    color: #5a6c7d;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quiz-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ff6b9d;
    font-weight: 600;
}

.stat i {
    font-size: 20px;
    color: #c44dff;
}

.start-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44dff 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.4);
}

.start-btn i {
    font-size: 1.1em;
}

/* Quiz Screen Styles */
.quiz-screen {
    animation: slideIn 0.5s ease-out;
}

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

.quiz-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 107, 157, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d, #c44dff);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    font-weight: 600;
    color: #2c3e50;
    min-width: 60px;
    text-align: right;
}

.question-container {
    margin-bottom: 30px;
}

.question-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.question-number {
    color: #ff6b9d;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
    line-height: 1.4;
}

.answers-container {
    display: grid;
    gap: 15px;
}

.answer-option {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 500;
    color: #2c3e50;
    position: relative;
    overflow: hidden;
}

.answer-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 157, 0.1), transparent);
    transition: left 0.5s ease;
}

.answer-option:hover {
    border-color: #ff6b9d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.2);
}

.answer-option:hover::before {
    left: 100%;
}

.answer-option.selected {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44dff 100%);
    color: white;
    border-color: #ff6b9d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.quiz-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.action-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    justify-content: center;
}

.action-btn.primary {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44dff 100%);
    color: white;
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #ff6b9d;
    border: 2px solid rgba(255, 107, 157, 0.3);
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results Screen */
.results-screen {
    animation: fadeIn 0.8s ease-out;
}

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

.results-container {
    display: flex;
    justify-content: center;
}

.results-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 50px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.results-header {
    margin-bottom: 30px;
}

.result-icon {
    font-size: 100px;
    margin-bottom: 20px;
    display: block;
    animation: loveSparkle 1.5s ease-out infinite;
}

@keyframes loveSparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
}

.result-title {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.result-type {
    font-size: 2.2em;
    color: #ff6b9d;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

.result-description {
    font-size: 1.2em;
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 30px;
}

.result-traits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.trait-tag {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44dff 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9em;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.result-actions .action-btn {
    text-decoration: none;
}

/* Sharing Modal Styles */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.share-modal {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid #eee;
}

.share-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.share-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.share-modal-content {
    padding: 20px 30px 30px;
}

.share-modal-content p {
    color: #666;
    margin-bottom: 25px;
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.tiktok {
    background: #000;
}

.share-btn.twitter {
    background: #000;
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-btn.reddit {
    background: #ff4500;
}

.share-btn.other {
    background: #ff6b9d;
}

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

@media (max-width: 480px) {
    .share-modal {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .share-modal-header {
        padding: 20px 20px 15px;
    }
    
    .share-modal-content {
        padding: 15px 20px 25px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .quiz-intro {
        padding: 30px 25px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .quiz-stats {
        gap: 20px;
    }
    
    .question-card {
        padding: 25px 20px;
    }
    
    .question-text {
        font-size: 1.2em;
    }
    
    .quiz-actions {
        flex-direction: column;
    }
    
    .results-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .result-type {
        font-size: 1.8em;
    }
    
    .result-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .quiz-intro {
        padding: 25px 20px;
    }
    
    .quiz-icon {
        font-size: 60px;
    }
    
    h1 {
        font-size: 1.7em;
    }
    
    .quiz-description {
        font-size: 1em;
    }
    
    .start-btn {
        padding: 15px 30px;
        font-size: 1em;
    }
}
