/* Petplay Quiz Styles */
.petplay-quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.quiz-start-card {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(0, 229, 238, 0.1));
    border: 2px solid var(--hot-pink);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    animation: fadeIn 0.5s ease;
}

.petplay-question {
    animation: slideIn 0.3s ease;
}

.petplay-results {
    animation: fadeIn 0.5s ease;
}

.answer-button {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--electric-cyan);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
    width: 100%;
    margin: 0.5rem 0;
}

.answer-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
    box-shadow: 0 0 20px rgba(0, 229, 238, 0.5);
}

.percentage-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin: 1rem auto;
    max-width: 400px;
    height: 30px;
}

.percentage-bar > div {
    background: linear-gradient(90deg, var(--hot-pink), var(--electric-cyan));
    height: 100%;
    transition: width 1s ease;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.primary-result {
    text-align: center;
    margin-bottom: 2rem;
}

.secondary-result {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.detailed-interpretation {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.advanced-analytics {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.latent-profile,
.category-breakdown,
.all-types,
.temporal-effects {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.pet-recommendations {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 2rem;
}

.pet-recommendations ul {
    text-align: left;
    list-style: none;
    padding: 0;
}

.pet-recommendations li {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.pet-recommendations li:before {
    content: "🐾";
    position: absolute;
    left: 0;
}

.quiz-actions {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quiz-actions button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.quiz-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Progress Bar */
.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
    height: 8px;
}

.progress-bar > div {
    background: linear-gradient(90deg, var(--hot-pink), var(--electric-cyan));
    height: 100%;
    transition: width 0.3s ease;
}

/* Answer Grid */
.answers-grid {
    display: grid;
    gap: 1rem;
}

/* Pet Emoji Styles */
.pet-emoji {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .petplay-quiz-container {
        padding: 1rem;
    }

    .quiz-start-card {
        padding: 1.5rem;
    }

    .answer-button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .quiz-actions {
        flex-direction: column;
    }

    .quiz-actions button {
        width: 100%;
        margin: 0.5rem 0;
    }

    .percentage-bar {
        max-width: 100%;
    }

    .primary-result h3 {
        font-size: 1.5rem;
    }
}

/* Dark Mode Compatibility */
@media (prefers-color-scheme: dark) {
    .answer-button {
        background: rgba(0, 0, 0, 0.3);
    }

    .answer-button:hover {
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Confidence Interval Display */
.confidence-display {
    display: inline-block;
    font-size: 0.85em;
    opacity: 0.7;
    margin-left: 0.5rem;
}

/* Fuzzy Logic Indicators */
.fuzzy-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.fuzzy-high {
    background: var(--neon-yellow);
}

.fuzzy-medium {
    background: var(--electric-cyan);
}

.fuzzy-low {
    background: var(--hot-pink);
    opacity: 0.5;
}