/* === BASE STYLES — OS DESKTOP SIMULATION === */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

body {
    background-image: url('../img/me/profile.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #0a0a0a;
    height: 100vh;
}

/* === DESKTOP ICONS === */
.desktop-icons {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    cursor: default;
    user-select: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.15s;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.desktop-icon .icon {
    font-size: 32px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.desktop-icon .label {
    text-align: center;
    line-height: 1.2;
    max-width: 72px;
    word-wrap: break-word;
}

/* === TASKBAR === */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(20, 20, 35, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    z-index: 9999;
}

.taskbar-items {
    display: flex;
    align-items: center;
    gap: 4px;
}

.taskbar-item {
    width: 40px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: default;
    transition: all 0.15s;
}

.taskbar-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

a.taskbar-item {
    cursor: pointer;
}

.taskbar-item.active {
    background: rgba(51, 255, 51, 0.15);
    color: #33ff33;
    box-shadow: inset 0 -2px 0 #33ff33;
}

.taskbar-clock {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 400;
    user-select: none;
}

/* === BASH CONSOLE WINDOW OVERRIDES === */
.bash-console {
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(0, 0, 0, 0.3);
}

.bash-console .terminal-body {
    max-height: calc(480px - 38px);
    overflow-y: auto;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    html, body {
        overflow: auto;
    }

    body {
        background-position: 30% center;
        min-height: 100vh;
        height: auto;
    }

    /* Desktop icons move to top-left on mobile */
    .desktop-icons {
        top: 12px;
        right: auto;
        left: 12px;
        flex-direction: row;
        gap: 12px;
    }

    .desktop-icon {
        padding: 6px 8px;
    }

    .desktop-icon .icon {
        font-size: 24px;
    }

    .desktop-icon .label {
        font-size: 10px;
        max-width: 60px;
    }

    /* Taskbar adjustments */
    .taskbar {
        height: 44px;
    }

    .taskbar-item {
        width: 36px;
        height: 32px;
        font-size: 16px;
    }

    .taskbar-clock {
        font-size: 11px;
        right: 12px;
    }

    /* Bash console becomes full-width, smaller */
    .bash-console {
        width: calc(100% - 24px) !important;
        height: auto !important;
        left: 12px !important;
        top: 80px !important;
        max-height: calc(100vh - 140px);
        position: absolute !important;
    }

    .bash-console .terminal-body {
        max-height: calc(100vh - 190px);
        padding: 14px 16px 16px;
        font-size: 13px;
    }

    .bash-console .window-title {
        cursor: default;
    }

    .bash-console .window-title:active {
        cursor: default;
    }
}

