/* --- 1. THEME & GLOBAL RESET --- */
:root {
    --gold: #c5a059;
    --bg-dark: #0a0a0a;
    --card-bg: #111111;
    --text-light: #e0e0e0;
    --danger: #ff4d4d;
    --success: #2ecc71;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevents scrolling during the interview */
}

/* --- 2. SCREEN MANAGEMENT (CRITICAL) --- */
.hidden {
    display: none !important;
}

.screen {
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 40px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 3. UI ELEMENTS & TYPOGRAPHY --- */
h1.glitch {
    font-size: 3.5rem;
    letter-spacing: 5px;
    color: var(--gold);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 10px rgba(197, 160, 89, 0.3);
}

h2 { margin-bottom: 20px; font-weight: 300; color: var(--gold); }

input[type="text"], select {
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    padding: 12px;
    margin: 10px;
    border-radius: 4px;
    width: 280px;
    outline: none;
    transition: border 0.3s;
}

input:focus, select:focus {
    border-color: var(--gold);
}

button {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 12px 24px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    margin: 10px;
}

button:hover {
    background: var(--gold);
    color: black;
}

/* --- 4. DIFFICULTY & SKILL BOXES --- */
.difficulty-box {
    margin: 20px 0;
    font-size: 0.9rem;
}

#career-suggestion-box {
    margin-top: 30px;
    padding: 20px;
    border: 1px dashed var(--gold);
    background: rgba(197, 160, 89, 0.05);
}

/* --- 5. INTERVIEW INTERFACE --- */
.interviewer-frame {
    margin-bottom: 20px;
}

#ceo-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    object-fit: cover;
    transition: all 0.4s ease;
}

/* Mood Glows */
#ceo-img[src="angry.png"] {
    border-color: var(--danger);
    box-shadow: 0 0 25px rgba(255, 77, 77, 0.4);
}

#ceo-img[src="happy.png"] {
    border-color: var(--success);
    box-shadow: 0 0 25px rgba(46, 204, 113, 0.4);
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    background: #222;
    font-size: 0.75rem;
    margin-top: 10px;
    border-radius: 20px;
    color: var(--gold);
    letter-spacing: 1px;
}

/* --- 6. TIMER & TRANSCRIPT --- */
#timer-container {
    width: 300px;
    height: 8px;
    background: #222;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
}

#timer-bar {
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: width 1s linear; /* Crucial for smooth countdown */
}

.transcript-box {
    background: var(--card-bg);
    border-left: 3px solid var(--gold);
    padding: 20px;
    margin: 20px auto;
    width: 85%;
    min-height: 60px;
    color: #888;
    font-style: italic;
    font-size: 0.95rem;
}

/* --- 7. FINAL RESULTS PAGE --- */
.feedback-box {
    background: var(--card-bg);
    padding: 25px;
    margin: 20px auto;
    border: 1px solid #222;
    text-align: left;
    max-width: 500px;
    border-radius: 8px;
}

.feedback-box p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

#final-score h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}