:root {
  /* === MILKPUP TUMBLR COLOR VARIABLES === */
  --bg: #0c0c0c;
  --surface: rgba(18,18,18,0.85);
  --text: #e0e0d8;
  --accent: #f4f4ee;
  --muted: #9c9c9c;
  --border: rgba(255,255,255,0.12);
  --shadow: rgba(0, 0, 0, 0.75);
  --glow: rgba(244,244,238,0.25);
}

/* === BASE RESET === */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  overflow: hidden;
}

/* === ICON GLOW === */
svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  filter: drop-shadow(0 0 8px var(--glow));
}

/* === FAVICON STYLES + ANIMATION === */
.favicon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}
.favicon.loading { animation: pulse 1.4s ease-in-out infinite; }
.favicon.spin {
  background: none;
  border: 2px solid transparent;
  border-top: 2px solid var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .3; }
  50%       { opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === DESKTOP LAYOUT === */
#desktop {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 56px);
  gap: 24px;
  padding: 22px;
}
#content { overflow-y: auto; }

/* === BROWSER WINDOW === */
.browser-window {
  background: var(--surface);
  border-radius: 12px;
  overflow:hidden;
  box-shadow:
    0 0 0 1px var(--border),
    0 10px 30px var(--shadow),
    0 0 24px var(--glow);
  margin-bottom: 28px;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap:10px;
  padding: 8px 14px;
  
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid var(--border);
  font-size:11px;
}

.browser-content {
  padding: 18px;
  font-size: 14px;
  line-height: 1.6;
}

.browser-window:hover {
  box-shadow:
    0 0 0 1px var(--border),
    0 14px 38px var(--shadow),
    0 0 28px var(--glow);
}


.window-controls {
  display: flex;
  gap: 6px;
}

.window-controls .dot {
  width: 10px; 
  height: 10px; 
  border-radius: 50%;
  opacity: 0.9;
  margin-right: 6px;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.url-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  
  padding: 4px 10px;
  border-radius: 999px;
  
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  
  flex: 1;
  
  margin-left: 12px;
  font-size: 11px;
  opacity: .6;
}

.url-text {
  font-size: 11px;
  opacity: 0.65;
}


/* === TYPOGRAPHY STYLES === */
.title {
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.upper {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .7;
}

/* === NAV LINKS === */
.side-nav a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  gap: 8px;
  opacity: .75;
  margin: 10px 0;
}
.side-nav a:hover { opacity: 1; }

/* === TAG PILLS === */
.tags {
  margin: 12px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(28,28,28,0.6);
  opacity: .7;
}
.tag:hover { opacity: 1; }

/* === TASKBAR === */
#taskbar {
  height: 56px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 14px;
}
#menu-button {
  background: none;
  border: none;
  color: var(--text);
  opacity: .7;
  cursor: pointer;
}
#menu-button:hover { opacity: 1; }

/* === POPUP START MENU (BOTTOM LEFT) === */
#popup-menu {
  position: fixed;
  left: 18px;
  bottom: -100%;
  width: 300px;
  padding: 16px;
  background: var(--surface);
  border-radius: 12px 12px 0 0;
  box-shadow:
    0 0 0 1px var(--border),
    0 0 12px var(--shadow),
    0 0 12px var(--glow);
  transition: .35s;
}
#popup-menu.active { bottom: 66px; }

#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.48);
  opacity: 0;
  pointer-events: none;
  transition: .3s;
}
#menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
