/* ================================
   Computer & Monitor Styles
   ================================ */

/* Computer Wrapper */
.computer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Monitor */
.monitor {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.monitor-bezel {
    background: linear-gradient(180deg,
            var(--mac-light-beige) 0%,
            var(--mac-beige) 10%,
            var(--mac-dark-beige) 100%);
    padding: 25px 30px 40px 30px;
    border-radius: 20px 20px 10px 10px;
    box-shadow:
        var(--shadow-soft),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    position: relative;
}

.monitor-brand {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--mac-dark-beige);
    letter-spacing: 2px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Screen Container */
.screen-container {
    position: relative;
    width: 640px;
    height: 480px;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow:
        inset 0 0 50px rgba(0, 0, 0, 0.5),
        inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.screen {
    width: 100%;
    height: 100%;
    background: var(--screen-bg);
    position: relative;
    overflow: hidden;
}

/* CRT Effect */
.crt-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.crt-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15) 0px,
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
}

.crt-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center,
            transparent 0%,
            rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* Screen Glare */
.screen-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%,
            transparent 100%);
    pointer-events: none;
    z-index: 101;
}

/* Status Bar */
.status-bar {
    height: 28px;
    background: #fff;
    border-bottom: 2px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    font-size: 18px;
}

.status-left,
.status-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.apple-menu {
    cursor: pointer;
}

.menu-item {
    cursor: pointer;
    padding: 2px 8px;
}

.menu-item:hover {
    background: #000;
    color: #fff;
}

.active-app {
    font-weight: bold;
}

/* Desktop */
.desktop-icons {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: absolute;
    right: 25px;
    top: 25px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

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

.desktop-icon .icon-image {
    font-size: 50px;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
}

.desktop-icon span {
    color: #fff;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hint-text {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
    white-space: nowrap;
}

/* Monitor Logo */
.monitor-logo {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.rainbow-apple {
    font-size: 18px;
    filter: saturate(1.5);
}

/* Monitor Stand */
.monitor-stand {
    width: 80px;
    height: 60px;
    background: linear-gradient(180deg,
            var(--mac-dark-beige) 0%,
            var(--mac-beige) 100%);
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
    box-shadow: var(--shadow-hard);
}

.monitor-base {
    width: 180px;
    height: 15px;
    background: linear-gradient(180deg,
            var(--mac-beige) 0%,
            var(--mac-dark-beige) 100%);
    border-radius: 0 0 5px 5px;
    box-shadow: var(--shadow-soft);
}

/* Windows Container */
.windows-container {
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    height: calc(100% - 24px);
    pointer-events: none;
}

.windows-container>* {
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .screen-container {
        width: 350px;
        height: 280px;
    }

    .monitor-bezel {
        padding: 15px 20px 30px 20px;
        border-radius: 15px 15px 8px 8px;
    }

    .monitor-stand {
        width: 50px;
        height: 40px;
    }

    .monitor-base {
        width: 120px;
        height: 10px;
    }
}