/* ==================================================
   UMIBE STATION — Coastal Japan Theme
   Palette pulled from coastal JR line photography:
   deep dusk sea · train teal · aged cream · sunset amber
   ================================================== */

:root {
    /* Sea / Night */
    --bg:           #16222a;   /* deep night sea */
    --panel:        #1e2e38;   /* wet concrete platform */
    --panel-dark:   #111c23;   /* shadow / underpass */
    --panel-mid:    #243340;   /* slightly lighter concrete */

    /* Text — pulled from aged train cream */
    --text-main:    #e4d4b0;   /* warm cream */
    --text-muted:   #a89870;   /* aged parchment */
    --text-dim:     #567080;   /* faded teal-grey */

    /* Train Teal — Enoden / JR coastal colour */
    --teal:         #4a9fa8;
    --teal-dark:    #2d6a72;
    --teal-bright:  #7ac5cc;   /* morning sky on water */

    /* Sunset — warm amber from image 2 */
    --amber:        #c8834a;
    --amber-soft:   #d4a060;

    /* Borders */
    --border:       rgba(228, 212, 176, 0.14);
    --border-strong: rgba(228, 212, 176, 0.28);
    --border-teal:  rgba(74, 159, 168, 0.45);

    /* Type */
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;

    --grid-gap: 20px;
}


/* ==================================================
   GLOBAL
   ================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); }

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}


/* ==================================================
   SCROLLBAR — teal rail
   ================================================== */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--panel-dark); }
::-webkit-scrollbar-thumb { background: var(--teal-dark); }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }


/* ==================================================
   BACKGROUND — dusk sea with subtle horizontal lines
   (power lines / sea horizon feel)
   ================================================== */

.background-container {
    position: fixed;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            rgba(14, 24, 32, 0.78),
            rgba(14, 24, 32, 0.85)
        ),
        url("train.jpeg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* ==================================================
   TOP BAR — station information board
   ================================================== */

.top-bar {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: var(--panel-dark);
    border-bottom: 1px solid var(--border-strong);
    font-family: var(--font-mono);
    font-size: 11px;
    position: sticky;
    top: 0;
    z-index: 100;
    letter-spacing: 0.5px;
}

.top-bar-left,
.top-bar-right,
.top-bar-center {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Kanji station name */
.station-kanji {
    color: var(--teal-bright);
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 600;
}

.station-name {
    color: var(--text-main);
    letter-spacing: 2px;
    font-weight: 500;
}

.top-divider { color: var(--text-dim); }

.station-status {
    color: var(--teal);
    letter-spacing: 1px;
    font-size: 10px;
}

.clock {
    color: var(--text-main);
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 500;
}

.sys-info {
    color: var(--text-dim);
    padding-left: 10px;
    border-left: 1px solid var(--border);
    font-size: 10px;
    letter-spacing: 1px;
}


/* ==================================================
   MAIN LAYOUT
   ================================================== */

.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, minmax(0, 1fr));
    gap: var(--grid-gap);
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    height: calc(100vh - 38px);
}

.item-1 { grid-column: 1 / 4;  grid-row: 1 / 7; }
.item-2 { grid-column: 1 / 4;  grid-row: 7 / 13; }
.item-3 { grid-column: 4 / 6;  grid-row: 2 / 12; }
.item-4 { grid-column: 6 / 10; grid-row: 1 / 4; }
.item-5 { grid-column: 6 / 8;  grid-row: 8 / 13; }
.item-6 { grid-column: 8 / 10; grid-row: 5 / 10; }
.item-7 { grid-column: 10 / 13; grid-row: 1 / 6; }
.item-8 { grid-column: 10 / 13; grid-row: 7 / 12; }


/* ==================================================
   CARDS — concrete platform panel aesthetic
   ================================================== */

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 0;
    /* Hard drop shadow — mimics the flat concrete shadow in the station photos */
    box-shadow:
        4px 4px 0 rgba(10, 18, 24, 0.7),
        0 0 0 0 transparent;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition:
        transform 0.12s ease,
        border-color 0.15s ease,
        background 0.12s ease,
        box-shadow 0.12s ease;
}

.card:hover {
    background: var(--panel-mid);
    border-color: var(--teal);
    transform: translate(-2px, -2px);
    box-shadow:
        6px 6px 0 rgba(10, 18, 24, 0.7),
        0 0 12px rgba(74, 159, 168, 0.08);
}

.card h3 {
    margin-bottom: 16px;
    color: var(--teal-bright);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-teal);
    flex-shrink: 0;
}


/* ==================================================
   PROFILE
   ================================================== */

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

