/*
 * Stylesheet for YouGov Shadow Cabinet game.
 *
 * The layout uses flexible containers to adapt to various screen sizes. Cards and metrics
 * are designed with a clean appearance to encourage engagement without overwhelming the
 * reader. Where possible, we avoid clashing with the host theme by scoping styles
 * inside the main game container.
 */

.yougov-shadow-game {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fc;
    border: 1px solid #e0e6ef;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.yougov-shadow-game h2 {
    margin-top: 0;
    font-size: 24px;
    color: #2b3f5c;
}

.country-select {
    margin-bottom: 20px;
}

.country-select label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.country-select select {
    width: 100%;
    padding: 8px;
    border: 1px solid #c0c6d6;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.roles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.role-card {
    flex: 1 1 calc(50% - 10px);
    background: #ffffff;
    border: 1px solid #d9dfe8;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    min-width: 200px;
}

.role-card h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #334e68;
}

.current-minister {
    font-size: 14px;
    margin-bottom: 4px;
}

.candidate-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.candidate-card {
    flex: 1 1 calc(33.333% - 6px);
    background: #eef4ff;
    border: 1px solid #c3d2f0;
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    position: relative;
    font-size: 12px;
}

.candidate-card:hover {
    background: #dde6ff;
}

.candidate-card.selected {
    border-color: #2b7cff;
    background: #d8e5ff;
}

.candidate-card h5 {
    margin: 0;
    font-size: 14px;
    color: #1d3557;
}

.attribute-bars {
    margin-top: 4px;
}

.attribute-row {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.attribute-row span {
    font-size: 10px;
    width: 60px;
    color: #42516b;
}

.attribute-bar {
    flex: 1;
    height: 6px;
    background: #e5e9f2;
    border-radius: 3px;
    margin-left: 4px;
    position: relative;
    overflow: hidden;
}

.attribute-bar-inner {
    height: 6px;
    background: #6fa8dc;
    border-radius: 3px;
    position: absolute;
    left: 0;
    top: 0;
}

.controls {
    margin-top: 20px;
    text-align: right;
}

.controls button {
    padding: 8px 16px;
    margin-left: 8px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    color: #ffffff;
}

.btn-confirm {
    background: #2b7cff;
}

.btn-next-year {
    background: #2b7cff;
}

.btn-restart {
    background: #e74c3c;
}

.btn-disabled {
    background: #9babc7 !important;
    cursor: default;
}

.metrics-board {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.metric-card {
    flex: 1 1 calc(33.333% - 10px);
    background: #ffffff;
    border: 1px solid #d9dfe8;
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    min-width: 100px;
}

.metric-card h3 {
    margin: 0;
    font-size: 14px;
    color: #334e68;
}

.metric-value {
    font-size: 24px;
    font-weight: bold;
    color: #2b7cff;
    margin-top: 4px;
}

.event-log {
    margin-top: 20px;
    background: #ffffff;
    border: 1px solid #d9dfe8;
    border-radius: 4px;
    max-height: 220px;
    overflow-y: auto;
    padding: 8px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.event-log p {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: #2b3f5c;
}