/* Disney Character Quiz Styles */

:root {
    --disney-purple: #6a4c93;
    --disney-pink: #ff6b9d;
    --disney-blue: #4ecdc4;
    --disney-gold: #ffd700;
    --disney-sky: #a8e6cf;

    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #e1e8ed;

    --shadow-light: 0 2px 10px rgba(106, 76, 147, 0.1);
    --shadow-medium: 0 8px 25px rgba(106, 76, 147, 0.15);
    --shadow-strong: 0 15px 35px rgba(106, 76, 147, 0.2);

    --gradient-magic: linear-gradient(135deg, var(--disney-purple), var(--disney-pink), var(--disney-blue));
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Disney Magic Background */
.disney-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.castle-silhouette {
    position: absolute;
    bottom: -20px;
    right: -50px;
    width: 300px;
    height: 200px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 215, 0, 0.1));
    clip-path: polygon(50% 0%, 60% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 40% 35%);
    animation: castleGlow 6s ease-in-out infinite alternate;
}

.magic-stars {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--disney-gold) 2px, transparent 2px);
    background-size: 20px 20px;
    animation: twinkle 3s ease-in-out infinite alternate;
}

.fairy-dust {
    position: absolute;
    top: 50%;
    right: 20%;
    width: 150px;
    height: 150px;
    background: conic-gradient(from 0deg, transparent, var(--disney-pink), transparent, var(--disney-blue), transparent);
    border-radius: 50%;
    filter: blur(20px);
    animation: dustSwirl 8s linear infinite;
}

.magic-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--disney-gold);
    border-radius: 50%;
    animation: floatMagic 6s ease-in-out infinite;
}

.magic-particle:nth-child(4) {
    top: 30%;
    left: 80%;
    animation-delay: -1s;
}

.magic-particle:nth-child(5) {
    top: 70%;
    left: 15%;
    animation-delay: -3s;
}

.magic-particle:nth-child(6) {
    top: 60%;
    left: 60%;
    animation-delay: -5s;
}

@keyframes castleGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes twinkle {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

@keyframes dustSwirl {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes floatMagic {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.5; }
    33% { transform: translateY(-20px) scale(1.2); opacity: 1; }
    66% { transform: translateY(10px) scale(0.8); opacity: 0.7; }
}

/* Container */
.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;
    background: var(--bg-card);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.4rem;
    background: var(--gradient-magic);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo i {
    font-size: 1.8rem;
    background: var(--gradient-magic);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.home-link:hover {
    background: var(--disney-purple);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Quiz Content */
.quiz-content {
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

/* Quiz Intro */
.quiz-intro {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(168, 230, 207, 0.1));
}

.quiz-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounceIn 1s ease-out;
}

.quiz-intro h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-magic);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.quiz-description {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.quiz-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.stat i {
    font-size: 1.5rem;
    color: var(--disney-purple);
}

.stat span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.start-btn {
    background: var(--gradient-magic);
    color: var(--text-light);
    border: none;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    filter: brightness(1.1);
}

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

/* Quiz Screen */
.quiz-screen {
    padding: 40px;
}

.quiz-header {
    margin-bottom: 40px;
}

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

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(106, 76, 147, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-magic);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.progress-text {
    font-weight: 700;
    color: var(--disney-purple);
    font-size: 1.1rem;
}

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

.question-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 107, 157, 0.05));
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-light);
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.question-number {
    color: var(--disney-purple);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.4;
}

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

.answer-option {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.answer-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--gradient-magic);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.answer-option:hover {
    border-color: var(--disney-purple);
    transform: translateX(8px);
    box-shadow: var(--shadow-medium);
}

.answer-option:hover::before {
    transform: scaleY(1);
}

.answer-option.selected {
    border-color: var(--disney-purple);
    background: linear-gradient(135deg, rgba(106, 76, 147, 0.1), rgba(255, 107, 157, 0.1));
    transform: translateX(8px);
    box-shadow: var(--shadow-medium);
}

.answer-option.selected::before {
    transform: scaleY(1);
}

.answer-text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

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

.action-btn {
    padding: 15px 30px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    justify-content: center;
}

.action-btn.primary {
    background: var(--gradient-magic);
    color: var(--text-light);
    box-shadow: var(--shadow-light);
}

.action-btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    filter: brightness(1.1);
}

.action-btn.secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.action-btn.secondary:hover:not(:disabled) {
    background: var(--disney-purple);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Results Screen */
.results-screen {
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(168, 230, 207, 0.1));
}

.results-container {
    max-width: 600px;
    margin: 0 auto;
}

.results-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--shadow-strong);
    border: 3px solid var(--disney-gold);
    position: relative;
    overflow: hidden;
}

.results-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: rotate 8s linear infinite;
    z-index: -1;
}

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

.result-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: celebrationBounce 1s ease-out;
}

.result-title {
    font-size: 1.5rem;
    color: var(--disney-purple);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-content {
    margin-bottom: 40px;
}

.result-type {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-magic);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1.2;
}

.result-description {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.result-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.trait-tag {
    background: linear-gradient(135deg, var(--disney-purple), var(--disney-pink));
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-light);
    animation: fadeInScale 0.5s ease-out forwards;
    opacity: 0;
}

.trait-tag:nth-child(1) { animation-delay: 0.1s; }
.trait-tag:nth-child(2) { animation-delay: 0.2s; }
.trait-tag:nth-child(3) { animation-delay: 0.3s; }
.trait-tag:nth-child(4) { animation-delay: 0.4s; }

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* Beautiful Share Modal Styles */
.share-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;
    backdrop-filter: blur(5px);
}

.share-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.share-modal h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.share-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.share-btn.facebook {
    background: linear-gradient(45deg, #4267B2, #365899);
    color: white;
}

.share-btn.tiktok {
    background: linear-gradient(45deg, #ff0050, #000000);
    color: white;
}

.share-btn.x {
    background: linear-gradient(45deg, #1DA1F2, #0d8bd9);
    color: white;
}

.share-btn.instagram {
    background: linear-gradient(45deg, #E4405F, #833AB4, #F77737);
    color: white;
}

.share-btn.reddit {
    background: linear-gradient(45deg, #FF4500, #CC3600);
    color: white;
}

.share-btn.native {
    background: linear-gradient(45deg, #32CD32, #228B22);
    color: white;
}

.close-share {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.close-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .share-modal {
        padding: 20px;
        margin: 20px;
    }

    .share-buttons-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .share-btn {
        padding: 14px;
        font-size: 13px;
    }
}


/* Animations */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

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

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

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .quiz-intro, .quiz-screen, .results-screen {
        padding: 30px 20px;
    }

    .quiz-intro h1 {
        font-size: 2rem;
    }

    .quiz-description {
        font-size: 1.1rem;
    }

    .quiz-stats {
        flex-direction: column;
        gap: 15px;
    }

    .question-card {
        padding: 25px;
    }

    .question-text {
        font-size: 1.3rem;
    }

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

    .results-card {
        padding: 30px;
    }

    .result-type {
        font-size: 1.8rem;
    }

    .result-actions {
        gap: 12px;
    }

    .action-btn {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .quiz-intro h1 {
        font-size: 1.8rem;
    }

    .question-text {
        font-size: 1.2rem;
    }

    .answer-option {
        padding: 15px 20px;
    }

    .result-type {
        font-size: 1.6rem;
    }

    .result-description {
        font-size: 1.1rem;
    }
}