/* Windows 95 Style Portfolio */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "MS Sans Serif", "Microsoft Sans Serif", sans-serif;
    background: #008080; /* Classic Windows 95 teal */
    color: #000;
    overflow: hidden;
    height: 100vh;
    cursor: default;
}

/* Back Arrow */
.back-arrow {
    position: fixed;
    top: 1rem;
    left: 1rem;
    color: #000;
    text-decoration: none;
    font-size: 1.5rem;
    z-index: 10000;
    background: #c0c0c0;
    padding: 0.5rem;
    border: 2px outset #c0c0c0;
    border-radius: 0;
}

.back-arrow:hover {
    border: 2px inset #c0c0c0;
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: calc(100% - 40px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    cursor: pointer;
    text-align: center;
    padding: 5px;
    border: 1px solid transparent;
    transition: all 0.1s ease;
    user-select: none;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #000;
}

.desktop-icon.selected {
    background: rgba(0, 0, 255, 0.3);
    border: 2px dotted #808080;
}

.desktop-icon.open {
    background: rgba(0, 0, 255, 0.3);
    border: 2px solid #000;
}

.icon-image {
    width: 96px;
    height: 96px;
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
}

.icon-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-label {
    font-size: 11px;
    line-height: 1.2;
    word-wrap: break-word;
    text-align: center;
    max-width: 70px;
    color: white;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #c0c0c0;
    border-top: 2px outset #c0c0c0;
    display: flex;
    align-items: center;
    padding: 0 5px;
    z-index: 1000;
}

.start-button {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    cursor: pointer;
    margin-right: 10px;
    font-size: 12px;
    font-weight: bold;
}

.start-button:hover {
    border: 2px inset #c0c0c0;
}

.start-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.start-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.taskbar-items {
    flex: 1;
    display: flex;
    gap: 5px;
}

.taskbar-item {
    padding: 5px 10px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    font-size: 12px;
    cursor: pointer;
}

.taskbar-item.active {
    border: 2px inset #c0c0c0;
    background: #c0c0c0;
}

.system-tray {
    display: flex;
    align-items: center;
    padding: 5px;
    font-size: 12px;
}

/* Windows */
.window-container, .gallery-window, .readme-window {
    position: fixed;
    top: calc(50% + 24px);
    left: calc(50% + 24px);
    transform: translate(-50%, -50%);
    z-index: 100;
    display: none;
}

.window {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    min-width: 400px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    pointer-events: none;
    z-index: 5;
}

.window.resizing::before {
    border-color: #000080;
}

.window::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    background: linear-gradient(45deg, transparent 30%, #808080 30%, #808080 40%, transparent 40%, transparent 60%, #808080 60%, #808080 70%, transparent 70%);
    cursor: se-resize;
    z-index: 10;
}

.window.maximized::after {
    display: none;
}

/* Resize handles */
.window-resize-handle {
    position: absolute;
    background: transparent;
    z-index: 15;
}

.window-resize-handle.n {
    top: 0;
    left: 5px;
    right: 5px;
    height: 5px;
    cursor: n-resize;
}

.window-resize-handle.s {
    bottom: 0;
    left: 5px;
    right: 5px;
    height: 5px;
    cursor: s-resize;
}

.window-resize-handle.e {
    top: 5px;
    right: 0;
    bottom: 5px;
    width: 5px;
    cursor: e-resize;
}

.window-resize-handle.w {
    top: 5px;
    left: 0;
    bottom: 5px;
    width: 5px;
    cursor: w-resize;
}

.window-resize-handle.ne {
    top: 0;
    right: 0;
    width: 5px;
    height: 5px;
    cursor: ne-resize;
}

.window-resize-handle.nw {
    top: 0;
    left: 0;
    width: 5px;
    height: 5px;
    cursor: nw-resize;
}

.window-resize-handle.se {
    bottom: 0;
    right: 0;
    width: 5px;
    height: 5px;
    cursor: se-resize;
}

.window-resize-handle.sw {
    bottom: 0;
    left: 0;
    width: 5px;
    height: 5px;
    cursor: sw-resize;
}

.window-titlebar {
    background: #000080;
    color: #fff;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    cursor: move;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.window-control {
    width: 16px;
    height: 16px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    font-weight: bold;
}

.window-control:hover {
    border: 1px inset #c0c0c0;
}

.window-control.close:hover {
    background: #ff0000;
    color: #fff;
}

.window-menu {
    background: #c0c0c0;
    padding: 2px 10px;
    display: flex;
    gap: 20px;
    font-size: 11px;
    border-bottom: 1px solid #808080;
}

.window-menu span {
    cursor: pointer;
    padding: 2px 5px;
}

.window-menu span:hover {
    background: #000080;
    color: #fff;
}

.window-content {
    flex: 1;
    padding: 20px;
    background: #fff;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    align-items: start;
}

.folder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    margin-bottom: 5px;
    text-align: center;
    transition: all 0.1s ease;
    user-select: none;
}

.folder-item:hover {
    background: rgba(255, 255, 255, 0.3);
    border: 2px dotted #808080;
}

.folder-item.selected {
    background: rgba(0, 0, 255, 0.3);
    border: 2px dotted #808080;
}

.folder-item.open {
    background: rgba(0, 0, 255, 0.3);
    border: 2px solid #000;
}

.folder-icon {
    width: 128px;
    height: 128px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 96px;
}

.folder-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Make readme icons 4x bigger */
.folder-icon img[src*="readme"] {
    width: 128px;
    height: 128px;
}

.folder-label {
    font-size: 12px;
}

.window-statusbar {
    background: #c0c0c0;
    padding: 5px 10px;
    font-size: 11px;
    border-top: 1px solid #808080;
}

/* Gallery Content */
.gallery-content {
    padding: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border: 1px solid transparent;
    text-align: center;
}

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

.image-placeholder {
    width: 80px;
    height: 60px;
    background: #c0c0c0;
    border: 1px solid #808080;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-bottom: 5px;
    text-align: center;
    word-wrap: break-word;
}

.image-label {
    font-size: 10px;
    line-height: 1.2;
}

/* Back Button */
.back-button {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 5px 10px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
    color: #000;
}

.back-button:hover {
    border: 2px inset #c0c0c0;
    background: #d0d0d0;
}

/* README Content */
.readme-content {
    padding: 20px;
}

.readme-text {
    font-size: 12px;
    line-height: 1.4;
}

.readme-text h3 {
    margin-bottom: 15px;
    color: #000080;
    font-size: 14px;
}

.readme-text p {
    margin-bottom: 10px;
}

.readme-text ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.readme-text li {
    margin-bottom: 5px;
}

/* Image Viewer */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-content {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
}

.image-viewer-header {
    background: #000080;
    color: #fff;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.image-viewer-controls {
    display: flex;
}

.image-viewer-control {
    width: 16px;
    height: 16px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    font-weight: bold;
    color: #000;
}

.image-viewer-control:hover {
    border: 1px inset #c0c0c0;
}

.image-viewer-control.close:hover {
    background: #ff0000;
    color: #fff;
}

.image-viewer-body {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.image-viewer-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-icons {
        grid-template-columns: repeat(auto-fill, 60px);
        gap: 15px;
    }
    
    .desktop-icon {
        width: 60px;
        height: 60px;
    }
    
    .icon-image {
        width: 24px;
        height: 24px;
        font-size: 18px;
    }
    
    .icon-label {
        font-size: 8px;
        max-width: 50px;
    }
    
    .window {
        min-width: 300px;
        min-height: 250px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .image-placeholder {
        width: 60px;
        height: 45px;
        font-size: 8px;
    }
} 