/* Reset & Variables */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Dark mode (default) - from old site */
    --bg: #18191a;
    --bg-secondary: #212529;
    --bg-window: #212529;
    --text: #e4e6eb;
    --text-secondary: #b0b3b8;
    --accent: #64ffda;
    --accent-secondary: #007bff;
    --border: #343a40;
    --window-header: #18191a;
    --close: #ff5f57;
    --minimize: #ffbd2e;
    --maximize: #28ca42;
    --shadow: rgba(0, 0, 0, 0.4);
}

body.light {
    /* Light mode - from old site */
    --bg: #eaedf0;
    --bg-secondary: #f8f9fa;
    --bg-window: #ffffff;
    --text: #343a40;
    --text-secondary: #6c757d;
    --accent: #007bff;
    --accent-secondary: #64ffda;
    --border: #dee2e6;
    --window-header: #f8f9fa;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Base */
html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.3s, color 0.3s;
}

/* Top Bar (macOS style) */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px;
    z-index: 9999;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

body.light .top-bar {
    background: rgba(255, 255, 255, 0.8);
    color: rgba(0, 0, 0, 0.85);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 13px;
    font-weight: 500;
}

/* Splash Screen */
.splash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
    transition: opacity 0.5s, visibility 0.5s;
}

.splash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.splash .greeting {
    color: var(--accent);
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 10px;
}

.splash h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 10px 0;
}

.splash .tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.splash .hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Desktop */
.desktop {
    height: 100vh;
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    position: relative;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 217, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(123, 44, 191, 0.05) 0%, transparent 50%);
    box-sizing: border-box;
}

/* Dock */
.dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.dock-items {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--shadow);
    backdrop-filter: blur(10px);
}

.dock-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-window);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text-secondary);
}

.dock-item svg {
    fill: var(--text-secondary);
    transition: fill 0.2s;
}

.dock-item:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 8px 20px var(--shadow);
    text-decoration: none;
    color: var(--accent);
}

.dock-item:hover svg {
    fill: var(--accent);
}

.dock-item.active {
    box-shadow: 0 4px 0 var(--accent);
}

.dock-item.dynamic {
    animation: dockSlideIn 0.2s ease-out;
}

@keyframes dockSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dock-item.dynamic .dock-icon-emoji {
    font-size: 1.2rem;
}

.dock-item.dynamic .dock-icon-emoji i {
    font-size: 1.2rem;
}

.dock-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
    margin: 0 4px;
}

/* Windows Container */
.windows-container {
    position: fixed;
    top: 28px;
    left: 0;
    right: 0;
    bottom: 80px;
    pointer-events: none;
    z-index: 100;
}

/* Window */
.window {
    position: absolute;
    min-width: 320px;
    max-width: 90vw;
    max-height: 80vh;
    background: var(--bg-window);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 60px var(--shadow);
    display: none;
    flex-direction: column;
    pointer-events: auto;
    overflow: hidden;
    resize: both;
}

.window.visible {
    display: flex;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    max-height: none;
    resize: none;
    border-radius: 0;
}

.window.minimized {
    transform: scale(0) !important;
    opacity: 0;
}

.window-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--window-header);
    border-bottom: 1px solid var(--border);
    cursor: grab;
    user-select: none;
}

.window-header:active {
    cursor: grabbing;
}

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

.window-controls button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.window-controls button:hover {
    opacity: 0.8;
}

.window-close { background: var(--close); }
.window-minimize { background: var(--minimize); }
.window-maximize { background: var(--maximize); }

.window-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.window-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* About Window */
.about-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.about-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.about-text p {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.about-text strong {
    color: var(--text);
}

/* Experience */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.exp-item {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.exp-header h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 4px;
}

.exp-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}

.exp-item ul {
    margin-top: 12px;
    padding-left: 20px;
}

