/* NOTE: Global html/body/a/button rules removed — homescreen is now inlined
   directly into index.html and inherits the site's global styles. */

/*******************/
/* Tabs Window CSS */
/*******************/

/* Drag cursor on homescreen title-bars only */
.content .title-bar {
    cursor: url("../assets/win98/cursors/drag.cur"), move;
}

.about-content {
    display:flex;
    gap:12px;
    padding:8px;
    box-sizing:border-box;
}










/* Windows 98 Desktop Environment */
.content {
    background-color: teal;
    position: relative;
    height: 600px;          /* fixed height matching the old embed-container */
    width: 100% !important;
    min-height: 300px;
    padding-bottom: 0;      /* override styles.css .content { padding-bottom: 40px } */
    overflow: hidden;
    display: block;
    border: 2px solid #000;
    transform-origin: top left;
    z-index: 1;             /* creates stacking context so internal z-indexes
                               don't leak above the buddy (z-index: 100) */
}

/* Homescreen Icons (Grid Styling) */
.icons {
    width: 50px;
    height: 50px;
    /* background-color: lightblue; */
    /* border: 2px solid #3498db; */
    text-align: center;
    line-height: 15px;
    cursor: move;
    position: absolute;
}
.icon-name,
.icon-name:hover,
.icon-name:focus,
.icon-name:active,
.icon-name:visited {
    text-decoration: none;
    color: white;
    margin-top: -10px;
    user-select: none;
    text-align: center;
    outline: none;          /* removes focus ring on tab-focus */
}

/* Debugging Grid */
.grid-cell {
    position: absolute;
    border: 1px dashed #ccc;
    pointer-events: none;
}

/* Selected icon styling (single-click) */
.icons.selected {
    background: #000080; /* deep blue */
    color: white;
    border-color: #000; /* pressed look */
}

.icons.selected .icon-name {
    color: #fff;
    background: transparent;
}

.icons .icon-name img {
    display: block;
    margin: 4px auto 2px auto;
}

/* Selection box styles */
.selection-box {
    position: absolute;
    border: 1px dashed #99c1f1;
    background: rgba(153, 193, 241, 0.3);
    pointer-events: none;
    /* z-index: 1000; */
    z-index: 5;
}




/* -- Resume -- */
.resume {
    position: absolute;
    top: 25%;
    left: 10%;
    margin: auto;
    box-sizing: border-box;
    width: 40%;
}

.resume-content {
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.scaled-resume {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}


/* -- Update Log -- */
.update-log {
    overflow: visible;
    padding: 4px 6px;
    box-sizing: border-box;
}

.update-log-hint {
    font-size: 0.65rem;
    color: #808080;
    font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
    padding: 0 0 4px;
    border-bottom: 1px solid #c0c0c0;
    margin-bottom: 6px;
}

.update-section-label {
    font-size: 0.70rem;
    font-weight: bold;
    font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
    color: #000;
    padding: 2px 0;
    margin: 4px 0 6px;
    border-bottom: 1px solid #808080;
    box-shadow: 0 1px 0 #dfdfdf;
}

.update-entry {
    border: 1px solid;
    border-top-color: #dfdfdf;
    border-left-color: #dfdfdf;
    border-right-color: #808080;
    border-bottom-color: #808080;
    margin-bottom: 5px;
}

.update-entry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 6px;
    background: #000080;
    color: #ffffff;
    font-family: "Courier New", monospace;
    font-size: 0.67rem;
    letter-spacing: 0.02em;
}

.update-entry-version {
    font-size: 0.63rem;
    background: #d4d0c8;
    color: #000;
    padding: 0 4px 0 8px;   /* left room for optional color stripe */
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff,
                inset -2px -2px #808080, inset 2px 2px #dfdfdf;
    white-space: nowrap;
    position: relative;
}

.update-entry-version::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: transparent;
}

