/* --- BLACK WIRE DESKTOP ENGINE v4.2 --- */

:root {
    --teal: #008080;
    --grey: #c0c0c0;
    --navy: #000080;
    --white: #ffffff;
    --shadow: #808080;
    --dark: #444444;
}

/* 1. RESET & BASE */
* { box-sizing: border-box; }
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color:var(--teal);
    font-family: "MS Sans Serif", "Tahoma", sans-serif;
    -webkit-font-smoothing: none; /* Keep it pixelated */
}

/* 2. PC SHELL (FIXES THE "STRETCH" PROBLEM) */
#os-background {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('https://blob.gifcities.org/gifcities/236BP4745DSO6FLMYJEWINXPPAM2ELBR.gif');
    
    /* SET TO DEFAULT SIZE AND TILE */
    background-size: auto;      /* Uses the image's original dimensions */
    background-repeat: repeat;  /* Tiles the image horizontally and vertically */
}
#pc-shell {
    width: 1100px; /* Fixed width for PC stability */
    height: 800px;
    background: var(--teal);
    border: 4px ridge var(--grey);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

/* 3. SYSTEM BARS */
.top-system-bar {
    background: var(--grey);
    border-bottom: 2px solid var(--shadow);
    padding: 4px 10px;
    display: flex;
    justify-content: space-between;
}

.sys-logo { display: flex; align-items: center; gap: 8px; font-weight: bold; font-size: 12px; }
.sys-controls { display: flex; gap: 12px; font-size: 12px; }
.address-bar { background: white; border: 1px inset var(--shadow); padding: 2px 8px; font-size: 11px; flex: 1; margin-left: 20px; }

/* 4. LAYOUT */
.main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    padding: 10px;
    gap: 10px;
}

.sidebar { width: 220px; display: flex; flex-direction: column; gap: 15px; }

/* 5. WINDOW PANELS */
.win-panel {
    background: var(--grey);
    border: 2px outset var(--white);
    display: flex;
    flex-direction: column;
}

.panel-header {
    background: linear-gradient(90deg, var(--navy), #1084d0);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 6px;
}

.links { display: flex; flex-direction: column; background: white; margin: 2px; border: 2px inset var(--shadow); }
.lnk { padding: 5px 10px; text-decoration: none; color: black; font-size: 12px; }
.lnk:hover { background: var(--navy); color: white; }
.lnk.active { background: #eee; font-weight: bold; }

.panel-content { padding: 10px; font-size: 11px; color: black; }
.stat { margin-bottom: 8px; font-weight: bold; }
.meter { height: 10px; background: #888; border: 1px solid black; margin-top: 2px; }
.fill { height: 100%; background: #0f0; }

/* 6. MAIN WINDOW */
.desktop-view { flex: 1; display: flex; }

.window {
    background: var(--grey);
    border: 2px outset var(--white);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.title-bar {
    background: var(--navy);
    color: white;
    padding: 3px 8px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 13px;
}

.content {
    background: white;
    margin: 2px;
    border: 2px inset var(--shadow);
    padding: 40px;
    flex: 1;
    overflow-y: auto;
    color: black;
}

.content h1 { margin-top: 0; font-family: serif; font-size: 28px; }

/* 7. ASSETS */
.spotlight {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f0f0f0;
    padding: 20px;
    border: 1px dashed var(--shadow);
    margin: 20px 0;
}

.win-btn {
    display: inline-block;
    padding: 8px 25px;
    background: var(--grey);
    border: 2px outset var(--white);
    text-decoration: none;
    color: black;
    font-weight: bold;
    margin-right: 10px;
}

.win-btn:active { border-style: inset; padding: 9px 24px 7px 26px; }

/* 8. FILE EXPLORER (GAMES PAGE) */
.file-explorer { flex: 1; background: white; border: 2px inset var(--shadow); overflow-y: auto; padding: 20px; }

.explorer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.file-item {
    text-align: center;
    padding: 10px;
    border: 1px solid transparent;
}

.file-item:hover { background: #e8f0ff; border-color: #a0c0ff; }

.icon-plate {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.icon-plate img { max-width: 80px; max-height: 80px; }
.fname { font-size: 11px; font-weight: bold; display: block; color: black; margin-bottom: 5px; }

.dl-action {
    font-size: 10px;
    color: blue;
    text-decoration: underline;
}

/* 9. TASKBAR */
.taskbar {
    background: var(--grey);
    border-top: 2px solid var(--white);
    height: 38px;
    display: flex;
    padding: 3px;
    gap: 10px;
    align-items: center;
}

.start-btn {
    background: var(--grey);
    border: 2px outset var(--white);
    padding: 2px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 1px 1px 0 black;
}

.running-apps { flex: 1; display: flex; gap: 5px; }
.app-tab {
    background: var(--grey);
    border: 2px outset var(--white);
    font-size: 11px;
    padding: 4px 15px;
    width: 140px;
}
.app-tab.active { border: 2px inset var(--white); background: #eee; font-weight: bold; }

.clock {
    border: 2px inset var(--white);
    padding: 2px 10px;
    font-size: 11px;
    color: black;
}

/* 10. AFFILIATES */
.affiliate-box { padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.affiliate-box img { width: 88px; border: 1px solid var(--shadow); }

/* 11. SCROLLBARS */
::-webkit-scrollbar { width: 16px; }
::-webkit-scrollbar-track { background: var(--grey); }
::-webkit-scrollbar-thumb { background: var(--grey); border: 2px outset var(--white); }
/* --- THE AUTHENTIC WIN95 BUTTON ENGINE --- */

.dl-action {
    /* 1. Remove Link Default Styling */
    display: inline-block;
    text-decoration: none;
    color: #000 !important;
    cursor: default;
    
    /* 2. Box Geometry */
    background-color: #c0c0c0; /* The classic grey */
    padding: 4px 12px;
    font-family: "MS Sans Serif", "Tahoma", sans-serif;
    font-size: 11px;
    min-width: 75px;
    text-align: center;

    /* 3. The 3D Outset Border (Light on Top/Left, Shadow on Bottom/Right) */
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    
    /* 4. The Outer Shadow (Optional for extra depth) */
    box-shadow: 1px 1px 0px #000000;
    
    margin: 5px;
    user-select: none;
}

/* THE INTERACTIVE CLICK EFFECT */
.dl-action:active {
    /* Flip the borders: Shadow on Top/Left, Light on Bottom/Right */
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    
    /* Remove the shadow and shift the text 1px to simulate a physical push */
    box-shadow: none;
    padding: 5px 11px 3px 13px; 
}

/* Hover State (Optional, Win95 didn't really have them, but it helps UX) */
.dl-action:hover {
    background-color: #d0d0d0;
}
.decor-row { margin-top: 40px; display: flex; gap: 20px; opacity: 0.5; }