/* Learning Style Quiz - Educational & Knowledge Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

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

.brain-wave {
    position: absolute;
    top: 15%;
    left: 10%;
    width: 200px;
    height: 100px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px 50px 50px 50px / 60px 60px 40px 40px;
    animation: brainPulse 4s ease-in-out infinite;
}

@keyframes brainPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        border-color: rgba(255, 255, 255, 0.1);
    }
    50% { 
        transform: scale(1.1) rotate(5deg); 
        border-color: rgba(240, 147, 251, 0.3);
    }
}

.knowledge-bubble {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.bubble-1 { top: 20%; right: 15%; animation-delay: 0s; }
.bubble-2 { top: 60%; left: 8%; animation-delay: 1s; }
.bubble-3 { top: 40%; right: 25%; animation-delay: 2s; }
.bubble-4 { top: 70%; right: 10%; animation-delay: 3s; }
.bubble-5 { top: 80%; left: 20%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    33% { transform: translateY(-20px) scale(1.1); }
    66% { transform: translateY(-10px) scale(0.95); }
}

.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: #f093fb;
    animation: brainThink 3s ease-in-out infinite;
}

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

.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: learning 3s ease-in-out infinite;
}

@keyframes learning {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(5deg); }
}

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: #667eea;
    font-weight: 600;
}

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

.start-btn {
    background: linear-gradient(135deg, #667eea 0%, #f093fb 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(240, 147, 251, 0.3);
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(240, 147, 251, 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(102, 126, 234, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #f093fb);
    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: #667eea;
    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(240, 147, 251, 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(240, 147, 251, 0.1), transparent);
    transition: left 0.5s ease;
}

.answer-option:hover {
    border-color: #f093fb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.2);
}

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

.answer-option.selected {
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
    color: white;
    border-color: #f093fb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 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, #667eea 0%, #f093fb 100%);
    color: white;
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: 2px solid rgba(240, 147, 251, 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: bounce 1s ease-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

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

.result-type {
    font-size: 2.2em;
    color: #667eea;
    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, #667eea 0%, #f093fb 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: #667eea;
}

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

/* 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;
    }
}