.exp-item li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.exp-item strong {
    color: var(--accent);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.project-card {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform 0.2s, border-color 0.2s;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.project-header h4 {
    font-size: 1.1rem;
    color: var(--text);
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-links a {
    font-size: 0.85rem;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tags span {
    padding: 4px 10px;
    background: var(--bg-window);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

/* Skills */
.skills-section {
    margin-bottom: 24px;
}

.skills-section h4 {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skills-list span {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s, color 0.2s;
}

.skills-list span:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.skills-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.skills-section .courses {
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Contact */
.contact-content {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.contact-content > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact-content form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.contact-content input,
.contact-content textarea {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.contact-content input:focus,
.contact-content textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-content input::placeholder,
.contact-content textarea::placeholder {
    color: var(--text-secondary);
}

.btn {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn:hover {
    background: var(--accent);
    color: var(--bg);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-links a:hover {
    color: var(--accent);
}

/* Scrollbar */
.window-content::-webkit-scrollbar {
    width: 8px;
}

.window-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.window-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.window-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .dock-items {
        gap: 4px;
        padding: 8px 12px;
    }
    
    .dock-item {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .dock-divider {
        display: none;
    }
    
    .window {
        width: calc(100% - 20px) !important;
        left: 10px !important;
        max-width: none;
    }
    
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .exp-header {
        flex-direction: column;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
}

/* ==================== DESKTOP ICONS ==================== */
.desktop-icons {
    position: absolute;
    top: 36px;
    left: 0;
    right: 0;
    bottom: 80px;
    z-index: 50;
    pointer-events: none;
}

.desktop-icon {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    width: 90px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    text-decoration: none;
    color: var(--text);
    pointer-events: auto;
    user-select: none;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.desktop-icon.selected {
    background: rgba(100, 255, 218, 0.15);
    border-color: var(--accent);
}

.desktop-icon.dragging {
    opacity: 0.8;
    transform: scale(1.05);
    z-index: 1000;
}

.desktop-icon:focus {
    outline: none;
}

.desktop-icon .icon {
    font-size: 2rem;
    line-height: 1;
    pointer-events: none;
}

.desktop-icon .icon i {
    font-size: 2rem;
}

.desktop-icon .icon .fa-chrome {
    color: #4285F4;
}

.desktop-icon .icon .fa-firefox-browser {
    color: #FF7139;
}

.desktop-icon .icon .fa-safari {
    color: #006CFF;
}

.desktop-icon .icon .fa-edge {
    color: #0078D7;
}

.desktop-icon .label {
    font-size: 0.7rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

body.light .desktop-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light .desktop-icon.selected {
    background: rgba(0, 123, 255, 0.15);
    border-color: var(--accent);
}

body.light .desktop-icon .label {
    text-shadow: none;
}

/* Selection Box */
.selection-box {
    position: fixed;
    border: 1px solid var(--accent);
    background: rgba(100, 255, 218, 0.1);
    pointer-events: none;
    z-index: 9998;
    display: none;
}

.selection-box.active {
    display: block;
}

body.light .selection-box {
    background: rgba(0, 123, 255, 0.1);
}

/* ==================== WINDOW ACTIONS (Download btn etc) ==================== */
.window-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.window-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.window-action-btn:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    text-decoration: none;
}

.window-action-btn svg {
    width: 16px;
    height: 16px;
}

/* ==================== PDF VIEWER ==================== */
.pdf-content {
    padding: 0;
}

.pdf-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 500px;
}

/* ==================== BLOG STYLES ==================== */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-card {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.blog-card:hover {
    border-color: var(--accent);
}

.blog-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.blog-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 4px;
}

.blog-tag.outdated {
    background: #dc3545;
    color: #fff;
}

.blog-card h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 8px;
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Blog Post Content */
.blog-post {
    max-width: 700px;
    margin: 0 auto;
}

.blog-post article h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text);
}

.blog-post article h3 {
    font-size: 1.3rem;
    margin: 24px 0 12px;
    color: var(--text);
}

.blog-post article p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.blog-post article ul {
    margin: 16px 0;
    padding-left: 24px;
}

.blog-post article li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.blog-post article pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    overflow-x: auto;
}

.blog-post article code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent);
}

.blog-post article em {
    color: var(--text-secondary);
    font-style: italic;
}

/* ==================== GAME STYLES ==================== */
.game-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 0.9rem;
}

.game-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Snake Canvas */
#snake-canvas {
    border: 2px solid var(--border);
    border-radius: 8px;
    max-width: 100%;
}

/* Minesweeper Grid */
.minesweeper-grid {
    display: grid;
    gap: 2px;
    background: var(--border);
    border: 2px solid var(--border);
    border-radius: 4px;
    padding: 2px;
}

.mine-cell {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: none;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.1s;
}

.mine-cell:hover:not(.revealed) {
    background: var(--bg-window);
}

.mine-cell.revealed {
    background: var(--bg-window);
    cursor: default;
}

.mine-cell.mine {
    background: #ff6b6b;
}

.mine-cell.flagged {
    background: var(--bg-secondary);
}

/* ==================== RACCOON STYLES ==================== */
.raccoon-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    min-height: 400px;
}

.raccoon-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    object-fit: contain;
}

/* ==================== CREATURE STYLES ==================== */
.creature-content {
    padding: 0;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.creature-content iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    transform: scale(1.5);
    transform-origin: center center;
}

/* ==================== NOTEPAD STYLES ==================== */
.notepad-content {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100%;
    min-height: 300px;
}

.notepad-content textarea {
    flex: 1;
    width: 100%;
    min-height: 250px;
    padding: 16px;
    border: none;
    background: var(--bg-window);
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: none;
    outline: none;
}

.notepad-content textarea::placeholder {
    color: var(--text-secondary);
}

.notepad-status {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--window-header);
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

#notepad-status {
    color: var(--accent);
}

/* ==================== SOCIAL WINDOW STYLES ==================== */
.social-content {
    padding: 0;
    height: 100%;
    min-height: 400px;
}

.social-content iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

.social-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    padding: 32px;
    text-align: center;
}

.social-fallback .social-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.social-fallback .social-icon .fa-github {
    color: #fff;
}

.social-fallback .social-icon .fa-linkedin {
    color: #0a66c2;
}

body.light .social-fallback .social-icon .fa-github {
    color: #24292f;
}

.social-fallback h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text);
}

