/* =========================================================
   POLICE WORLD RPG NL
   COMPLETE MAIN STYLESHEET
========================================================= */


/* =========================================================
   BASIS
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: #101820;
    color: white;
    font-family: Arial, sans-serif;
}


/* =========================================================
   HEADER
========================================================= */

header {
    background: #172633;
    padding: 18px 22px 20px;
    border-bottom: 3px solid #3c8dbc;
}


/* =========================================================
   HEADER TITELBALK
========================================================= */

.header-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}


/* =========================================================
   HEADER BRAND
========================================================= */

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.header-brand h1 {
    margin: 0;
    padding: 0;
    font-size: 30px;
    line-height: 1;
    color: white;
    font-weight: 700;
}

.logo {
    height: 58px;
    width: auto;
    background: white;
    padding: 6px;
    border-radius: 10px;
    flex-shrink: 0;
}


/* =========================================================
   NIEUW SPEL KNOP
========================================================= */

.new-game-button {
    background: #218c4a;
    color: white;
    border: 1px solid #35a961;
    border-radius: 7px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.new-game-button:hover {
    background: #29a858;
    border-color: #45c475;
    transform: translateY(-1px);
}

.new-game-button:active {
    background: #19763d;
    transform: translateY(0);
}


/* =========================================================
   PLAYER HUD
========================================================= */

.player-hud {
    display: grid;
    grid-template-columns: 1fr 1.35fr 1.2fr;
    gap: 16px;
    align-items: stretch;
}


/* =========================================================
   ALGEMENE HUD SECTIE
========================================================= */

.hud-section {
    background: #13212c;
    border: 1px solid #344b5d;
    border-radius: 10px;
    padding: 16px 18px;
    min-width: 0;
}

.hud-section-title {
    color: #8fc8e8;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.7px;
    margin-bottom: 13px;
}


/* =========================================================
   SPELER BLOK
========================================================= */

.hud-player {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hud-player-name {
    font-size: 25px;
    font-weight: bold;
    color: white;
    margin-bottom: 6px;
}

.hud-player-appearance {
    color: #aebdca;
    font-size: 15px;
}


/* =========================================================
   DIENST & PROGRESSIE
========================================================= */

.duty-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 18px;
}

.hud-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hud-label {
    color: #7f93a1;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.hud-info strong {
    color: white;
    font-size: 15px;
}

.hud-money {
    color: #72d572 !important;
    font-size: 18px !important;
}


/* =========================================================
   SPELERSTATS
========================================================= */

.hud-stats {
    display: flex;
    flex-direction: column;
}

.stat-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    flex: 1;
}

.stat-tile {
    background: #182b38;
    border: 1px solid #3e5a6d;
    border-radius: 9px;
    min-height: 72px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 10px;
}

.stat-value {
    font-size: 22px;
    font-weight: bold;
    color: white;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 11px;
    font-weight: bold;
    color: #8fa5b3;
    letter-spacing: 0.8px;
}


/* =========================================================
   HOOFDLAYOUT
========================================================= */

.layout {
    display: flex;
    min-height: calc(100vh - 225px);
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    width: 220px;
    flex-shrink: 0;

    background: #131f2a;
    border-right: 1px solid #2f4353;

    padding: 20px;
}

.sidebar button {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;

    background: #1f3444;
    color: white;

    border: 1px solid #3f5a6d;
    border-radius: 6px;

    font-size: 16px;
    text-align: left;

    cursor: pointer;
}

.sidebar button:hover {
    background: #2878a5;
}

.sidebar .game-button {
    background: #2878a5;
    border-color: #3c8dbc;
    font-weight: bold;
    margin-bottom: 25px;
}


/* =========================================================
   CONTENT
========================================================= */

.content {
    flex: 1;
    max-width: 1180px;
    margin: 30px auto;
    padding: 20px;
    min-width: 0;
}


/* =========================================================
   SCHERMZICHTBAARHEID
========================================================= */

#gameScreen,
#newGameScreen,
#missionsScreen,
#shopScreen,
#relationsScreen,
#relationProfileScreen,
#inventoryScreen {
    display: none;
}


/* STANDAARD ALLEEN SPEL TONEN */

#gameScreen {
    display: block;
}


/* =========================================================
   ALGEMENE PANELEN
========================================================= */

.panel,
#gameWindow {
    background: #17212b;
    border: 1px solid #34495e;
    border-radius: 8px;
    padding: 25px;
    min-height: 350px;
}

