/* Linux Mint Cinnamon Dark Orange Theme Colors */
:root {
    --primary-orange: #ff7139;
    --dark-grey: #2b2b2b;
    --light-grey: #404040;
    --text-light: #ffffff;
    --text-dark: #000000;
    --window-bg: #3c3c3c;
    --titlebar-bg: #2b2b2b;
    --statusbar-bg: #2b2b2b;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.desktop {
    height: 100vh;
    width: 100vw;
    background: linear-gradient(135deg, #1a1a1a 0%, #2b2b2b 50%, #1a1a1a 100%);
    position: relative;
}

.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.desktop-icon:hover {
    background-color: rgba(255, 113, 57, 0.2);
}

.desktop-icon:active {
    background-color: rgba(255, 113, 57, 0.4);
}

.icon-image {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
}

.portfolio-icon {
    background-image: url('img/folder-icon-star.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.resume-icon {
    background-image: url('img/resume-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.credits-icon {
    background-image: url('img/credits-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-label {
    color: var(--text-light);
    font-size: 12px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.desktop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(43, 43, 43, 0.7);
    backdrop-filter: blur(2px);
    display: none;
    z-index: 10;
}

.desktop-overlay.active {
    display: block;
}

.window {
    position: fixed;
    background-color: var(--window-bg);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 20;
    min-width: 400px;
    min-height: 300px;
}

.window.active {
    display: flex;
    flex-direction: column;
}

.portfolio-window {
    width: 80vw;
    height: 80vh;
    top: 10vh;
    left: 10vw;
}

.resume-window {
    width: min(90vw, 900px); /* Max 900px to match resume content + padding */
    height: 90vh;
    top: 5vh;
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
}

.credits-window {
    width: 500px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.detail-window {
    width: 80vw;
    height: 80vh;
    top: 10vh;
    left: 10vw;
}

.window-titlebar {
    background-color: var(--titlebar-bg);
    border-radius: 6px 6px 0 0;
    padding: 8px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--light-grey);
    position: relative;
}

.window-left-controls {
    position: absolute;
    left: 12px;
    display: flex;
    align-items: center;
}

.window-controls {
    position: absolute;
    right: 12px;
    display: flex;
    gap: 8px;
}

.window-title {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}


.window-control {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.window-control.close {
    background-image: url('img/close.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    color: transparent;
}

.window-control.back {
    background-image: url('img/back-arrow.svg'), url('img/back-button-bg.svg');
    background-size: 21px 21px, 26px 26px;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-color: transparent;
    color: transparent;
    margin-right: auto;
}

.window-control:hover {
    filter: brightness(1.125);
}

.window-content {
    flex: 1;
    padding: 16px;
    overflow: hidden;
    background-color: var(--window-bg);
}

.window-statusbar {
    background-color: var(--statusbar-bg);
    border-radius: 0 0 6px 6px;
    padding: 4px 12px;
    border-top: 1px solid var(--light-grey);
    color: var(--text-light);
    font-size: 12px;
}

.filmstrip-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    height: 100%;
    align-items: center;
    padding: 0 8px;
}

.filmstrip-container::-webkit-scrollbar {
    height: 12px;
}

.filmstrip-container::-webkit-scrollbar-track {
    background: var(--dark-grey);
    border-radius: 6px;
}

.filmstrip-container::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 6px;
}

.filmstrip-container::-webkit-scrollbar-thumb:hover {
    background: #e65a2b;
}

.portfolio-item {
    flex: 0 0 300px;
    height: 400px;
    background-color: var(--light-grey);
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 113, 57, 0.3);
}

.portfolio-item-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.portfolio-item-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-item-title {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.portfolio-item-description {
    color: #cccccc;
    font-size: 12px;
    text-align: center;
    line-height: 1.4;
}

.resume-content {
    padding: 0;
    color: var(--text-light);
    overflow-y: auto;
    height: 100%;
}

.resume-display {
    width: 100%;
    height: 100%;
}

.resume-display p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.resume-link {
    display: inline-block;
    background: var(--primary-orange);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
    margin: 8px 0;
    font-size: 16px;
}

.resume-link:hover {
    background: #e65a2b;
}

.resume-note {
    font-size: 12px;
    color: #cccccc;
    margin-top: 8px;
}

.credits-content {
    padding: 24px;
    color: var(--text-light);
    line-height: 1.6;
}

.credits-content h2 {
    color: var(--primary-orange);
    margin-bottom: 16px;
}

.credits-content p {
    margin-bottom: 12px;
}

.credits-content a {
    color: var(--primary-orange);
    text-decoration: none;
}

.credits-content a:hover {
    text-decoration: underline;
}

.detail-content {
    padding: 24px;
    color: var(--text-light);
    overflow-y: auto;
    height: 100%;
}

.detail-content h1 {
    color: var(--primary-orange);
    margin-bottom: 16px;
}

.detail-content h2 {
    color: var(--primary-orange);
    margin: 24px 0 12px 0;
    font-size: 18px;
}

.detail-content h3 {
    color: #cccccc;
    margin: 16px 0 8px 0;
    font-size: 16px;
}

.detail-content p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
}

.detail-content a {
    color: var(--primary-orange);
    text-decoration: none;
}

.detail-content a:hover {
    text-decoration: underline;
}

.detail-content iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 6px;
    margin: 16px 0;
}

/* Animation for window transitions */
.window {
    transition: all 0.3s ease;
}

.window.transitioning {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* LLM-Zork specific styling - use green instead of orange */
.detail-window[data-entry-id="llm-zork"] .detail-content h1,
.detail-window[data-entry-id="llm-zork"] .detail-content h2 {
    color: #4ade80 !important;
}

.detail-window[data-entry-id="llm-zork"] .detail-content a {
    color: #4ade80 !important;
}

.detail-window[data-entry-id="llm-zork"] .window-control.close {
    background-image: url('img/close-green.svg') !important;
}

.detail-window[data-entry-id="llm-zork"] .window-control.back {
    background-image: url('img/back-arrow-green.svg'), url('img/back-button-bg.svg') !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portfolio-window, .detail-window {
        width: 95vw;
        height: 90vh;
        top: 5vh;
        left: 2.5vw;
    }
    
    .portfolio-item {
        flex: 0 0 250px;
        height: 350px;
    }
    
    .portfolio-item-image {
        height: 200px;
    }
}
