/* Demo Mobile Styles - Based on app-styles.css mobile responsive design */

/* Demo app styles for phone mockup */
.demo-app {
    overflow: hidden;
}

.demo-app .gate-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    max-height: 100vh;
    padding: 5px;
    overflow: hidden;
}

/* Center quizGate specifically in demo */
.demo-app #quizGate {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

.demo-app .gate-content {
    align-items: center;
    align-self: center;
    padding: 10px;
    max-width: 100%;
    width: 100%;
    max-height: calc(100vh - 20px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.demo-app .gate-title {
    font-size: 0.9rem;
    margin-bottom: 12px;
    padding: 8px 15px;
}

.demo-app .quiz-layout {
    flex-direction: column;
    gap: 10px;
}

.demo-app .question-section {
    flex: none;
    width: 100%;
}

.demo-app .question-text {
    font-size: 0.9rem;
    padding: 8px 10px;
    margin-bottom: 10px;
}

.demo-app .options-container {
    max-width: 800px;
    max-height: 521px;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.demo-app .text-option {
    min-height: 60px;
    padding: 8px 12px;
}

.demo-app .text-option .option-text {
    font-size: 0.9rem;
    padding: 0;
}

.demo-app .fire-progress {
    margin-bottom: 8px;
}

.demo-app .fire-container {
    height: 220px;
}

.demo-app .fire-progress {
    flex: none;
    margin-top: 0;
}

.demo-app .circular-progress-container {
    width: 120px;
    height: 120px;
}

.demo-app .progress-ring {
    width: 150px;
    height: 150px;
}

.demo-app .options-container {
    gap: 10px;
}

.demo-app .option-btn {
    width: 380px;
    font-size: 0.9rem;
}

.demo-app .quiz-progress {
    font-size: 1rem;
    margin-top: 15px;
}

/* Mobile responsive styles - matching app-styles.css */
@media (max-width: 768px) {
    * {
        box-sizing: border-box;
    }
    
    html, body {
        overflow-x: hidden;
        overflow-y: hidden !important;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        padding: 0;
    }
    
    .container {
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
        padding: 10px;
        overflow: hidden;
    }
    
    .content {
        padding: 20px 15px;
        max-width: 100%;
        width: 100%;
        border-radius: 20px;
        max-height: calc(100vh - 20px);
        overflow: hidden;
    }
    
    .main-headline {
        font-size: 1.5rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .sub-headline {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .hidden-content {
        margin-top: 15px;
    }
    
    .zoom-text {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .typewriter-text {
        font-size: 0.95rem;
    }
    
    /* Quiz layout - matching app-styles.css */
    .demo-app .quiz-layout {
        flex-direction: column;
        align-items: center;
    }
    
    .demo-app .fire-progress {
        width: 100%;
        max-width: 200px;
        order: 1;
        margin-bottom: 10px;
        margin-top: 0;
    }
    
    /* Keep horizontal fire progress bar on mobile, just smaller */
    .demo-app .fire-progress-bar-container {
        max-width: 300px;
    }
    
    .demo-app .fire-progress-bar-bg {
        height: 40px;
    }
    
    .demo-app .fire-progress-text {
        font-size: 0.9rem;
    }
    
    .demo-app .question-section {
        order: 2;
        width: 100%;
    }
    
    .demo-app .fire-container {
        height: 250px;
        min-height: 250px;
    }
    
    .demo-app .fire-line {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
        background: radial-gradient(circle at 50% 100%, #ffc107, #ff9800, #ff5722, transparent 70%);
    }
    
    .demo-app .option-btn {
        height: 140px;
        min-height: 140px;
        padding: 4px;
    }
    
    .demo-app .option-image {
        max-width: 65%;
        max-height: 65%;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
    }
    
    .demo-app .gate-container {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: auto;
        max-height: 100vh;
        padding: 5px;
    }
    
    .demo-app #quizGate {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        width: 100%;
    }
    
    .demo-app .gate-content {
        padding: 10px;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }
    
    .demo-app .options-container {
        
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    /* Text questions mobile adjustments */
    .demo-app .text-option {
        height: auto;
        min-height: 60px;
        padding: 8px 12px;
        max-width: 100%;
    }
    
    .demo-app .text-option .option-text {
        font-size: 0.95rem;
        padding: 0 20px;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .demo-app .text-option .option-letter {
        display: none !important;
    }
    
    .demo-app .option-letter {
        display: none !important;
    }
    
    .demo-app .text-question .question-text {
        font-size: 1rem;
        padding: 10px 15px;
        margin-bottom: 12px;
    }
    
    /* Force 2 columns even on mobile for text questions */
    .demo-app .text-questions-container .options-container {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px;
        margin-bottom: 0.5rem;
    }
    
    .demo-app .gallery-header {
        padding: 15px;
        margin-bottom: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .demo-app .gallery-title {
        font-size: 1.5rem;
    }

    .demo-app .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .demo-app .option-btn {
        padding: 0;
    }
}

/* Extra small mobile screens - matching app-styles.css */
@media (max-width: 480px) {
    .demo-app .fire-progress {
        margin-top: 50px !important;
    }
    
    .demo-app .option-btn {
        width: 160px;
        margin-top: 20px !important;
        height: 130px;
        min-height: 130px;
    }
    
    .demo-app .option-image {
        max-width: 60%;
        max-height: 60%;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
    }
    
    .demo-app .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .demo-app .thumbnail {
        width: 45px;
        height: 45px;
    }
}