.panel h2 {
    margin-top: 0;
    border-bottom: 1px solid #34495e;
    padding-bottom: 15px;
    color: white;
}


/* =========================================================
   GAME
========================================================= */

.inputBar {
    display: flex;
    margin-top: 10px;
    gap: 10px;
}

#playerInput {
    flex: 1;

    padding: 14px;

    background: #1f2d3a;
    color: white;

    border: 1px solid #4a6578;
    border-radius: 5px;

    font-size: 16px;
}

#playerInput::placeholder {
    color: #8699a6;
}

#sendButton {
    padding: 14px 25px;

    background: #2878a5;
    color: white;

    border: none;
    border-radius: 5px;

    cursor: pointer;
}

#sendButton:hover {
    background: #3498db;
}


/* =========================================================
   NEW GAME
========================================================= */

.new-game-panel {
    max-width: 900px;
    margin: 0 auto;
}

.new-game-heading {
    margin-bottom: 28px;
}

.new-game-heading h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: white;
}

.new-game-heading p {
    margin: 0;
    color: #aebdca;
    line-height: 1.6;
}


/* =========================================================
   NEW GAME FORMULIER
========================================================= */

.new-game-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #8fc8e8;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.4px;
}

.form-group input,
.form-group select {
    width: 100%;

    padding: 13px 14px;

    background: #13212c;
    color: white;

    border: 1px solid #405a6c;
    border-radius: 6px;

    font-size: 15px;

    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #3c8dbc;
}

.form-group select option {
    background: #17212b;
    color: white;
}


/* =========================================================
   NEW GAME STARTWAARDEN
========================================================= */

.new-game-start-info {
    margin-top: 30px;

    background: #131f2a;
    border: 1px solid #34495e;
    border-radius: 8px;

    padding: 20px;
}

.new-game-start-info h3 {
    margin-top: 0;
    margin-bottom: 18px;

    color: #8fc8e8;
    font-size: 17px;
}

.start-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.start-info-grid > div {
    background: #182b38;
    border: 1px solid #34495e;
    border-radius: 6px;

    padding: 12px;

    display: flex;
    flex-direction: column;

    gap: 5px;
}

.start-info-grid span {
    color: #8498a6;
    font-size: 11px;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.start-info-grid strong {
    color: white;
    font-size: 14px;
}


/* =========================================================
   NEW GAME ERROR
========================================================= */

.new-game-error {
    min-height: 22px;

    margin-top: 18px;

    color: #ff8d8d;
    font-weight: bold;
    font-size: 14px;
}


/* =========================================================
   NEW GAME ACTIES
========================================================= */

.new-game-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 12px;

    margin-top: 10px;
}

.new-game-cancel-button,
.new-game-start-button {
    padding: 12px 20px;

    border-radius: 6px;

    font-size: 15px;
    font-weight: bold;

    cursor: pointer;
}

.new-game-cancel-button {
    background: #263845;
    color: #d2dde4;

    border: 1px solid #405a6c;
}

.new-game-cancel-button:hover {
    background: #344b5d;
}

.new-game-start-button {
    background: #218c4a;
    color: white;

    border: 1px solid #35a961;
}

.new-game-start-button:hover {
    background: #29a858;
    border-color: #45c475;
}


/* =========================================================
   MELDINGEN
========================================================= */

.mission-section {
    margin-top: 25px;
}

.mission-section h3 {
    color: #8fc8e8;
}

.mission-empty {
    background: #131f2a;
    border: 1px solid #2f4353;
    border-radius: 6px;

    padding: 18px;

    color: #9fb0bc;
}


/* =========================================================
   DYNAMISCHE MELDING CARDS
========================================================= */

.mission-card {
    background: #131f2a;
    border: 1px solid #34495e;
    border-radius: 8px;

    padding: 18px;
    margin-bottom: 14px;
}

.active-mission {
    border-left: 4px solid #3c8dbc;
}

.mission-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;
}

.mission-code {
    color: #8fc8e8;

    font-size: 12px;
    font-weight: bold;

    margin-bottom: 5px;
}

.mission-title {
    color: white;

    font-size: 19px;
    font-weight: bold;
}

.mission-status {
    padding: 5px 9px;

    border-radius: 5px;

    font-size: 11px;
    font-weight: bold;
}

.mission-status.active {
    background: #244e67;
    color: #9ddcff;
}

.mission-status.open {
    background: #4b3e20;
    color: #f0d67c;
}

