/* HERO-ME Mobile Game Styles - Uses base.css */

/* Comic Neue font override */
@font-face {
    font-family: 'Comic Neue';
    src: url('../fonts/ComicNeue-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Comic Neue';
    src: url('../fonts/ComicNeue-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Background video */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    background: #ffffff;
}

/* Override body background and font for mobile */
body {
    background: transparent;
    padding: 1rem;
    max-width: none;
    font-family: 'Comic Neue', sans-serif;
    position: relative;
}

/* Mobile container */
.mobile-container {
    max-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Language Selection */
#language-selection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.mobile-header h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text);
    margin: 0 0 2rem 0;
    font-family: 'Comic Neue', sans-serif;
}

#language-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 400px;
    gap: 1rem;
}

.answer-section {
    width: calc(50% - 0.5rem);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.language-btn {
    width: 100%;
    height: 100%;
    font-size: 1.2rem;
    padding: 0;
    margin: 0;
    background-color: transparent;
    color: var(--primary);
    position: relative;
    cursor: pointer;
    outline: none;
    border: none !important;
    box-shadow: none !important;
}

.language-btn .answer-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    transform: none;
    background: #fff;
    color: #000;
    width: calc(100% - 20px);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    box-sizing: border-box;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-family: 'Comic Neue', sans-serif;
}

/* Language flag backgrounds */
.language-btn[data-lang="de"] .answer-text {
    background-image: url('../../content/images/flags/de.png');
    background-size: cover;
    background-position: center;
}
.language-btn[data-lang="fr"] .answer-text {
    background-image: url('../../content/images/flags/fr.png');
    background-size: cover;
    background-position: center;
}
.language-btn[data-lang="en"] .answer-text {
    background-image: url('../../content/images/flags/en.png');
    background-size: cover;
    background-position: center;
}
.language-btn[data-lang="it"] .answer-text {
    background-image: url('../../content/images/flags/it.png');
    background-size: cover;
    background-position: center;
}

.flag-label {
    opacity: 0;
    position: absolute;
}

/* Quiz Container */
#quiz-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 1rem;
}

#question-container {
    flex: 0 0 auto;
    margin-bottom: 2rem;
    width: 100%;
    /* padding: 0rem 2rem; */
}

.question-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

#question-text {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.3;
    background: #fff;
    padding: 1.5rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
    font-family: 'Comic Neue', sans-serif;
}

#answers-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    width: 100%;
    /* padding: 2rem; */
}

.answer-btn {
    width: 100%;
    height: auto;
    min-height: 80px;
    font-size: 1rem;
    padding: 0;
    margin: 0;
    background-color: transparent;
    color: var(--primary);
    position: relative;
    cursor: pointer;
    outline: none;
    border: none !important;
    box-shadow: none !important;
}

.answer-btn .answer-text {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    background: #fff;
    color: #000;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    height: auto;
    min-height: 60px;
    padding: 1rem;
    font-family: 'Comic Neue', sans-serif;
}

/* Feedback Sections */
.feedback-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.feedback-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text);
    font-family: 'Comic Neue', sans-serif;
}

/* Sketch-less modifier for feedback text */
.feedback-text.sketch-less {
    padding: 20px;
    background: #fff;
}

/* Feedback color overrides */
#feedback-correct .feedback-text.sketch-less { background: var(--success); color: #fff; }
#feedback-incorrect .feedback-text.sketch-less { background: var(--error); color: #fff; }

/* Results Section */
#results-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.results-content {
    background: var(--white);
    padding: 2rem;
    text-align: center;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
}

.score-display h2 {
    font-size: 1.5rem;
    font-weight: bold;
    /* color: var(--primary); */
    margin: 0 0 1.5rem 0;
    font-family: 'Comic Neue', sans-serif;
}

.contest-info {
    margin-bottom: 2rem;
}

.contest-info p {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text);
    margin: 0;
    font-family: 'Comic Neue', sans-serif;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.primary-btn {
    background-color: var(--primary);
    color: var(--white);
    font-family: 'Comic Neue', sans-serif;
}

.secondary-btn {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    font-family: 'Comic Neue', sans-serif;
}

/* Responsive adjustments for larger screens */
@media (min-width: 768px) {
    .mobile-container {
        max-width: 600px;
        margin: 0 auto;
    }
    
    #language-container {
        max-width: 500px;
    }
    
    .results-content {
        max-width: 500px;
    }
    
    .mobile-header h1 {
        font-size: 2.2rem;
    }
    
    #question-text {
        font-size: 1.6rem;
    }
    
    .feedback-text {
        font-size: 2.2rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .mobile-container {
        padding: 0.5rem;
    }
    
    #language-selection,
    .feedback-section,
    #results-container {
        min-height: 100vh;
        justify-content: flex-start;
        padding-top: 1rem;
    }
    
    .mobile-header h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    #quiz-container {
        padding-top: 0.5rem;
    }
    
    .feedback-text {
        font-size: 1.5rem;
    }
}