/* Semantic version colors — add class alongside update-entry-version */
.update-entry-version.ver-major::before { background: #cc2200; }  /* breaking change */
.update-entry-version.ver-minor::before { background: #0055cc; }  /* new feature */
.update-entry-version.ver-patch::before { background: #007722; }  /* bug fix / polish */
.update-entry-version.ver-alpha::before { background: #cc8800; }  /* pre-release */

.update-entry-body {
    padding: 4px 8px;
    background: #fffff4;
    font-size: 0.72rem;
    font-family: "Courier New", monospace;
    line-height: 1.45;
}

.update-entry-body ul {
    margin: 2px 0;
    padding-left: 16px;
}

.update-entry-body li {
    margin-bottom: 2px;
    font-size: 0.70rem;
}

/* ── Update entry: scaled headings ───────────────────────────── */
/* Use h3/h4/h5 or .update-h inside .update-entry-body          */
.update-entry-body h3,
.update-entry-body h4,
.update-entry-body h5,
.update-h {
    font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
    font-weight: bold;
    margin: 5px 0 2px;
    line-height: 1.3;
}

.update-entry-body h3 { font-size: 0.76rem; border-bottom: 1px dotted #808080; padding-bottom: 1px; }
.update-entry-body h4 { font-size: 0.72rem; }
.update-entry-body h5 { font-size: 0.69rem; color: #444; }
.update-h             { display: block; font-size: 0.74rem; border-bottom: 1px dotted #808080; padding-bottom: 1px; }

/* ── Inline code ─────────────────────────────────────────────── */
/* Usage: <code>filename.js</code>  or  <code>--flag</code>      */
.update-entry-body code {
    background: #ffffff;
    color: #000080;
    padding: 0 3px;
    font-family: "Courier New", monospace;
    font-size: 0.68rem;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #dfdfdf;
    border-bottom: 1px solid #dfdfdf;
    white-space: nowrap;
}

/* ── Keyboard shortcut ───────────────────────────────────────── */
/* Usage: <kbd>Ctrl+R</kbd>                                       */
.update-entry-body kbd {
    font-family: "Courier New", monospace;
    font-size: 0.68rem;
    background: #d4d0c8;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff,
                inset -2px -2px #808080, inset 2px 2px #dfdfdf;
    padding: 1px 4px;
    white-space: nowrap;
}

/* ── Highlighted text ────────────────────────────────────────── */
/* Usage: <mark>important text</mark>                             */
.update-entry-body mark {
    background: #ffff66;
    color: #000;
    padding: 0 2px;
}

/* ── Change-type inline tags ─────────────────────────────────── */
/* Usage: <span class="change-tag feat">feat</span> Description  */
.change-tag {
    display: inline-block;
    font-size: 0.60rem;
    font-weight: bold;
    font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
    padding: 0 3px;
    margin-right: 4px;
    border: 1px solid;
    vertical-align: middle;
    white-space: nowrap;
    letter-spacing: 0;
    user-select: none;
}

.change-tag.feat  { background: #d0e8ff; color: #003f8f; border-color: #0057cf; }  /* new feature */
.change-tag.fix   { background: #d0f0d0; color: #1a5c1a; border-color: #2e7d32; }  /* bug fix */
.change-tag.ui    { background: #fff8cc; color: #7a5f00; border-color: #c8a800; }  /* visual / style */
.change-tag.copy  { background: #f0d0f0; color: #5c005c; border-color: #9900aa; }  /* copy / data */
.change-tag.refac { background: #e8e8e8; color: #444444; border-color: #888888; }  /* refactor */
.change-tag.perf  { background: #d8f0e8; color: #005c3c; border-color: #00884d; }  /* performance */
.change-tag.break { background: #ffe0e0; color: #880000; border-color: #cc0000; }  /* breaking */

/* ── Note / callout block ────────────────────────────────────── */
/* Usage: <div class="update-note">message here</div>            */
.update-note {
    background: #fffacd;
    border: 1px solid #c8a800;
    border-left: 3px solid #c8a800;
    padding: 3px 8px;
    font-size: 0.69rem;
    font-family: "Courier New", monospace;
    margin: 4px 0;
    line-height: 1.4;
}


/* -- Contacts -- */
.contacts {
    position: absolute;
    top: 200px;
    width: 100%;
    max-width: 500px;
    margin: auto;
    box-sizing: border-box;
}
/* Contact Page Body */
.contacts-body {
    color: #333;
    /* font-family: 'Courier New', Courier, monospace; */
}

/* Flexbox container for picture and text */
.contacts-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contacts-content.status-bar-field {
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
}

/* Profile Picture */
.contact-pfp {
    width: 100px; 
    height: 100px;
    margin-right: 20px;
    border: 2px solid #DFDFDF;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
}

/* Contact Info Text */
.contact-text {
    max-width: 400px;
}

.contact-text p {
    font-size: 12px;
    line-height: 1.5;
}

/* Contact Links Section */
.contact-links {
    margin-top: 20px;
}

.contact-links ul {
    list-style: none;
    padding-left: 0;
}

.contact-links li {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.contact-links li img {
    width: 20px;
    height: 20px;
    margin-right: 7px;
}

.link-grid .button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    padding: 6px 8px;
    cursor: url("../assets/win98/cursors/pointer.cur"), pointer;
}

/* Styling for contact icons */
.contact-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

/* Contact link hover effect */
.contact-link {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    align-items: center;
    justify-content: center;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 10px 20px; /* row gap, column gap */
    margin-top: 10px;
}


/* Windows 98-style resize handle */
.ui-resizable-se {
    width: 15px;
    height: 15px;
    right: 1px;
    bottom: 1px;
    background: silver;
    border-top: 1px solid #dfdfdf;
    border-left: 1px solid #dfdfdf;
    border-bottom: 1px solid #808080;
    border-right: 1px solid #808080;
    cursor: se-resize;
    /* cursor: url("../assets/win98/cursors/drag.cur"), se-resize; */
    box-sizing: border-box;
}

.ui-resizable-se::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(135deg,
        transparent,
        transparent 2px,
        #808080 2px,
        #808080 3px
    );
}



.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: silver;
    display: flex;
    align-items: center;
    padding: 2px 4px;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    /* font-family: "Microsoft Sans Serif", sans-serif; */
    font-family: "Pixelated MS Sans Serif",Arial;
    box-sizing: border-box;
    z-index: 9999;
}

.start-button {
    font-family: inherit;
    height: 26px;
    padding: 2px 4px;
    background: silver;
    border: 2px outset #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    min-width: 60px;
    cursor: url("../assets/win98/cursors/pointer.cur"), pointer;
}

.start-button img {
    width: 16px;
    height: 16px;
}

.start-button:active {
    border: 2px inset #808080;
    padding: 3px 3px 1px 5px;
}

.taskbar-entries {
    flex: 1;
    display: flex;
    gap: 2px;
    margin: 0 4px;
    height: 26px;
    overflow: hidden;
}

.taskbar-entry {
    background: silver;
    border: 2px outset #fff;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    /* min-width: 50px; */
    max-width: 200px;
    font-size: 12px;
    cursor: url("../assets/win98/cursors/pointer.cur"), pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taskbar-entry.active {
    border: 2px inset #808080;
    padding: 3px 3px 1px 5px;
}

.taskbar-entry img {
    width: 16px;
    height: 16px;
    min-width: 16px;
}

.taskbar-clock {
    padding: 2px 8px;
    border: 2px solid #DFDFDF;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    font-size: 14px;
    min-width: 76px;
    text-align: center;
}


/* ===== Start Menu ===== */
#start-menu {
    position: absolute;
    bottom: 32px;           /* sits directly above the taskbar */
    left: 0;
    width: 220px;
    background: silver;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.45);
    z-index: 10001;         /* above taskbar (9999) and windows (100+) */
    display: flex;          /* overridden to 'none' inline until opened */
    flex-direction: row;
    font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
}

.start-menu-strip {
    width: 22px;
    background: linear-gradient(to top, #00006b, #1084d0);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
    flex-shrink: 0;
    user-select: none;
}

.start-menu-brand {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
}

.start-menu-items {
    flex: 1;
    padding: 2px 0;
}

.start-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 20px 5px 8px;
    font-size: 13px;
    cursor: url("../assets/win98/cursors/pointer.cur"), pointer;
    white-space: nowrap;
    color: #000;
    user-select: none;
}

.start-menu-item:hover {
    background: #000080;
    color: #fff;
}

.start-menu-item img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.start-menu-sep {
    border: none;
    border-top: 1px solid #808080;
    border-bottom: 1px solid #dfdfdf;
    margin: 2px 4px 2px 30px;  /* indented past icon column */
}

/* Start button pressed state while menu is open */
.start-button.open {
    border: 2px inset #808080;
    padding: 3px 3px 1px 5px;
}


/* ═══════════════════════════════════════════════════
   TROPHY CASE
═══════════════════════════════════════════════════ */
.trophy-case-wrapper {
    padding: 10px 12px;
    background: #b0906c;
    background-image: repeating-linear-gradient(90deg,
        transparent, transparent 78px,
        rgba(0,0,0,0.04) 78px, rgba(0,0,0,0.04) 80px
    );
}
.trophy-shelf { margin-bottom: 12px; }
.trophy-shelf-label {
    font-family: "Courier New", monospace;
    font-size: 0.58rem;
    color: #3e2200;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}
.trophy-shelf-board {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 6px 8px 8px;
    background: linear-gradient(to bottom, #d4aa6a 0%, #c49050 60%, #b07838 100%);
    border-top:    3px solid #eace90;
    border-left:   3px solid #eace90;
    border-right:  3px solid #8b5e20;
    border-bottom: 10px solid #5a3008;
    box-shadow: 0 5px 0 #2a1404, inset 0 1px 0 rgba(255,240,180,0.3);
}
.trophy-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 6px;
    border: 2px solid transparent;
    cursor: url("../assets/win98/cursors/arrow.cur"), default;
    min-width: 54px;
}
.trophy-item:hover {
    border-color: #000080;
    background: rgba(0,0,128,0.12);
}
.trophy-item-icon {
    font-size: 22px;
    line-height: 26px;
    display: block;
    text-align: center;
}
.trophy-item-name {
    font-family: "Courier New", monospace;
    font-size: 0.54rem;
    text-align: center;
    color: #1a0a00;
    max-width: 62px;
    word-break: break-word;
    line-height: 1.2;
    margin-top: 2px;
}


/* ═══════════════════════════════════════════════════
   SCREENSAVER OVERLAY
═══════════════════════════════════════════════════ */
#screensaver-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 9000;
    display: none;
    cursor: none;
    overflow: hidden;
}
#screensaver-canvas {
    display: block;
    width: 100%;
    height: 100%;
}
#screensaver-hint {
    position: absolute;
    bottom: 42px;
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.22);
    font-family: "Courier New", monospace;
    font-size: 0.58rem;
    pointer-events: none;
    user-select: none;
}


/* ═══════════════════════════════════════════════════
   CLOCK + CALENDAR
═══════════════════════════════════════════════════ */
.clock-cal-widget { padding: 8px; text-align: center; }
.clock-led {
    font-family: "Courier New", monospace;
    font-size: 2.0rem;
    font-weight: bold;
    color: #00dd00;
    background: #001800;
    padding: 4px 12px;
    display: inline-block;
    letter-spacing: 5px;
    border-top:    2px solid #808080;
    border-left:   2px solid #808080;
    border-right:  2px solid #dfdfdf;
    border-bottom: 2px solid #dfdfdf;
    margin-bottom: 6px;
    min-width: 116px;
}
.clock-date-str {
    font-family: "Courier New", monospace;
    font-size: 0.66rem;
    color: #555;
    margin-bottom: 8px;
}
.cal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.cal-nav-title {
    font-family: "Courier New", monospace;
    font-size: 0.70rem;
    font-weight: bold;
    color: #000080;
}
.calendar-tbl {
    width: 100%;
    border-collapse: collapse;
    font-family: "Courier New", monospace;
    font-size: 0.63rem;
}
.calendar-tbl th {
    background: #000080;
    color: #fff;
    padding: 2px 0;
    font-weight: normal;
    text-align: center;
}
.calendar-tbl td {
    text-align: center;
    padding: 2px 0;
    border: 1px solid #e0e0e0;
    cursor: url("../assets/win98/cursors/arrow.cur"), default;
    color: #333;
    min-width: 22px;
}
.calendar-tbl td.cal-today {
    background: #000080;
    color: #fff;
    font-weight: bold;
}
.calendar-tbl td.cal-other { color: #bbb; background: #f8f8f8; }
.calendar-tbl td:not(.cal-other):not(:empty):hover { background: #c8c8ff; }


/* ═══════════════════════════════════════════════════
   CURRENTLY STATUS (sidebar)
═══════════════════════════════════════════════════ */
.currently-body { padding: 6px 8px; }
.currently-row {
    display: flex;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px dotted #c0c0c0;
    font-family: "Courier New", monospace;
    font-size: 0.68rem;
    align-items: flex-start;
    line-height: 1.35;
}
.currently-row:last-child { border-bottom: none; }
.currently-label {
    font-weight: bold;
    color: #000080;
    min-width: 60px;
    flex-shrink: 0;
}
.currently-value { color: #333; }


/* ═══════════════════════════════════════════════════
   WESTERN WEBRING — WIN98 BUTTON STYLE
   Values copied verbatim from the local css/98.css
   `button` rule — not an approximation.
═══════════════════════════════════════════════════ */
#western-webring .webring-widget {
    font-family: "Pixelated MS Sans Serif", Arial;
    font-size: 11px;
    -webkit-font-smoothing: none;
    margin: 0;
    padding: 4px 0;
}
#western-webring .webring-top-row  { gap: 4px; margin-bottom: 4px; }
#western-webring .webring-bottom-row { gap: 4px; margin-top: 0; }
#western-webring .webring-logo { height: 28px; }

#western-webring .webring-arrows,
#western-webring .webring-list,
#western-webring .webring-random {
    /* ── exact 98.css button values ── */
    background: silver;
    border: none;
    border-radius: 0;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff,
                inset -2px -2px grey,    inset 2px 2px #dfdfdf;
    box-sizing: border-box;
    color: transparent !important;
    text-shadow: 0 0 #222;
    min-height: 23px;
    padding: 0 8px;
    font-family: "Pixelated MS Sans Serif", Arial;
    font-size: 11px;
    -webkit-font-smoothing: none;
    /* ── <a>-specific fixes ── */
    display: inline-block;
    line-height: 23px;
    min-width: 0;
    text-decoration: none !important;
    cursor: url("../assets/win98/cursors/pointer.cur"), pointer;
}
#western-webring .webring-arrows:active,
#western-webring .webring-list:active,
#western-webring .webring-random:active {
    /* exact 98.css button:active values */
    box-shadow: inset -1px -1px #fff,    inset 1px 1px #0a0a0a,
                inset -2px -2px #dfdfdf, inset 2px 2px grey;
    text-shadow: 1px 1px #222;
}


/* ═══════════════════════════════════════════════════
   LINKS / SURF THE WEB (sidebar)
═══════════════════════════════════════════════════ */
.links-body {
    padding: 4px 6px;
    font-family: "Courier New", monospace;
    font-size: 0.68rem;
}
.links-body a { color: #000080; text-decoration: none; }
.links-body a:hover { text-decoration: underline; color: #cc0000; }
.links-body .tree-view { margin: 0; }
.links-body .tree-view li { list-style: none; }


/* ═══════════════════════════════════════════════════
   AWARDS TABLE
═══════════════════════════════════════════════════ */
#awards-table tr.awards-section td {
    background: #d4d0c8;
    font-weight: bold;
    font-size: 0.68rem;
    padding: 2px 6px;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff,
                inset -2px -2px grey, inset 2px 2px #dfdfdf;
    letter-spacing: 0.02em;
    cursor: default;
}

#awards-table tr.awards-section:hover td {
    background: #d4d0c8;
}

#awards-table tbody tr.highlighted a { color: #fff; }

#awards-table:focus { outline: none; }