.mission-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 15px;

    margin-top: 14px;

    color: #9fb0bc;
    font-size: 13px;
}

.mission-description {
    margin-top: 14px;

    color: #c2ced6;
    line-height: 1.6;
}

.mission-select-button {
    margin-top: 16px;

    padding: 10px 14px;

    background: #2878a5;
    color: white;

    border: none;
    border-radius: 5px;

    cursor: pointer;
}

.mission-select-button:hover {
    background: #3498db;
}


/* =========================================================
   SHOP
========================================================= */

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
}

.shop-header h2 {
    margin-bottom: 0;
}

.shop-money {
    font-size: 20px;
    font-weight: bold;
    color: #72d572;
}

.shop-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;

    margin: 20px 0;
}

.shop-tabs button,
.back-button {
    padding: 10px 14px;

    background: #1f3444;
    border: 1px solid #3f5a6d;

    color: white;

    border-radius: 5px;

    cursor: pointer;
}

.shop-tabs button:hover,
.back-button:hover {
    background: #2878a5;
}

.shop-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(280px, 1fr));

    gap: 15px;
}

.shop-item {
    background: #131f2a;

    border: 1px solid #34495e;
    border-radius: 7px;

    padding: 16px;
}

.shop-item h3 {
    margin-top: 0;
    color: white;
}

.item-info {
    color: #aabac5;

    font-size: 14px;
    margin-bottom: 12px;

    line-height: 1.5;
}

.price {
    color: #72d572;

    font-weight: bold;
    font-size: 18px;
}

.locked {
    color: #e69a67;

    font-weight: bold;

    margin-top: 8px;
}

.buy-button {
    width: 100%;

    margin-top: 12px;
    padding: 10px;

    background: #2878a5;
    color: white;

    border: none;
    border-radius: 5px;

    cursor: pointer;
}

.buy-button:hover:not(:disabled) {
    background: #3498db;
}

.buy-button:disabled {
    background: #3c4650;
    color: #888;

    cursor: not-allowed;
}


/* =========================================================
   RELATIES OVERZICHT
========================================================= */

.relation-intro {
    color: #aebdca;

    margin-bottom: 25px;

    line-height: 1.5;
}

.relation-list {
    display: grid;
    gap: 14px;
}

.relation-card {
    background: #131f2a;

    border: 1px solid #34495e;
    border-radius: 9px;

    padding: 14px 18px;

    cursor: pointer;

    transition: 0.15s;
}

.relation-card:hover {
    background: #1b3040;

    border-color: #4f91b8;

    transform: translateY(-1px);
}

.relation-card-top {
    display: flex;

    justify-content: space-between;
    align-items: center;
}

.relation-main {
    display: flex;
    align-items: center;

    min-width: 0;
}

.relation-avatar {
    width: 72px;
    height: 72px;

    object-fit: cover;
    object-position: center;

    border-radius: 10px;

    margin-right: 16px;

    flex-shrink: 0;

    border: 1px solid #405a6c;
}

.relation-name {
    font-size: 20px;
    font-weight: bold;

    color: white;
}

.relation-role {
    color: #9eb0bd;

    margin-top: 4px;
}

.relation-short-status {
    color: #f1a9c5;

    font-weight: bold;

    margin-top: 9px;
}

.profile-arrow {
    color: #79bde5;

    font-size: 28px;
}


/* =========================================================
   RELATIE PROFIEL
========================================================= */

.profile-topbar {
    margin-bottom: 20px;
}

.profile-layout {
    display: grid;

    grid-template-columns: 360px 1fr;

    gap: 24px;

    align-items: start;
}


/* =========================================================
   PROFIEL LINKERKOLOM
========================================================= */

.profile-left {
    background: #131f2a;

    border: 1px solid #34495e;
    border-radius: 12px;

    padding: 20px;
}

.profile-avatar-large {
    width: 100%;
    max-height: 470px;

    object-fit: contain;
    object-position: center;

    border-radius: 10px;

    background: #0f1820;

    border: 1px solid #45667b;
}

.profile-identity {
    margin-top: 18px;
}

.profile-name {
    font-size: 29px;
    font-weight: bold;

    color: white;

    margin-bottom: 8px;
}

.profile-left-detail {
    color: #c5d2da;

    margin-bottom: 7px;

    font-size: 16px;
}

.profile-left-detail strong {
    color: white;
}

.profile-relation-type {
    margin-top: 14px;

    color: #f1a9c5;

    font-weight: bold;
    font-size: 18px;
}

