/* style.css */

:root {
    --bg-color: #1a253a; /* Dark background from mockup */
    --panel-bg: #2c3e50; /* Slightly lighter panels */
    --accent-blue: #3498db;
    --text-color: #ecf0f1;
    --health-color: #2ecc71; /* Green */
    --happiness-color: #3498db; /* Blue */
    --smartness-color: #f1c40f; /* Yellow */
    --age-btn-color: #27ae60; /* Age button green */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#game-container {
    width: 100%;
    max-width: 400px; /* Mimics a phone screen width */
    height: 90vh;
    background-color: var(--panel-bg);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 4px solid #34495e; /* Subtle "phone" frame */
}

/* Header */
header {
    background-color: rgba(0,0,0,0.2);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    margin: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

#year-display {
    font-weight: bold;
}

/* Profile */
#profile {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #3e5871;
}

.avatar {
    font-size: 3rem;
    background: #3e5871;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-details h2 { margin: 0; font-size: 1.2rem; }
.profile-details h3 { margin: 5px 0; font-size: 1rem; color: #bdc3c7; font-weight: normal; }
.salary { color: var(--health-color); font-weight: bold; font-size: 0.9rem; }

/* Stats */
#stats {
    padding: 15px;
}

.stat-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.stat-row label { width: 80px; }

.bar-container {
    flex-grow: 1;
    height: 10px;
    background-color: #3e5871;
    border-radius: 5px;
    margin: 0 10px;
    overflow: hidden;
}

.bar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.bar.health { background-color: var(--health-color); }
.bar.happiness { background-color: var(--happiness-color); }
.bar.smartness { background-color: var(--smartness-color); }

#stats span { width: 35px; text-align: right; }

/* Actions */
#actions {
    padding: 10px 15px;
    display: flex;
    justify-content: center;
}

.age-button {
    background-color: var(--age-btn-color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.age-button:hover {
    background-color: #219150;
}

#sub-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 15px;
}

.sub-btn {
    background-color: #3e5871;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Event Log */
#event-log {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: rgba(0,0,0,0.1);
}

#event-log h3 { margin-top: 0; font-size: 1rem; border-bottom: 2px solid #3e5871; padding-bottom: 5px;}

.event-item {
    background-color: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: start;
    gap: 10px;
}

.event-icon { font-size: 1.2rem; }
.performance-gain { color: var(--health-color); font-weight: bold; }
}