.social-fallback p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 300px;
}

/* ==================== BROWSER STYLES ==================== */
.browser-content {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100%;
}

.browser-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.browser-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.15s, color 0.15s;
}

.browser-btn:hover {
    background: var(--border);
    color: var(--text);
}

.browser-btn:active {
    background: var(--accent);
    color: var(--bg);
}

.browser-url-bar {
    flex: 1;
    display: flex;
}

.browser-url-bar input {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-window);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.browser-url-bar input:focus {
    border-color: var(--accent);
}

.browser-url-bar input::placeholder {
    color: var(--text-secondary);
}

.browser-viewport {
    flex: 1;
    position: relative;
    background: #fff;
    min-height: 400px;
}

.browser-viewport iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.browser-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-window);
    color: var(--text);
    text-align: center;
    padding: 40px;
}

.browser-error h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.browser-error p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.browser-error code {
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent);
}

/* ==================== TRASH STYLES ==================== */
.trash-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trash-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.trash-item span:first-child {
    font-size: 1.2rem;
}

.trash-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* ==================== RESPONSIVE UPDATES ==================== */
@media (max-width: 768px) {
    .desktop-icon {
        padding: 8px 4px;
        width: 80px;
    }
    
    .desktop-icon .icon {
        font-size: 1.6rem;
    }
    
    .desktop-icon .label {
        font-size: 0.65rem;
    }
    
    #snake-canvas {
        width: 300px;
        height: 300px;
    }
    
    .mine-cell {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}
