/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Fake Window Controls */
.window-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.window-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.minimize-btn {
    background: #ffbd2e;
    color: #d39e00;
}

.close-btn {
    background: #ff5f57;
    color: #e04340;
}

.window-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Page Transitions */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.page.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Landing Page Styles */
.hero {
    text-align: center;
    padding: 2rem;
    max-width: 700px;
    width: 100%;
}

.title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.subtitle {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    color: #FFD93D;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both, subtleBounce 3s ease-in-out 1.5s infinite;
    transform-origin: center;
}

.description {
    font-size: clamp(1.4rem, 4vw, 1.6rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.choice-btn {
    padding: 2.5rem;
    border: none;
    border-radius: 24px;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.choice-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.choice-btn .emoji {
    font-size: 3rem;
    flex-shrink: 0;
}

.choice-btn .text {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
}

.builder-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-btn:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* Quiz Page Styles */
.quiz-container {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    margin: 2rem;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.6s ease;
}

.question-counter {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.question-container {
    margin-bottom: 3rem;
}

#question-text {
    font-size: clamp(1.6rem, 4vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 2rem;
    color: #333;
    line-height: 1.4;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-option {
    padding: 1.5rem 2rem;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-align: left;
    font-weight: 500;
}

.answer-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.answer-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.02);
}

.next-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* Hidden by default now */
}

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

.next-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Results Page Styles */
.results-container {
    padding: 2rem;
    max-width: 700px;
    width: 100%;
}

.result-card {
    background: white;
    border-radius: 24px;
    padding: 3.5rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

.result-title {
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 3rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.share-btn, .restart-btn {
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.restart-btn {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

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

/* About Page Styles */
.about-container {
    background: white;
    border-radius: 24px;
    padding: 3.5rem;
    margin: 2rem;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
}

.about-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.about-close:hover {
    color: #666;
    background: #f5f5f5;
}

.about-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

.about-emoji {
    font-size: 4rem;
    margin: 2rem 0;
    animation: bounce 2s infinite;
}

.back-btn {
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.share-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin: 1.5rem 0;
    text-align: center;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.twitter-btn {
    background: #1da1f2;
    color: white;
}

.copy-btn {
    background: #28a745;
    color: white;
}

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

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

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

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        max-width: 600px;
        padding: 2rem;
    }
    
    .title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: 0.5rem;
    }
    
    .subtitle {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .description {
        font-size: 1.2rem;
    }
    
    .button-container {
        max-width: 400px;
        gap: 1.5rem;
    }
    
    .choice-btn {
        padding: 2rem;
        gap: 1.5rem;
        border-radius: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .choice-btn .emoji {
        font-size: 2.5rem;
    }
    
    .choice-btn .text {
        font-size: 1.1rem;
        font-weight: 400;
    }
    
    .quiz-container, .result-card, .about-container {
        margin: 1rem;
        padding: 2rem;
        max-width: 600px;
    }
    
    .progress-bar {
        height: 8px;
    }
    
    .question-counter {
        font-size: 1.1rem;
        font-weight: 400;
    }
    
    #question-text {
        font-size: 1.5rem;
    }
    
    .answer-option {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
        border-radius: 12px;
        font-weight: 400;
    }
    
    .result-icon {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }
    
    .result-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .result-description {
        font-size: 1.1rem;
    }
    
    .action-buttons {
        gap: 1rem;
    }
    
    .share-btn, .restart-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .about-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        font-size: 1.1rem;
    }
    
    .about-emoji {
        font-size: 3rem;
    }
    
    .back-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .window-controls {
        top: 10px;
        right: 10px;
        padding: 6px 8px;
    }
    
    .window-btn {
        width: 14px;
        height: 14px;
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem;
    }
    
    .quiz-container, .result-card, .about-container {
        padding: 1.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }
} 