/* ============================================================
   Portfolio - Windows 3.1 retro theme
   Converted from Blazor wwwroot/app.css + PostIt.razor.css
   ============================================================ */

/* overall page & background */
html, body {
    margin: 0;
    font-family: "MS Sans Serif", Tahoma, sans-serif;
    font-size: 12px;
    background-color: #008080; /* teal */
    color: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1:focus {
    outline: none;
}

/* ── Layout ─────────────────────────────────────────────── */
.layout-wrapper {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── Header / Nav ───────────────────────────────────────── */
.retro-header {
    background-color: #C0C0C0;
    padding: 4px;
    border-top: 2px solid #FFF;
    border-left: 2px solid #FFF;
    border-bottom: 2px solid #808080;
    border-right: 2px solid #808080;
    width: 100%;
    box-sizing: border-box;
}

.retro-nav a {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 6px;
    text-decoration: none;
    font-weight: bold;
    color: #000080;
    background-color: #C0C0C0;
    border: 2px outset #FFF;
    cursor: pointer;
}

.retro-nav a:hover {
    border: 2px inset #FFF;
    background-color: #808080;
}

.retro-nav a.active {
    border: 2px inset #FFF;
    background-color: #A0A0A0;
    color: #000;
}

/* ── Main content area ──────────────────────────────────── */
.retro-main {
    padding: 16px;
    background-color: #FFF;
    margin: 8px;
    border: 2px solid #808080;
    min-height: calc(100vh - 140px);
    flex: 1;
}

/* ── Footer ─────────────────────────────────────────────── */
.retro-footer {
    text-align: center;
    padding: 4px;
    font-size: 10px;
    border-top: 2px solid #808080;
    border-bottom: 2px solid #FFF;
    background-color: #C0C0C0;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}

/* ── Links ───────────────────────────────────────────────── */
.win31-link {
    color: #0000FF;
    text-decoration: underline;
    background-color: transparent;
    cursor: pointer;
}

.win31-link:visited {
    color: #800080;
}

.win31-link:hover {
    background-color: #C0C0C0;
    cursor: url('white-hand.cur'), pointer;
}

.win31-link:active {
    color: #000080;
}

/* ── Win31 window ────────────────────────────────────────── */
.win31-window {
    display: inline-block;
    font-family: 'MS Shell Dlg', sans-serif;
    font-size: 14px;
    background-color: #C0C0C0;
    border-top: 2px solid #FFFFFF;
    border-left: 2px solid #FFFFFF;
    border-bottom: 2px solid #808080;
    border-right: 2px solid #808080;
}

.win31-window .titlebar {
    position: relative;
    background-color: #000080;
    color: #FFFFFF;
    padding: 4px 12px;
    user-select: none;
}

.win31-window .titlebar .buttons {
    position: absolute;
    right: 4px;
    top: 2px;
}

.win31-window .titlebar .buttons span {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 14px;
    text-align: center;
    margin-left: 2px;
    background-color: #C0C0C0;
    border: 1px solid #000000;
    color: #000000;
    font-weight: bold;
    cursor: pointer;
}

.win31-window .titlebar .buttons .minimize:hover,
.win31-window .titlebar .buttons .close:hover {
    cursor: url('white-hand.cur'), pointer;
    background-color: #A0A0A0;
}

.win31-window .content {
    padding: 8px;
    color: #000000;
    line-height: 1.4;
}

/* ── Image container ─────────────────────────────────────── */
.image-container {
    background-color: #C0C0C0;
    border-top: 2px solid #FFFFFF;
    border-left: 2px solid #FFFFFF;
    border-bottom: 2px solid #808080;
    border-right: 2px solid #808080;
    padding: 4px;
    margin-top: 8px;
}

/* ── P5.js Clock canvas ──────────────────────────────────── */
.chrono-window .content canvas {
    display: block;
    margin: 0 auto;
    overflow: hidden;
}

canvas#defaultCanvas0 {
    display: none !important;
}

.chrono-window canvas#defaultCanvas0 {
    display: block !important;
}

/* ── PageWrapper ─────────────────────────────────────────── */
.pagewrapper {
    background-color: #008080;
}

/* ── Skill categories ────────────────────────────────────── */
.skill-category {
    margin-bottom: 16px;
}

.skill-category-title {
    font-family: "MS Sans Serif", Tahoma, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #ffffff;
    background-color: #000080;
    padding: 2px 8px;
    margin: 0 0 6px 0;
    display: inline-block;
    border-top: 2px solid #6060c0;
    border-left: 2px solid #6060c0;
    border-bottom: 2px solid #000040;
    border-right: 2px solid #000040;
}

/* ── Flex helpers (Bootstrap equivalents) ────────────────── */
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.gap-2 { gap: 0.5rem; }
.justify-content-center { justify-content: center; }
.mw-100 { max-width: 100%; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }

/* ── Fire gif clip ───────────────────────────────────────── */
.fire-clip {
    width: 300px;
    height: 50px;
    object-fit: cover;
    object-position: top center;
    image-rendering: pixelated;
    clip-path: inset(10px 0 0 0);
}

/* ── Project item window ─────────────────────────────────── */
.project-item-div {
    min-height: 300px;
    min-width: 300px;
    max-width: 400px;
}

/* ============================================================
   PostIt component styles (from PostIt.razor.css)
   ============================================================ */
.retro-postit {
    background: linear-gradient(135deg, #ffeb3b 0%, #fdd835 100%);
    border: 2px solid #f57f17;
    border-radius: 0;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.6),
        inset -1px -1px 0 rgba(0, 0, 0, 0.2),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transform: rotate(-2deg);
    transition: transform 0.2s ease;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    margin: 10px;
}

.retro-postit:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.6),
        inset -1px -1px 0 rgba(0, 0, 0, 0.2),
        4px 4px 8px rgba(0, 0, 0, 0.4);
}

.retro-postit::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 20px;
    width: 15px;
    height: 15px;
    background: linear-gradient(45deg, #f57f17 0%, #e65100 100%);
    border-radius: 50%;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.note-content {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    padding: 10px;
    word-wrap: break-word;
    line-height: 1.2;
}
