/* ==========================================================================
   Wim OS — applications
   Styles specific to the individual portfolio programs.
   ========================================================================== */

/* --- Shared bits -------------------------------------------------------- */

/* Inset picture frame used for the portrait and project screenshots. */
.picture-frame {
    padding: 3px;
    background: var(--win-face);
    border-top: 2px solid var(--win-shadow);
    border-left: 2px solid var(--win-shadow);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);
}

.picture-frame img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--win-dark-shadow);
    image-rendering: auto;
}

.prop-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 12px;
    margin: 0 0 10px;
    font-size: 12px;
}

.prop-list dt {
    font-weight: bold;
}

.prop-list dd {
    margin: 0;
}

.terminal-line {
    padding: 6px 8px;
    background: #000;
    color: #35d035;
    font-family: var(--font-mono);
    font-size: 12px;
    border-top: 2px solid var(--win-shadow);
    border-left: 2px solid var(--win-shadow);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);
}

.terminal-line .term-cursor {
    display: inline-block;
    width: 7px;
    height: 12px;
    background: #35d035;
    vertical-align: text-bottom;
    animation: blink 1s steps(1) infinite;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

/* --- Welcome ------------------------------------------------------------ */

.app-welcome {
    width: 100%;
}

.welcome-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 12px;
    background: linear-gradient(to right, var(--title-active-start), var(--title-active-end));
    color: #fff;
}

.welcome-banner .icon-glyph {
    width: 28px;
    height: 28px;
    flex: none;
}

.welcome-banner strong {
    display: block;
    font-size: 15px;
    letter-spacing: 1px;
}

.welcome-banner span {
    font-size: 11px;
    color: #d6e6ff;
}

.welcome-body {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.welcome-portrait {
    flex: none;
    width: 196px;
    margin: 0;
}

.welcome-portrait figcaption {
    margin-top: 6px;
    text-align: center;
    font-size: 11px;
    line-height: 1.35;
}

.welcome-portrait figcaption strong {
    display: block;
    font-size: 12px;
}

.welcome-portrait figcaption span {
    color: var(--text-disabled);
}

[data-theme="night"] .welcome-portrait figcaption span {
    color: #d4d4d4;
}

.welcome-main {
    flex: 1;
    min-width: 0;
}

.welcome-main h2 {
    font-size: 16px;
    margin-bottom: 2px;
}

.welcome-role {
    margin-bottom: 10px;
    color: var(--text);
}

/* --- About -------------------------------------------------------------- */

.about-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-portrait {
    flex: none;
    width: 116px;
}

.about-main {
    flex: 1;
    min-width: 0;
}

.hobby-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hobby-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 2px;
}

.hobby-list .icon-glyph {
    width: 20px;
    height: 20px;
    flex: none;
}

/* --- Skills ------------------------------------------------------------- */

.skill-row {
    margin-bottom: 12px;
}

.skill-row__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.skill-row__name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
}

.skill-row__name .icon-glyph {
    width: 16px;
    height: 16px;
}

.skill-row__value {
    font-variant-numeric: tabular-nums;
}

/* Classic segmented progress control: sunken well filled with blue blocks. */
.segmented-progress {
    display: flex;
    gap: 2px;
    height: 20px;
    padding: 2px;
    overflow: hidden;
    background: var(--field-bg);
    border-top: 2px solid var(--win-shadow);
    border-left: 2px solid var(--win-shadow);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);
}

.segmented-progress__segment {
    flex: 1 0 8px;
    background: transparent;
}

.segmented-progress__segment.is-filled {
    background: var(--title-active-start);
}

[data-theme="night"] .segmented-progress__segment.is-filled {
    background: #4f7fc0;
}

/* --- Explorer ----------------------------------------------------------- */

.explorer-address {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 3px 2px 5px;
    border-bottom: 1px solid var(--win-shadow);
    box-shadow: 0 1px 0 var(--win-light);
    margin-bottom: 3px;
    font-size: 11px;
}

.explorer-address__field {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    padding: 3px 6px;
    background: var(--field-bg);
    color: var(--field-text);
    border-top: 2px solid var(--win-shadow);
    border-left: 2px solid var(--win-shadow);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);
    font-family: var(--font-mono);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.explorer-address__field .icon-glyph {
    width: 16px;
    height: 16px;
    flex: none;
}

.explorer-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

