/* --- V2 MASTER THEME --- */
:root {
/* Vibrant Orange to Warm Yellow Gradient */
--gradient-start: #FF6B4A;
--gradient-end: #FFC565;
--card-bg: #FFFFFF;
--text-main: #2D2D2D;
--text-light: #666666;
--accent-green: #2ECC71;
--accent-red: #E74C3C;
}

* { box-sizing: border-box; }

body {
font-family: 'Open Sans', sans-serif;
background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
color: var(--text-main);
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}

/* --- MOBILE APP CONTAINER --- */
.app-container {
background-color: var(--card-bg);
width: 100%;
max-width: 420px; /* Mobile width */
height: 90vh; /* Tall mobile aspect ratio */
max-height: 850px;
border-radius: 30px;
box-shadow: 0 25px 50px rgba(0,0,0,0.25);
overflow: hidden;
position: relative;
display: flex;
flex-direction: column;
}

/* --- HEADER SECTION --- */
.app-header {
background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
padding: 20px;
display: flex;
justify-content: space-between; /* Spreads Logo and Timer */
align-items: center;
color: white;
flex-shrink: 0;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-left {
display: flex;
flex-direction: column;
}

.logo {
font-family: 'Montserrat', sans-serif;
font-size: 20px;
font-weight: 800;
letter-spacing: 1px;
margin: 0;
text-transform: uppercase;
text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tagline {
font-family: 'Montserrat', sans-serif;
font-size: 10px;
opacity: 0.9;
font-weight: 500;
}

/* --- TIMER --- */
.timer-badge {
background-color: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.4);
color: white;
padding: 8px 16px;
border-radius: 20px;
font-family: 'Montserrat', sans-serif;
font-weight: 700;
font-size: 14px;
display: flex; /* Visible by default, styled better */
align-items: center;
gap: 5px;
}

/* --- SCROLLABLE CONTENT AREA --- */
.app-content {
flex-grow: 1;
padding: 25px;
overflow-y: auto;
display: flex;
flex-direction: column;
/* Hide scrollbar */
scrollbar-width: none;
-ms-overflow-style: none;
}
.app-content::-webkit-scrollbar { display: none; }

/* --- WELCOME SCREEN --- */
.welcome-hero {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
.welcome-icon {
font-size: 70px;
margin-bottom: 20px;
background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

/* --- QUESTION CARD UI --- */
.progress-bar-container {
width: 100%;
background-color: #F0F0F0;
height: 8px;
border-radius: 4px;
margin-bottom: 30px;
}
.progress-bar-fill {
height: 100%;
background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
width: 0%;
border-radius: 4px;
transition: width 0.4s ease;
}

.category-tag {
display: inline-block;
background-color: #FFF0E6;
color: var(--gradient-start);
font-size: 12px;
font-weight: 800;
padding: 6px 12px;
border-radius: 20px;
text-transform: uppercase;
margin-bottom: 15px;
letter-spacing: 0.5px;
}

.question-text {
font-family: 'Montserrat', sans-serif;
font-size: 22px;
font-weight: 700;
line-height: 1.4;
color: var(--text-main);
margin-bottom: 30px;
}

/* --- ANSWER BUTTONS --- */
.options-list {
display: flex;
flex-direction: column;
gap: 15px;
}

.option-btn {
background-color: white;
border: 2px solid #F0F0F0;
padding: 18px 20px;
border-radius: 16px;
text-align: left;
font-size: 16px;
font-weight: 600;
color: var(--text-main);
cursor: pointer;
transition: all 0.2s;
position: relative;
display: flex;
align-items: center;
}

.option-btn:hover {
border-color: #FFD6C2;
background-color: #FFF9F5;
transform: translateY(-2px);
}

.option-btn input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}

/* State when selected */
.option-btn.selected {
border-color: var(--gradient-start);
background-color: #FFF0EB;
color: var(--gradient-start);
font-weight: 700;
box-shadow: 0 4px 10px rgba(255, 107, 74, 0.1);
}

/* --- MAIN ACTION BUTTON --- */
.primary-btn {
background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
color: white;
border: none;
width: 100%;
padding: 18px;
font-family: 'Montserrat', sans-serif;
font-size: 18px;
font-weight: 700;
border-radius: 50px; /* Pill shape */
cursor: pointer;
box-shadow: 0 8px 20px rgba(255, 107, 74, 0.3);
margin-top: auto;
transition: transform 0.2s;
}
.primary-btn:hover { transform: scale(1.02); }
.primary-btn:disabled {
background: #E0E0E0;
box-shadow: none;
cursor: not-allowed;
color: #AAA;
}

/* --- RESULTS SCREEN --- */
.results-hero {
text-align: center;
padding: 20px 0;
}
.trophy-icon {
font-size: 70px;
margin-bottom: 10px;
display: inline-block;
background: linear-gradient(135deg, #FFC565, #F39C12);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.result-card {
background-color: white;
border: 1px solid #F0F0F0;
border-radius: 16px;
padding: 18px;
margin-bottom: 15px;
box-shadow: 0 4px 10px rgba(0,0,0,0.03);
text-align: left;
}

.result-link {
display: inline-block;
margin-top: 10px;
color: var(--gradient-start);
font-weight: 800;
font-size: 13px;
text-decoration: none;
text-transform: uppercase;
}

/* Screens Logic */
.screen { display: none; height: 100%; flex-direction: column; }
.screen.active { display: flex; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
