
/*
Element dump. Had this in html before I "modularized".
*/

@import url('core_styling.css');

/* "desktop" & icons */
#desktop {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.desktop-icon {
    width: 80px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
    border: 1px solid transparent;
}

.icon-img {
  width: 48px;
  height: 48px;
  background: transparent;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Folder tab (top flap) */
.icon-img::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 8px;
  width: 14px;
  height: 8px;
  background: linear-gradient(135deg, #9d46ff 0%, #7a2ecc 100%);
  border-radius: 2px 2px 0 0;
  border: 1px solid rgba(157, 70, 255, 0.6);
  border-bottom: none;
}

/* Folder body */
.icon-img::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 6px;
  width: 36px;
  height: 22px;
  background: linear-gradient(135deg, rgba(157, 70, 255, 0.3) 0%, rgba(157, 70, 255, 0.15) 100%);
  border: 1px solid rgba(157, 70, 255, 0.5);
  border-radius: 2px;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.desktop-icon:hover .icon-img::before {
  background: linear-gradient(135deg, #b366ff 0%, #9d46ff 100%);
  border-color: var(--accent);
}

.desktop-icon:hover .icon-img::after {
  background: linear-gradient(135deg, rgba(157, 70, 255, 0.4) 0%, rgba(157, 70, 255, 0.2) 100%);
  border-color: var(--accent);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 12px rgba(157, 70, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.icon-label {
    font-size: 13px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    color: var(--text);
}

/* program window styling */

.window {
    position: absolute;
    background: var(--panel-glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    min-width: 320px;
    min-height: 200px;
    top: 100px; left: 100px;
    width: 700px; height: 500px;
    transition: opacity 0.2s, transform 0.2s;
    overflow: hidden;
}

.window::before {
    /* Top accent line */
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5; pointer-events: none;
}

/* max window: whole "screen"*/
.window.maximized {
    top: 0 !important; left: 0 !important; right: 0 !important;
    width: 100% !important; height: calc(100% - 45px) !important;
    border-radius: 0; border: none;
}

.window.minimized {
    opacity: 0; transform: scale(0.95) translateY(30px); pointer-events: none;
}

/* window title*/
.title-bar {
    height: 36px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 12px;
    cursor: default;
}

.traffic-lights { display: flex; gap: 8px; margin-right: 15px; }
.win-btn { width: 12px; height: 12px; border-radius: 50%; border: none; cursor: pointer; transition: transform 0.1s;}
.win-btn:hover { transform: scale(1.1); }
.btn-close { background: #ff5f56; }
.btn-min { background: #ffbd2e; }
.btn-max { background: #27c93f; }

.window-title {
    flex-grow: 1; text-align: center; font-size: 13px; font-weight: 500;
    color: var(--muted); margin-right: 50px; font-family: var(--sans);
}

.window-body { flex-grow: 1; overflow: auto; position: relative; color: var(--text); }

/* --- TASKBAR --- */
#taskbar {
    height: 45px;
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(5, 1, 10, 0.7);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
    z-index: 9999;
}

/* --- pokemon sprites! ---  */

.pixel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap; /* Wraps if screen is small */
}

.pixel-sprite {
    width: 64px; 
    height: 64px; 
    image-rendering: pixelated; /* CRISP PIXELS */
    vertical-align: middle;
    /* Optional: Slight glow to match the text */
    filter: drop-shadow(0 0 4px rgba(224, 170, 255, 0.4)); 
    transition: transform 0.2s;
}

.pixel-sprite:hover {
    transform: scale(1.2); /* Pop effect on hover */
}

.inline-sprite {
    height: 32px; /* Adjust size to fit text flow */
    width: auto;
    vertical-align: middle; /* Aligns image center with text center */
    margin: 0 4px; /* Small spacing around the image */
    image-rendering: pixelated;; /* Crisp rendering */
    transition: transform 0.2s;
}

.inline-sprite:hover {
    transform: scale(1.5); /* Pop effect */
    z-index: 10;
    position: relative;
}

/* --- ANIMATED WEBSPRITES (Pokemon) --- */

/* bouncing animation */
@keyframes poke-bounce {
    from { background-position: 0 0; }
    to { background-position: 0 -32px; } /* Shifts view down by 32px (1 frame) */
}

/* bouncing class */
.bouncy-icon {
    width: 32px;          /* Width of one frame */
    height: 32px;         /* Height of one frame */
    display: inline-block;
    vertical-align: middle;
    
    /* render prio */
    image-rendering: pixelated; 
    
    /* Sprite image*/
    background-image: url('/assets/Ani249MS.png'); 
    background-repeat: no-repeat;
    
    /* Ensure the sprite sheet is sized correctly (32px width, 64px height) */
    background-size: 32px 64px; 
    
    /* anim: 0.5s speed, ping-pong effect */
    animation: poke-bounce 0.4s steps(1) infinite alternate;
    
    /* Interaction */
    cursor: pointer;
    transition: transform 0.2s;
}

.bouncy-icon:hover {
    transform: scale(1.2);
}


.task-item {
    padding: 6px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
    max-width: 160px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: flex; align-items: center; gap: 6px;
}

.task-item:hover { background: rgba(255,255,255,0.06); color: #fff; }

.task-item.active { 
    background: rgba(157, 70, 255, 0.1); 
    border-color: rgba(157, 70, 255, 0.3);
    color: #fff; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* --- EXPLORER STYLES --- */
.explorer-layout { display: flex; height: 100%; flex-direction: column; }

.explorer-nav {
    padding: 10px 15px; border-bottom: 1px solid var(--line);
    display: flex; gap: 12px; align-items: center; background: rgba(0,0,0,0.1);
}
.nav-btn { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 4px; cursor: pointer; padding: 2px 8px; transition: 0.2s; }
.nav-btn:hover { border-color: var(--accent); color: #fff; }

.path-bar {
    background: rgba(0,0,0,0.3); border: 1px solid var(--line); border-radius: 6px;
    padding: 6px 12px; font-size: 12px; flex-grow: 1; font-family: var(--mono); color: var(--muted);
}

.explorer-content { display: flex; flex-grow: 1; overflow: hidden; }

.sidebar {
    width: 160px; background: rgba(0,0,0,0.15); border-right: 1px solid var(--line);
    padding: 15px; display: flex; flex-direction: column; gap: 4px;
}
.sidebar-item {
    padding: 8px 12px; font-size: 13px; color: var(--muted); cursor: pointer; border-radius: 6px; transition: 0.2s;
}
.sidebar-item:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* Grid with SVG Icons */
.file-grid {
    flex-grow: 1; padding: 20px; display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    grid-auto-rows: 110px; gap: 10px;
}
.file-item {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    cursor: pointer; padding: 10px; border-radius: 8px; transition: 0.2s;
    border: 1px solid transparent;
}
.file-item:hover { background: rgba(255,255,255,0.03); border-color: var(--line); }

.file-icon {
    width: 42px; height: 42px; margin-bottom: 10px;
    color: var(--muted); transition: color 0.2s;
}
.file-item:hover .file-icon { color: var(--text); }
.file-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Icon Colors */
.file-icon.folder { color: var(--accent); fill: rgba(157, 70, 255, 0.1); }
.file-icon.exec { color: #facc15; }
.file-icon.code { color: #60a5fa; }

.file-name { font-size: 12px; color: var(--text); word-break: break-all; }

/* --- APP CONTENT --- */
.browser-tabs { display: flex; background: rgba(0,0,0,0.2); padding: 8px 8px 0 8px; gap: 4px; border-bottom: 1px solid var(--line); }
.tab {
    padding: 8px 16px; background: transparent; color: var(--muted); font-size: 12px;
    border-radius: 6px 6px 0 0; cursor: pointer; border: 1px solid transparent; border-bottom: none;
    font-family: var(--sans);
}
.tab:hover { color: #fff; background: rgba(255,255,255,0.02); }
.tab.active {
    background: var(--panel-glass); color: var(--accent); border: 1px solid var(--line); border-bottom: 1px solid var(--panel);
    margin-bottom: -1px; font-weight: 500;
}

.tab-content-container { padding: 30px; overflow-y: auto; height: calc(100% - 40px); }
.tab-pane { display: none; animation: fadeIn 0.3s ease; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Profile Styles */
.profile-header h1 { margin: 0; font-size: 28px; color: #fff; letter-spacing: -0.02em; }
.profile-meta { color: var(--accent); font-family: var(--mono); font-size: 12px; margin-top: 5px; display: block; }

.pill-container { margin: 25px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tech-pill {
    font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 4px;
    border: 1px solid var(--line); color: var(--muted); background: rgba(0,0,0,0.2); cursor: default;
}
.tech-pill:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

.social-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px;
    border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--text);
    font-size: 13px; text-decoration: none; margin-right: 10px; transition: 0.2s;
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 12px var(--accent-glow); }

.exp-item { margin-bottom: 25px; border-left: 2px solid var(--line); padding-left: 15px; }
.exp-title { font-weight: 600; color: #fff; font-size: 15px; }
.exp-date { font-family: var(--mono); font-size: 11px; color: var(--accent); margin-bottom: 5px; }
.exp-desc { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }

/* Pixel Mode with Pinkish-Purple Undertone */
.pixel-mode { 
    font-family: var(--pixel); 
    font-size: 18px; 
    line-height: 1.2;
    color: #e0aaff;  /* Soft Pinkish-Purple */
    text-shadow: 0 0 5px rgba(224, 170, 255, 0.6); 
}

.pixel-list {
display: flex;
flex-direction: column;
gap: 18px;   /* equal spacing between items */
}

/* Terminal */
.terminal { background: #05010a; padding: 20px; height: 100%; font-family: var(--mono); font-size: 13px; color: #ccc; }
.term-line { margin-bottom: 8px; }
.term-inline { color: var(--text); opacity: 0.82; }
.term-prompt { color: var(--accent); margin-right: 8px; }
.term-out { color: var(--text); display: block; margin-bottom: 15px; padding-left: 20px; opacity: 0.8; }
.blink { animation: blink 1s step-end infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
/* --- SKILL BAR STYLES (for terminal) --- */
.skill-category {
    margin-bottom: 15px;
}
.category-title {
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    font-size: 11px;
}

.skill-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-family: var(--mono);
    font-size: 12px;
}

.skill-label {
    width: 100px; /* Fixed width for alignment */
    color: var(--text);
    flex-shrink: 0;
}

.bar-track {
    flex-grow: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--line);
    margin: 0 10px;
    position: relative;
    max-width: 300px; /* Keep bars from getting too wide */
}

.bar-fill {
    height: 100%;
    background: var(--accent);
    /* Creates a "segmented" block look */
    background-image: linear-gradient(90deg, transparent 0%, transparent 50%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.5) 100%);
    background-size: 4px 100%; 
    box-shadow: 0 0 8px var(--accent-glow);
    display: block;
    animation: loadBar 1s ease-out forwards;
    width: 0; /* Starts at 0 for animation */
}

@keyframes loadBar {
from { width: 0; }
to { width: var(--level, 0%); }
}

/* Details / Projects */
details {
        background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 8px;
        margin-bottom: 12px; overflow: hidden; transition: 0.2s;
    }
details[open] { background: rgba(157, 70, 255, 0.05); border-color: var(--accent); }
summary {
    padding: 12px 16px; cursor: pointer; font-weight: 500; color: #fff;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
}
summary::after { content: '+'; color: var(--muted); font-family: var(--mono); }
details[open] summary::after { content: '-'; color: var(--accent); }
.details-content { padding: 0 16px 16px 16px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.action-link {
    display: inline-block; margin-top: 10px; color: var(--accent); font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; border-bottom: 1px dashed var(--accent);
}

.desktop-footer {
    position: absolute; bottom: 55px; width: 100%; text-align: center;
    color: var(--muted); opacity: 0.4; font-size: 11px; font-family: var(--mono); pointer-events: none;
}