/* The blue "Other Places" sidebar — the one deliberate XP nod. */
.explorer-sidebar {
    flex: none;
    width: 150px;
    padding: 10px 8px;
    overflow: auto;
    background: linear-gradient(to bottom, #7ba7dd, #6d9ada);
    color: #0b2f5e;
    font-size: 11px;
}

[data-theme="night"] .explorer-sidebar {
    background: linear-gradient(to bottom, #2a3a5c, #223050);
    color: #dbe6f7;
}

.explorer-sidebar h3 {
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
}

.explorer-sidebar section {
    margin-bottom: 14px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.55);
}

[data-theme="night"] .explorer-sidebar section {
    background: rgba(255, 255, 255, 0.08);
}

.explorer-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.explorer-sidebar li + li {
    margin-top: 4px;
}

.link-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 1px 2px;
    background: none;
    border: 0;
    color: inherit;
    font-size: inherit;
    text-align: left;
    cursor: pointer;
}

.link-button:hover {
    text-decoration: underline;
}

.link-button .icon-glyph {
    width: 16px;
    height: 16px;
    flex: none;
}

.explorer-files {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px;
    overflow: auto;
    background: var(--field-bg);
    border-top: 2px solid var(--win-shadow);
    border-left: 2px solid var(--win-shadow);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
    gap: 4px;
    align-content: start;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px;
    background: none;
    border: 1px dotted transparent;
    color: var(--field-text);
    font-size: 12px;
    text-align: left;
    cursor: default;
    width: 100%;
}

.file-item .icon-glyph {
    width: 32px;
    height: 32px;
    flex: none;
}

.file-item__name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.file-item__meta {
    display: block;
    color: var(--text-disabled);
    font-size: 11px;
}

.file-item.is-selected {
    border-color: var(--selection);
    background: color-mix(in srgb, var(--selection) 18%, transparent);
}

.file-item.is-selected .file-item__name {
    background: var(--selection);
    color: var(--selection-text);
}

.file-item.is-empty {
    cursor: default;
    opacity: 0.85;
}

.file-item:focus-visible {
    outline: 1px dotted var(--field-text);
    outline-offset: -2px;
}

/* --- Notepad (README) --------------------------------------------------- */

.notepad {
    height: 100%;
    padding: 6px 8px;
    overflow: auto;
    background: var(--field-bg);
    color: var(--field-text);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    border-top: 2px solid var(--win-shadow);
    border-left: 2px solid var(--win-shadow);
    border-right: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-light);
}

/* --- Certificates ------------------------------------------------------- */

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
    margin-bottom: 12px;
}

.info-block .icon-glyph {
    width: 32px;
    height: 32px;
    flex: none;
}

.cert-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cert-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--win-highlight);
    color: var(--text-disabled);
}

[data-theme="night"] .cert-list li {
    color: #cfcfcf;
}

.cert-list li:last-child {
    border-bottom: 0;
}

.cert-list .icon-glyph {
    width: 24px;
    height: 24px;
    flex: none;
    opacity: 0.55;
}

.cert-list .cert-name {
    flex: 1;
    font-family: var(--font-mono);
}

.cert-list .cert-state {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Contact ------------------------------------------------------------ */

.contact-card {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 10px 12px;
    margin-bottom: 4px;
}

.contact-card .contact-entry {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-card .icon-glyph {
    width: 24px;
    height: 24px;
    flex: none;
}

.contact-card .contact-label {
    display: block;
    font-size: 11px;
    color: var(--text-disabled);
}

[data-theme="night"] .contact-card .contact-label {
    color: #d0d0d0;
}

.form-row {
    display: grid;
    grid-template-columns: 116px 1fr;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 8px;
}

.form-row.is-stacked {
    grid-template-columns: 1fr;
    align-items: start;
}

.form-row label {
    font-size: 12px;
}

.form-status {
    min-height: 16px;
    margin-top: 8px;
    font-size: 11px;
}

/* Indeterminate-looking send progress, built from the same segment blocks. */
.send-progress {
    margin-top: 10px;
}

/* --- System properties -------------------------------------------------- */

.sysinfo-layout {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.sysinfo-visual {
    flex: none;
    width: 120px;
    text-align: center;
}

.sysinfo-visual .icon-glyph {
    width: 84px;
    height: 84px;
    margin: 0 auto 6px;
}

.sysinfo-main {
    flex: 1;
    min-width: 0;
}

.sysinfo-main dl {
    margin-bottom: 12px;
}

.component-list {
    columns: 2;
    column-gap: 18px;
    margin: 0;
    padding-left: 18px;
    font-family: var(--font-mono);
    font-size: 12px;
}

/* --- Display properties ------------------------------------------------- */

.wallpaper-preview {
    width: 100%;
    height: 96px;
    margin-bottom: 10px;
    border: 1px solid var(--win-dark-shadow);
}

.monitor-frame {
    max-width: 210px;
    margin: 0 auto 12px;
    padding: 10px 10px 16px;
    border-radius: 6px 6px 2px 2px;
}