/* Kanji mark in place of avatar — station waymark */
.profile-mark {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border: 1px solid var(--border-strong);
    border-top: 2px solid var(--teal);
    color: var(--teal);
    font-family: serif;
    font-size: 28px;
    background: var(--panel-dark);
    letter-spacing: 0;
}

.profile-header h2 {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    letter-spacing: 5px;
    color: var(--text-main);
}

.subtitle {
    margin-top: 6px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.profile-body {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.75;
}

.profile-body p + p { margin-top: 12px; }

.profile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-dim);
}

.status-value {
    color: var(--teal);
    font-weight: 600;
}


/* ==================================================
   TERMINAL — dark hold / train interior
   ================================================== */

.terminal {
    background: var(--panel-dark);
    color: var(--text-main);
    border: 1px solid var(--border-strong);
    border-top: 2px solid var(--teal);
    border-radius: 0;
    box-shadow: 4px 4px 0 rgba(10, 18, 24, 0.7);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background: #1a2830;
    border-bottom: 1px solid var(--border-teal);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.terminal-header span:last-child { color: var(--teal); }

.terminal-content {
    padding: 16px 18px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    overflow-y: auto;
    flex-grow: 1;
}

.prompt { color: var(--teal); font-weight: 600; }
.terminal-content strong { color: var(--amber-soft); }
.neofetch-ascii { color: var(--teal-dark); line-height: 1.1; }


/* ==================================================
   PROJECTS
   ================================================== */

.project-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.project-list li {
    background: var(--panel-dark);
    border: 1px solid var(--border);
    border-left: 2px solid var(--teal-dark);
    padding: 11px 12px;
    transition: background 0.12s, border-color 0.12s, border-left-color 0.12s;
}

.project-list li:hover {
    background: #18272f;
    border-color: var(--border-teal);
    border-left-color: var(--teal);
}

.project-list h4 {
    margin-bottom: 5px;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.project-list p {
    color: var(--text-dim);
    font-size: 0.7rem;
    line-height: 1.5;
}


/* ==================================================
   LOGS — departure board style
   ================================================== */

.log-entries {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
}

.log-entry {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 0;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    line-height: 1.5;
    border-bottom: 1px solid var(--border);
}

.log-entry:last-child { border-bottom: none; }

.log-date {
    color: var(--teal-bright);
    white-space: nowrap;
    padding: 9px 10px;
    background: var(--panel-dark);
    border-right: 1px solid var(--border);
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.log-msg {
    color: var(--text-muted);
    padding: 9px 12px;
    display: flex;
    align-items: center;
}


/* ==================================================
   INTERESTS
   ================================================== */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: var(--panel-dark);
    color: var(--text-muted);
    padding: 5px 9px;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    transition: border-color 0.12s, color 0.12s, background 0.12s;
    cursor: default;
}

.tag:hover {
    border-color: var(--teal);
    color: var(--teal-bright);
    background: rgba(74, 159, 168, 0.06);
}


/* ==================================================
   SKILLS — readout bars
   ================================================== */

.skill-bars { display: flex; flex-direction: column; gap: 13px; }
.skill { display: flex; flex-direction: column; gap: 5px; }

.skill-name {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.5px;
}

.bar-bg {
    width: 100%;
    height: 4px;
    background: var(--panel-dark);
    border: 1px solid var(--border);
}

.bar-fill {
    height: 100%;
    /* Gradient from teal to slightly brighter — like the stripe on the train */
    background: linear-gradient(90deg, var(--teal-dark), var(--teal));
}


/* ==================================================
   READING
   ================================================== */

.book-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.book-list li {
    padding-left: 16px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.book-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-family: var(--font-mono);
    font-size: 1rem;
    line-height: 1.2;
}

.reading-note {
    margin-top: auto;
    padding-top: 14px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    line-height: 1.6;
    border-top: 1px solid var(--border);
    font-style: italic;
}

.reading-note .prompt { margin-right: 4px; font-style: normal; }


/* ==================================================
   CONTACTS — station destination board
   ================================================== */

.contact-links { display: flex; flex-direction: column; gap: 6px; }

.contact-link {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 11px 12px;
    background: var(--panel-dark);
    border: 1px solid var(--border);
    border-left: 2px solid var(--teal-dark);
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 1px;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.contact-link::before {
    content: "→";
    margin-right: 10px;
    color: var(--teal);
    font-size: 0.85rem;
}

.contact-link:hover {
    background: #182830;
    border-color: var(--teal);
    border-left-color: var(--teal);
    color: var(--text-main);
}


/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 1100px) {
    .grid-container {
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 20px;
    }
    .card, .terminal { min-height: 250px; }
}

@media (max-width: 600px) {
    .top-bar { padding: 0 10px; }
    .sys-info { display: none; }
    .station-kanji { display: none; }
    .grid-container { padding: 10px; gap: 10px; }
}
