@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

.pixelated {
    font-family: 'VT323', 'MS Sans Serif', monospace;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.win98-button {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 2px 6px;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    cursor: pointer;
    user-select: none;
}

.win98-button:hover {
    background: #d4d0c8;
}

.win98-button:active {
    border: 2px inset #c0c0c0;
    background: #b8b4ac;
}

.win98-inset {
    border: 1px inset #c0c0c0;
    background: #f0f0f0;
}

.text-shadow {
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

/* Animations */
@keyframes scroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.2s ease-out;
}

/* CRT effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.02) 2px,
        rgba(0, 255, 0, 0.02) 4px
    );
    pointer-events: none;
    z-index: 1000;
}

/* Classic Windows 98 scrollbar */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
}

::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

::-webkit-scrollbar-button {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    height: 16px;
}

::-webkit-scrollbar-button:hover {
    background: #a0a0a0;
}

/* Window chrome styling */
.window-chrome {
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 0.5),
        inset -1px -1px 0 rgba(0, 0, 0, 0.25),
        2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Classic input styling */
input, textarea {
    border: 1px inset #c0c0c0 !important;
    background: white;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    padding: 2px;
}

input:focus, textarea:focus {
    outline: 1px dotted #000;
    outline-offset: -2px;
    background: #ffffff;
}

/* Button hover effects */
button:hover {
    filter: brightness(1.05);
}

button:active {
    filter: brightness(0.95);
}

/* Menu styling */
.menu-item {
    transition: background-color 0.1s ease;
}

/* Taskbar styling */
.taskbar {
    backdrop-filter: none;
    background: linear-gradient(to bottom, #c6c6c6, #c0c0c0);
    border-top: 1px solid #dfdfdf;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Desktop icon effects */
.desktop-icon {
    transition: background-color 0.2s ease;
}

.desktop-icon:hover {
    background: rgba(0, 0, 255, 0.2);
    border-radius: 2px;
}

/* System tray effects */
.system-tray-item {
    transition: background-color 0.1s ease;
    padding: 2px;
    border-radius: 2px;
}

.system-tray-item:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Canvas styling for paint */
canvas {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Solitaire card styling */
.solitaire-card {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.solitaire-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Timeline event styling */
.timeline-event {
    transition: background-color 0.2s ease;
}

.timeline-event:hover {
    background: #f0f0f0;
    border-radius: 4px;
}

/* Retro cursor */
* {
    cursor: default;
}

button, .cursor-pointer, a, [onclick] {
    cursor: pointer;
}

input, textarea {
    cursor: text;
}

.cursor-move {
    cursor: move;
}

.cursor-crosshair {
    cursor: crosshair;
}

/* No selection on UI elements */
.win98-button, .taskbar, .desktop-icon, .menu-item {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .desktop-icon {
        width: 60px;
    }
    
    .desktop-icon .text-xs {
        font-size: 10px;
    }
    
    .taskbar {
        height: 40px;
    }
    
    .win98-button {
        padding: 4px 8px;
        font-size: 12px;
    }
}