.profile-scores-title {
    margin-top: 26px;
    margin-bottom: 16px;

    color: #8fc8e8;

    border-top: 1px solid #34495e;

    padding-top: 18px;

    font-size: 18px;
    font-weight: bold;
}


/* =========================================================
   PROFIEL RECHTERKOLOM
========================================================= */

.profile-right {
    display: grid;
    gap: 18px;
}

.profile-box {
    background: #131f2a;

    border: 1px solid #34495e;
    border-radius: 10px;

    padding: 22px;
}

.profile-box h3 {
    margin-top: 0;
    margin-bottom: 15px;

    color: #8fc8e8;
}


/* =========================================================
   PROFIEL STATUS
========================================================= */

.profile-status-box {
    background: #251d27;

    border: 1px solid #513247;
    border-left: 4px solid #c75f8e;
}

.profile-status-text {
    color: #f2bdd4;

    font-weight: bold;
    font-size: 17px;

    line-height: 1.5;
}


/* =========================================================
   UITERLIJK
========================================================= */

.appearance {
    line-height: 1.7;
    color: #c2ced6;
}


/* =========================================================
   RELATIESCORES
========================================================= */

.relation-score {
    margin-bottom: 18px;
}

.score-header {
    display: flex;

    justify-content: space-between;

    margin-bottom: 7px;

    color: #d5dfe5;
}

.score-bar {
    height: 11px;

    background: #263845;

    border-radius: 10px;

    overflow: hidden;
}

.score-fill {
    height: 100%;

    background: #4d9ac5;

    border-radius: 10px;
}

.score-fill.friend {
    background: #65a982;
}

.score-fill.romantic {
    background: #c75f8e;
}


/* =========================================================
   RECENTE ONTWIKKELINGEN
========================================================= */

.development {
    background: #192733;

    border-left: 3px solid #567f99;

    padding: 12px 14px;
    margin-bottom: 9px;

    border-radius: 4px;

    color: #c5d1d9;

    line-height: 1.5;
}

.no-developments {
    color: #8495a0;
}


/* =========================================================
   INVENTARIS
========================================================= */

.inventory-category {
    margin-bottom: 30px;
}

.inventory-category h3 {
    color: #8fc8e8;

    border-bottom: 1px solid #34495e;

    padding-bottom: 8px;
}

.inventory-item {
    background: #131f2a;

    border: 1px solid #34495e;

    padding: 12px;

    border-radius: 5px;

    margin-bottom: 8px;

    color: white;
}

.empty-inventory {
    color: #8495a0;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media(max-width: 1050px) {

    .player-hud {
        grid-template-columns: 1fr 1fr;
    }

    .hud-stats {
        grid-column: 1 / -1;
    }

    .profile-layout {
        grid-template-columns: 300px 1fr;
    }

    .start-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   RESPONSIVE — SMALLER SCREEN
========================================================= */

@media(max-width: 800px) {

    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: auto;

        border-right: none;
        border-bottom: 1px solid #2f4353;
    }

    .content {
        width: 100%;

        margin: 0;

        padding: 16px;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-left {
        max-width: 480px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media(max-width: 760px) {

    .player-hud {
        grid-template-columns: 1fr;
    }

    .hud-stats {
        grid-column: auto;
    }

    .duty-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-tiles {
        grid-template-columns: repeat(3, 1fr);
    }

    .new-game-form {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   RESPONSIVE — HEADER MOBILE
========================================================= */

@media(max-width: 600px) {

    .header-title {
        align-items: center;
    }

    .header-brand h1 {
        font-size: 21px;
    }

    .new-game-button {
        padding: 10px 13px;
        font-size: 13px;
    }

}


/* =========================================================
   RESPONSIVE — VERY SMALL
========================================================= */

@media(max-width: 480px) {

    header {
        padding: 14px;
    }

    .duty-grid {
        grid-template-columns: 1fr;
    }

    .stat-tiles {
        grid-template-columns: 1fr;
    }

    .header-title {
        align-items: flex-start;
    }

    .logo {
        height: 50px;
    }

    .header-brand h1 {
        font-size: 19px;
        line-height: 1.2;
    }

    .inputBar {
        flex-direction: column;
    }

    #sendButton {
        width: 100%;
    }

    .start-info-grid {
        grid-template-columns: 1fr;
    }

    .new-game-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .new-game-cancel-button,
    .new-game-start-button {
        width: 100%;
    }

}
