/* 1. Desktop Background */
body.desktop {
    background: #008080;
    background: linear-gradient(0deg, rgba(0, 128, 128, 1) 0%, rgba(150, 27, 181, 1) 100%);
    background-repeat: no-repeat;  /* Prevents the gradient from duplicating */
    background-attachment: fixed;  /* Pins the gradient to the screen so it stays whole while scrolling */
    min-height: 100vh;             /* Ensures the background stretches to the bottom of the screen at a minimum */
    margin: 0;
    padding: 20px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 13px;
    color: #000000;
}

/* 2. Main Layout (Forces Shortcuts and Window Side-by-Side) */
.desktop-layout {
    max-width: 1000px;
    margin: 20px auto;
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
}

/* 3. Sidebar Folder Shortcuts */
.desktop-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 80px;
    flex-shrink: 0; /* Keeps shortcuts from getting crushed */
}

.shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 6px;
}

.shortcut-label {
    color: #ffffff;
    font-size: 11px;
    margin-top: 4px;
    text-shadow: 1px 1px 1px #000000;
}

.shortcut-icon {
    font-size: 28px;
}

.shortcut-item:hover {
    background-color: rgba(0, 0, 128, 0.3);
}

/* 4. Windows 98 File Explorer Box */
.file-explorer {
    flex: 1; /* Makes the window fill out the remaining space */
    background-color: #c0c0c0;
    padding: 3px;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    box-shadow: 1px 1px 0px 0px #000000;
}

/* Titlebar */
.win-titlebar {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #ffffff;
    padding: 4px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.win-buttons {
    display: flex;
    gap: 2px;
}

.win-btn {
    background-color: #c0c0c0;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 14px;
    cursor: pointer;
    padding: 0;
}

/* Dropdown Menu Row */
.win-menu {
    display: flex;
    gap: 15px;
    padding: 5px 10px;
    border-bottom: 1px solid #808080;
}

/* Inside Folder Window */
.folder-view {
    background-color: #ffffff;
    margin: 4px;
    padding: 20px;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    min-height: 350px;
}

/* 5. Inside Grid layout for your Zines */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.zine-item {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 10px;
    border: 1px solid transparent;
}

.zine-item:hover {
    background-color: #f1f5f9;
    border: 1px dotted #808080;
}

.zine-icon {
    font-size: 32px;
}

.zine-info {
    display: flex;
    flex-direction: column;
}

.zine-filename {
    font-weight: bold;
}

.zine-desc {
    font-size: 11px;
    color: #404040;
    margin: 4px 0 8px 0;
}

.view-btn {
    display: inline-block;
    width: fit-content;
    background-color: #c0c0c0;
    color: #000000;
    text-decoration: none;
    padding: 2px 8px;
    font-size: 11px;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 4px 6px;
    background-color: #c0c0c0;
    border-top: 1px solid #808080;
    font-size: 11px;
    color: #404040;
}

/* Responsive Fix for small screens */
@media (max-width: 700px) {
    .desktop-layout {
        flex-direction: column;
    }
    .desktop-shortcuts {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
    }
}
