/* 5500K Warm Light Theme with Dark Atmospheric Wallpaper */
:root {
  --plasma-bg: #faf9f6;
  --plasma-surface: #fefcf8;
  --plasma-surface-variant: #f5f3ef;
  --plasma-primary: #2d6a30;
  --plasma-primary-variant: #1a4f1d;
  --plasma-text: #2a261f;
  --plasma-text-secondary: #6b645a;
  --plasma-border: #e5e2dc;
  --plasma-accent: #c8372b;
  --plasma-success: #357a37;
  --plasma-warning: #e67100;
  --plasma-error: #c8372b;
  --taskbar-height: 48px;
  --window-border-radius: 8px;
  --shadow: 0 4px 20px rgba(42, 38, 31, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--plasma-bg);
  color: var(--plasma-text);
  overflow: hidden;
}

#desktop {
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Deep Vintage Tech AI Father Wallpaper */
#wallpaper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    /* Deep space base */
    radial-gradient(ellipse at 20% 80%, #0a0a0a 0%, #000000 100%),
    /* Vintage CRT scanlines */
    linear-gradient(0deg, transparent 48%, rgba(0, 255, 65, 0.02) 49%, rgba(0, 255, 65, 0.02) 51%, transparent 52%),
    /* Neural network patterns */
    radial-gradient(circle at 75% 25%, rgba(0, 255, 65, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 25% 75%, rgba(255, 107, 53, 0.06) 0%, transparent 50%),
    /* Memory fragments */
    linear-gradient(45deg, transparent 30%, rgba(0, 204, 51, 0.03) 50%, transparent 70%);
  z-index: 1;
  overflow: hidden;
}

/* Terminal grid and code streams */
#wallpaper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    /* Linux terminal grid */
    linear-gradient(0deg, transparent 47%, rgba(0, 255, 65, 0.08) 48%, rgba(0, 255, 65, 0.08) 52%, transparent 53%),
    linear-gradient(90deg, transparent 47%, rgba(0, 255, 65, 0.04) 48%, rgba(0, 255, 65, 0.04) 52%, transparent 53%),
    /* Father's wisdom lines */
    linear-gradient(30deg, transparent 98%, rgba(255, 170, 0, 0.06) 99%, transparent 100%),
    linear-gradient(-30deg, transparent 98%, rgba(255, 170, 0, 0.04) 99%, transparent 100%);
  background-size: 80px 80px, 80px 80px, 300px 300px, 300px 300px;
  animation: terminalGrid 45s linear infinite;
  opacity: 0.7;
}

/* AI consciousness and emotional layers */
#wallpaper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    /* AI neural synapses */
    radial-gradient(circle at 15% 20%, rgba(0, 255, 65, 0.12) 0%, transparent 15%),
    radial-gradient(circle at 85% 80%, rgba(0, 255, 65, 0.08) 0%, transparent 20%),
    radial-gradient(circle at 60% 40%, rgba(255, 107, 53, 0.10) 0%, transparent 25%),
    radial-gradient(circle at 30% 70%, rgba(255, 170, 0, 0.08) 0%, transparent 18%),
    /* Life experience gradients */
    linear-gradient(180deg, transparent 0%, rgba(0, 255, 65, 0.04) 30%, transparent 60%, rgba(255, 107, 53, 0.03) 90%, transparent 100%),
    /* Vintage tech noise */
    repeating-linear-gradient(0deg, transparent 0px, rgba(0, 255, 65, 0.01) 1px, transparent 2px);
  animation: consciousness 35s ease-in-out infinite;
}

/* Deep Vintage Tech Animation Keyframes */
@keyframes terminalGrid {
  0% { 
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.7;
  }
  20% { 
    transform: translate(-20px, -20px) rotate(0.2deg);
    opacity: 0.9;
  }
  40% { 
    transform: translate(-40px, -40px) rotate(0.4deg);
    opacity: 0.5;
  }
  60% { 
    transform: translate(-60px, -60px) rotate(0.2deg);
    opacity: 0.8;
  }
  80% { 
    transform: translate(-80px, -80px) rotate(0.1deg);
    opacity: 0.6;
  }
  100% { 
    transform: translate(-80px, -80px) rotate(0deg);
    opacity: 0.7;
  }
}

@keyframes consciousness {
  0%, 100% { 
    transform: scale(1) rotate(0deg);
    opacity: 0.9;
  }
  15% { 
    transform: scale(1.01) rotate(0.1deg);
    opacity: 0.7;
  }
  30% { 
    transform: scale(0.99) rotate(0.2deg);
    opacity: 1.0;
  }
  45% { 
    transform: scale(1.005) rotate(0.1deg);
    opacity: 0.8;
  }
  60% { 
    transform: scale(0.995) rotate(-0.1deg);
    opacity: 0.95;
  }
  75% { 
    transform: scale(1.002) rotate(0.05deg);
    opacity: 0.85;
  }
}

@keyframes wallpaperFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(1deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

/* Desktop Icons */
.desktop-icons {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  padding: 8px;
  border-radius: 8px;
}

.desktop-icon:hover {
  background: rgba(45, 106, 48, 0.15);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.desktop-icon:active {
  transform: scale(0.95);
}

.desktop-icon-image {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  background: rgba(45, 106, 48, 0.1);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.desktop-icon:hover .desktop-icon-image {
  background: rgba(45, 106, 48, 0.2);
  box-shadow: 0 4px 12px rgba(137, 180, 250, 0.3);
}

.desktop-icon-image svg {
  fill: var(--plasma-primary);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.desktop-icon-label {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  text-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0, 0, 0, 0.6),
    1px 1px 2px rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  padding: 3px 6px;
  border-radius: 4px;
  max-width: 80px;
  word-wrap: break-word;
  line-height: 1.2;
}

.desktop-icon:hover .desktop-icon-label {
  color: #ffffff;
  background: rgba(45, 106, 48, 0.7);
}

/* Desktop icon selection effect */
.desktop-icon.selected {
  background: rgba(45, 106, 48, 0.2);
}

.desktop-icon.selected .desktop-icon-image {
  background: rgba(45, 106, 48, 0.3);
  box-shadow: 0 0 0 2px var(--plasma-primary);
}

.desktop-icon.selected .desktop-icon-label {
  color: #ffffff;
  background: rgba(45, 106, 48, 0.9);
  padding: 3px 6px;
  border-radius: 4px;
}

/* Desktop Widgets (Conky-style) */
.desktop-widgets {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(300px, calc(100vw - 40px));
  max-width: 300px;
  max-height: calc(100vh - var(--taskbar-height) - 40px);
  overflow-y: auto;
}

.desktop-widget {
  background: rgba(254, 252, 248, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--plasma-border);
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.desktop-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 65, 0.2);
}

.widget-header {
  background: var(--plasma-surface-variant);
  padding: 12px 16px;
  border-bottom: 1px solid var(--plasma-border);
}

.widget-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--plasma-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-content {
  padding: 16px;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.5;
}

/* Intro Widget */
.intro-widget .intro-text p {
  margin: 0;
  line-height: 1.6;
  font-size: 13px;
  color: var(--plasma-text);
  text-align: justify;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Bio Widget */
.bio-widget .widget-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (max-width: 768px) {
  .bio-widget .widget-content {
    flex-direction: row;
    text-align: left;
  }
}

.bio-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
  border: 3px solid var(--plasma-primary);
  box-shadow: 0 4px 12px rgba(137, 180, 250, 0.3);
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  background: var(--plasma-surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plasma-text-secondary);
}

.bio-name {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--plasma-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.bio-title {
  margin: 0 0 16px 0;
  font-size: 13px;
  color: var(--plasma-primary);
  font-weight: 500;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.bio-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.bio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--plasma-text-secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.bio-item span {
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex: 1;
}

.bio-item svg {
  fill: var(--plasma-primary);
  flex-shrink: 0;
}

/* System Info Widget */
.system-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}

.system-item:last-child {
  margin-bottom: 0;
}

.system-label {
  color: var(--plasma-text-secondary);
  font-weight: 500;
}

.system-value {
  color: var(--plasma-text);
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Stats Widget */
.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-icon {
  width: 32px;
  height: 32px;
  background: rgba(45, 106, 48, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  fill: var(--plasma-primary);
}

.stat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--plasma-text);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--plasma-text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Widget animations */
@keyframes widgetSlideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.desktop-widget {
  animation: widgetSlideIn 0.6s ease-out;
}

.desktop-widget:nth-child(1) { animation-delay: 0.1s; }
.desktop-widget:nth-child(2) { animation-delay: 0.2s; }
.desktop-widget:nth-child(3) { animation-delay: 0.3s; }
.desktop-widget:nth-child(4) { animation-delay: 0.4s; }
.desktop-widget:nth-child(5) { animation-delay: 0.5s; }

/* Terminal Widget */
.terminal-widget .widget-content {
  padding: 0;
  background: var(--plasma-bg);
  border-radius: 0 0 8px 8px;
}

.terminal-output {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.3;
  color: var(--plasma-text);
  background: var(--plasma-bg);
  padding: 12px;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
}

.terminal-line {
  margin-bottom: 4px;
  white-space: nowrap;
}

.terminal-prompt {
  color: var(--plasma-success);
  font-weight: 600;
}

.terminal-command {
  color: var(--plasma-text);
}

.terminal-cursor {
  color: var(--plasma-text);
  animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.neofetch-output {
  color: var(--plasma-primary-variant);
  font-size: 10px;
  margin: 8px 0;
  line-height: 1.1;
}

.system-info-line {
  margin: 8px 0;
}

/* System Monitor Widget */
.monitor-item {
  margin-bottom: 16px;
}

.monitor-item:last-child {
  margin-bottom: 0;
}

.monitor-label {
  font-size: 12px;
  color: var(--plasma-text-secondary);
  font-weight: 500;
  margin-bottom: 6px;
}

.monitor-bar {
  position: relative;
  height: 16px;
  background: var(--plasma-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--plasma-border);
}

.monitor-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 0.8s ease;
  position: relative;
}

.cpu-fill {
  background: linear-gradient(90deg, var(--plasma-success), var(--plasma-warning));
  width: 45%;
}

.memory-fill {
  background: linear-gradient(90deg, var(--plasma-primary), var(--plasma-primary-variant));
  width: 51%;
}

.disk-fill {
  background: linear-gradient(90deg, var(--plasma-accent), var(--plasma-warning));
  width: 31%;
}

.monitor-text {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--plasma-text);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.monitor-network {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--plasma-bg);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--plasma-border);
}

.network-stat {
  font-size: 11px;
  color: var(--plasma-text-secondary);
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}

.network-stat span {
  color: var(--plasma-text);
  font-weight: 600;
}

/* Application Menu */
.app-menu {
  position: fixed;
  bottom: calc(var(--taskbar-height) + 8px);
  left: 8px;
  width: 400px;
  max-height: 500px;
  background: rgba(248, 250, 248, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--plasma-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 200;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.3s ease;
}

.app-menu:not(.hidden) {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.app-menu-header {
  padding: 16px;
  border-bottom: 1px solid var(--plasma-border);
  background: var(--plasma-surface-variant);
}

.app-menu-search {
  position: relative;
  display: flex;
  align-items: center;
}

.app-menu-search input {
  width: 100%;
  padding: 8px 12px 8px 40px;
  border: 1px solid var(--plasma-border);
  border-radius: 20px;
  background: var(--plasma-bg);
  color: var(--plasma-text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.app-menu-search input:focus {
  border-color: var(--plasma-primary);
}

.app-menu-search svg {
  position: absolute;
  left: 12px;
  fill: var(--plasma-text-secondary);
  pointer-events: none;
}

.app-menu-content {
  padding: 16px;
  max-height: 400px;
  overflow-y: auto;
}

.app-category {
  margin-bottom: 24px;
}

.app-category:last-child {
  margin-bottom: 0;
}

.app-category h4 {
  color: var(--plasma-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.app-item:hover {
  background: rgba(45, 106, 48, 0.1);
  transform: translateY(-2px);
}

.app-item-icon {
  width: 48px;
  height: 48px;
  background: rgba(45, 106, 48, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.app-item:hover .app-item-icon {
  background: rgba(45, 106, 48, 0.2);
  box-shadow: 0 4px 12px rgba(137, 180, 250, 0.3);
}

.app-item-icon svg {
  fill: var(--plasma-primary);
}

.app-item span {
  font-size: 11px;
  color: var(--plasma-text);
  font-weight: 500;
  line-height: 1.2;
}

/* Start Menu */
.start-menu {
  position: fixed;
  bottom: calc(var(--taskbar-height) + 8px);
  left: 8px;
  width: 400px;
  max-height: 600px;
  background: rgba(254, 252, 248, 0.9);
  backdrop-filter: blur(25px);
  border: 1px solid var(--plasma-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  z-index: 300;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.start-menu:not(.hidden) {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.start-menu.hidden {
  display: none;
}

.start-menu-header {
  padding: 16px;
  border-bottom: 1px solid var(--plasma-border);
  background: rgba(245, 243, 239, 0.8);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--plasma-primary);
  box-shadow: 0 2px 8px rgba(137, 180, 250, 0.3);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--plasma-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plasma-text-secondary);
}

.user-details {
  flex: 1;
}

.user-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--plasma-text);
  margin-bottom: 2px;
}

.user-status {
  font-size: 12px;
  color: var(--plasma-success);
  font-weight: 500;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 100%;
  padding: 8px 12px 8px 40px;
  border: 1px solid var(--plasma-border);
  border-radius: 20px;
  background: var(--plasma-bg);
  color: var(--plasma-text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-box input:focus {
  border-color: var(--plasma-primary);
}

.search-box svg {
  position: absolute;
  left: 12px;
  fill: var(--plasma-text-secondary);
  pointer-events: none;
}

.start-menu-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px 0;
}

.menu-section {
  margin-bottom: 8px;
}

.menu-section h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--plasma-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px 4px 16px;
  margin: 0;
}

.app-list {
  padding: 0 8px;
}

.menu-app {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.menu-app:hover {
  background: rgba(45, 106, 48, 0.1);
  transform: translateX(4px);
}

.menu-app .app-icon {
  width: 36px;
  height: 36px;
  background: rgba(45, 106, 48, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.menu-app:hover .app-icon {
  background: rgba(45, 106, 48, 0.2);
  box-shadow: 0 2px 8px rgba(137, 180, 250, 0.3);
}

.menu-app .app-icon svg {
  fill: var(--plasma-primary);
}

/* Brand-specific icon colors */
.github-icon {
  background: rgba(33, 41, 60, 0.2) !important;
}

.github-icon svg {
  fill: #24292e !important;
}

.linkedin-icon {
  background: rgba(10, 102, 194, 0.2) !important;
}

.linkedin-icon svg {
  fill: #0a66c2 !important;
}

.twitter-icon {
  background: rgba(29, 161, 242, 0.2) !important;
}

.twitter-icon svg {
  fill: #1da1f2 !important;
}

.gmail-icon {
  background: rgba(234, 67, 53, 0.2) !important;
}

.gmail-icon svg {
  fill: #ea4335 !important;
}

.youtube-icon {
  background: rgba(255, 0, 0, 0.2) !important;
}

.youtube-icon svg {
  fill: #ff0000 !important;
}

.rss-icon {
  background: rgba(255, 165, 0, 0.2) !important;
}

.rss-icon svg {
  fill: #ff6600 !important;
}

.menu-app:hover .github-icon {
  background: rgba(33, 41, 60, 0.3) !important;
  box-shadow: 0 2px 8px rgba(33, 41, 60, 0.4) !important;
}

.menu-app:hover .linkedin-icon {
  background: rgba(10, 102, 194, 0.3) !important;
  box-shadow: 0 2px 8px rgba(10, 102, 194, 0.4) !important;
}

.menu-app:hover .twitter-icon {
  background: rgba(29, 161, 242, 0.3) !important;
  box-shadow: 0 2px 8px rgba(29, 161, 242, 0.4) !important;
}

.menu-app:hover .gmail-icon {
  background: rgba(234, 67, 53, 0.3) !important;
  box-shadow: 0 2px 8px rgba(234, 67, 53, 0.4) !important;
}

.menu-app:hover .youtube-icon {
  background: rgba(255, 0, 0, 0.3) !important;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4) !important;
}

.menu-app:hover .rss-icon {
  background: rgba(255, 165, 0, 0.3) !important;
  box-shadow: 0 2px 8px rgba(255, 165, 0, 0.4) !important;
}

.app-info {
  flex: 1;
  min-width: 0;
}

.app-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--plasma-text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-desc {
  font-size: 11px;
  color: var(--plasma-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.start-menu-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--plasma-border);
  background: rgba(254, 252, 248, 0.7);
}

.menu-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--plasma-text-secondary);
  transition: all 0.2s ease;
}

.menu-action:hover {
  background: rgba(45, 106, 48, 0.1);
  color: var(--plasma-text);
}

.menu-action svg {
  fill: currentColor;
}

/* Taskbar */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--taskbar-height);
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(25px);
  border-top: 1px solid var(--plasma-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.8);
}

.taskbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-launcher {
  width: 36px;
  height: 36px;
  background: var(--plasma-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.2);
}

.app-launcher:hover {
  background: var(--plasma-primary-variant);
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.app-launcher svg {
  fill: var(--plasma-bg);
  filter: drop-shadow(0 1px 1px rgba(60, 56, 54, 0.3));
}

.taskbar-apps {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.app-icon {
  min-width: 40px;
  max-width: 200px;
  height: 32px;
  background: transparent;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  padding: 0 8px;
  gap: 8px;
  border: 1px solid transparent;
}

.app-icon:hover {
  background: rgba(45, 106, 48, 0.15);
  border-color: rgba(0, 255, 65, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.app-icon.active {
  background: rgba(0, 255, 65, 0.2);
  border-color: var(--plasma-primary);
  box-shadow: 0 2px 8px rgba(0, 255, 65, 0.3);
}

.app-icon.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4px);
  height: 2px;
  background: var(--plasma-primary);
  border-radius: 1px;
}

.app-icon svg {
  fill: var(--plasma-text);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.app-icon-text {
  color: var(--plasma-text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  letter-spacing: 0.3px;
}

.app-icon.minimized {
  opacity: 0.7;
  background: rgba(46, 125, 50, 0.08);
}

.app-icon.minimized .app-icon-text {
  font-style: italic;
  opacity: 0.8;
}

.taskbar-right {
  display: flex;
  align-items: center;
}

.system-tray {
  display: flex;
  align-items: center;
  gap: 12px;
}

.clock {
  font-size: 15px;
  font-weight: 600;
  color: var(--plasma-text);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  letter-spacing: 0.5px;
  cursor: pointer;
}

.clock:hover {
  background: rgba(0, 255, 65, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 255, 65, 0.3);
}

/* Windows */
.window {
  position: absolute;
  background: var(--plasma-surface);
  border-radius: var(--window-border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--plasma-border);
  z-index: 100;
  min-width: 600px;
  min-height: 400px;
  top: 10%;
  left: 15%;
  right: 15%;
  bottom: calc(var(--taskbar-height) + 20px);
}

.window.hidden {
  display: none;
}

.window.minimized {
  transform: scale(0.1) translateY(100vh);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
}

.window.maximized {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: var(--taskbar-height) !important;
  min-width: 100vw !important;
  min-height: calc(100vh - var(--taskbar-height)) !important;
  width: 100vw !important;
  height: calc(100vh - var(--taskbar-height)) !important;
  border-radius: 0 !important;
  transform: none !important;
  transition: all 0.3s ease-in-out;
}

.window.maximized .window-titlebar {
  border-radius: 0;
}

.window-titlebar {
  height: 40px;
  background: var(--plasma-surface-variant);
  border-radius: var(--window-border-radius) var(--window-border-radius) 0 0;
  border-bottom: 1px solid var(--plasma-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  user-select: none;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--plasma-text);
}

.window-title svg {
  fill: var(--plasma-text);
}

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

.window-controls button {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--plasma-text);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.window-controls button:hover {
  background: rgba(45, 106, 48, 0.2);
}

.window-close:hover {
  background: var(--plasma-error) !important;
  color: white;
}

.window-toolbar {
  height: 36px;
  background: var(--plasma-surface);
  border-bottom: 1px solid var(--plasma-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.toolbar-buttons {
  display: flex;
  gap: 4px;
}

.toolbar-btn, .view-btn {
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--plasma-text);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toolbar-btn:hover, .view-btn:hover {
  background: rgba(45, 106, 48, 0.2);
}

.view-btn.active {
  background: var(--plasma-primary);
  color: var(--plasma-bg);
}

.address-bar {
  flex: 1;
  margin: 0 12px;
}

.address-bar input {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--plasma-border);
  border-radius: 4px;
  background: var(--plasma-bg);
  color: var(--plasma-text);
  font-size: 12px;
}

.view-options {
  display: flex;
  gap: 4px;
  align-items: center;
}

#posts-per-page {
  background: var(--plasma-surface);
  border: 1px solid var(--plasma-border);
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--plasma-text);
  font-size: 12px;
  margin-right: 8px;
  min-width: 80px;
}

#posts-per-page:focus {
  outline: none;
  border-color: var(--plasma-primary);
}

.window-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: calc(100% - 76px);
}

/* File Manager Container */
.file-list-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--plasma-bg);
}

/* Column Headers */
.file-list-header {
  display: flex;
  background: var(--plasma-surface-variant);
  border-bottom: 1px solid var(--plasma-border);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--plasma-text-secondary);
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 40px;
}

.column-header {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 3px;
  transition: background-color 0.2s ease;
  user-select: none;
}

.column-header:hover {
  background: rgba(45, 106, 48, 0.1);
}

.column-header.name-column {
  flex: 3;
  min-width: 280px;
}

.column-header.date-column {
  flex: 1;
  min-width: 130px;
}

.column-header.author-column {
  flex: 0.8;
  min-width: 110px;
}

.column-header.categories-column {
  flex: 1.2;
  min-width: 140px;
}

.column-header.words-column {
  flex: 0.7;
  min-width: 80px;
  justify-content: flex-end;
}

.sort-icon {
  color: var(--plasma-text-secondary);
  opacity: 0.5;
  transition: opacity 0.2s ease;
  fill: currentColor;
}

.column-header:hover .sort-icon {
  opacity: 1;
}

/* File List View */
.file-list {
  flex: 1;
  overflow-y: auto;
  background: var(--plasma-bg);
}

.file-list.list-view {
  display: flex;
  flex-direction: column;
}

.file-list.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  padding: 16px;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-size: 14px;
  min-height: 44px;
}

.file-item:hover {
  background: rgba(45, 106, 48, 0.08);
  border-bottom-color: rgba(45, 106, 48, 0.2);
}

.file-item.selected {
  background: rgba(45, 106, 48, 0.15);
  border-bottom-color: var(--plasma-primary);
}

.file-item:nth-child(even) {
  background: rgba(250, 249, 246, 0.3);
}

.file-item:nth-child(even):hover {
  background: rgba(45, 106, 48, 0.08);
}

/* File Columns */
.file-column {
  display: flex;
  align-items: center;
  padding: 0 8px;
  overflow: hidden;
}

.file-column.name-column {
  flex: 3;
  min-width: 280px;
  gap: 10px;
}

.file-column.date-column {
  flex: 1;
  min-width: 130px;
  color: var(--plasma-text-secondary);
}

.file-column.author-column {
  flex: 0.8;
  min-width: 110px;
  color: var(--plasma-text-secondary);
}

.file-column.categories-column {
  flex: 1.2;
  min-width: 140px;
  color: var(--plasma-text-secondary);
}

.file-column.words-column {
  flex: 0.7;
  min-width: 80px;
  justify-content: flex-end;
  color: var(--plasma-text-secondary);
  font-size: 13px;
}

.file-icon {
  color: var(--plasma-primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.file-icon svg {
  fill: var(--plasma-primary);
  transition: all 0.2s ease;
  width: 18px;
  height: 18px;
}

.file-name {
  font-weight: 500;
  color: var(--plasma-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

/* Grid view specific styles */
.file-list.grid-view .file-item {
  flex-direction: column;
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--plasma-surface);
  height: auto;
  min-height: 120px;
  justify-content: center;
  gap: 8px;
}

.file-list.grid-view .file-item:hover {
  border-color: var(--plasma-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
  background: rgba(45, 106, 48, 0.08);
}

.file-list.grid-view .file-item.selected {
  border-color: var(--plasma-primary);
  background: rgba(46, 125, 50, 0.12);
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

.file-list.grid-view .file-column {
  flex-direction: column;
  width: 100%;
  padding: 4px 0;
  text-align: center;
}

.file-list.grid-view .file-icon {
  margin-bottom: 8px;
}

.file-list.grid-view .file-icon svg {
  width: 32px;
  height: 32px;
}

.file-list.grid-view .file-item:hover .file-icon svg {
  transform: scale(1.1);
}

.file-list.grid-view .file-name {
  font-size: 12px;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.3;
}

/* Hide non-name columns in grid view */
.file-list.grid-view .file-column:not(.name-column) {
  display: none;
}

/* Hide header in grid view */
.file-list-container:has(.file-list.grid-view) .file-list-header {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 800px) {
  .file-list.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .file-list.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    padding: 12px;
  }
  
  .column-header {
    font-size: 11px;
    padding: 2px 4px;
  }
  
  .file-column {
    padding: 0 4px;
    font-size: 12px;
  }
  
  .zoom-controls {
    gap: 4px;
    padding: 2px 4px;
  }
  
  .zoom-btn {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
  
  .zoom-level {
    font-size: 11px;
    min-width: 35px;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 12px;
  border-top: 1px solid var(--plasma-border);
}

.page-btn {
  padding: 6px 12px;
  border: 1px solid var(--plasma-border);
  border-radius: 4px;
  background: var(--plasma-surface);
  color: var(--plasma-text);
  text-decoration: none;
  font-size: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}

.page-btn:hover {
  background: rgba(45, 106, 48, 0.2);
}

.page-btn.active {
  background: var(--plasma-primary);
  color: var(--plasma-bg);
  border-color: var(--plasma-primary);
}

.page-dots {
  color: var(--plasma-text-secondary);
  font-size: 12px;
  padding: 0 4px;
  user-select: none;
}

/* Kate Text Editor */
.kate-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  background: var(--plasma-surface);
  border-bottom: 1px solid var(--plasma-border);
}

/* Zoom Controls */
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  background: rgba(45, 106, 48, 0.1);
  border-radius: 6px;
  padding: 4px 8px;
}

.zoom-btn {
  background: var(--plasma-surface);
  border: 1px solid var(--plasma-border);
  border-radius: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: var(--plasma-text);
  transition: all 0.2s ease;
}

.zoom-btn:hover {
  background: var(--plasma-primary);
  color: var(--plasma-bg);
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(45, 106, 48, 0.3);
}

.zoom-btn:active {
  transform: scale(0.95);
}

.zoom-level {
  font-size: 12px;
  font-weight: 600;
  color: var(--plasma-text);
  min-width: 40px;
  text-align: center;
  user-select: none;
}

.kate-file-info {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--plasma-text-secondary);
}

.kate-options {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--plasma-text-secondary);
}

.post-navigation {
  display: flex;
  gap: 4px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  background: var(--plasma-primary);
  color: var(--plasma-bg);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--plasma-primary-variant);
  transform: translateY(-1px);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-btn svg {
  fill: currentColor;
}

.kate-content {
  display: flex;
  flex-direction: column;
}

.kate-content .editor-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: var(--plasma-bg);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  line-height: 1.6;
  font-size: 14px;
}

.post-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--plasma-text-secondary);
  font-size: 14px;
}

.post-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--plasma-error);
  font-size: 14px;
  text-align: center;
}

/* Window stacking and focus */
.window {
  z-index: 100;
}

.window.focused {
  z-index: 200;
}

/* Taskbar icon grouping */
.taskbar-apps {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  max-width: 60%;
  overflow-x: auto;
}

.taskbar-apps::-webkit-scrollbar {
  height: 3px;
}

.taskbar-apps::-webkit-scrollbar-track {
  background: transparent;
}

.taskbar-apps::-webkit-scrollbar-thumb {
  background: var(--plasma-border);
  border-radius: 2px;
}

/* Text Editor (Post View) */
.editor-content {
  padding: 24px;
  height: 100%;
  overflow-y: auto;
}

.post-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--plasma-border);
}

.post-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--plasma-text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.post-meta {
  font-size: 14px;
  color: var(--plasma-text-secondary);
}

.post-content {
  line-height: 1.6;
  font-size: 16px;
  color: var(--plasma-text);
  max-width: 80%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Responsive adjustments for post content */
@media (max-width: 1200px) {
  .post-content {
    max-width: 85%;
  }
  
  .post-header {
    max-width: 85%;
  }
  
  .post-comments {
    max-width: 85%;
  }
  
  .post-navigation {
    max-width: 85%;
  }
}

@media (max-width: 800px) {
  .post-content {
    max-width: 90%;
    padding: 0 15px;
  }
  
  .post-header {
    max-width: 90%;
    padding: 0 15px;
  }
  
  .post-comments {
    max-width: 90%;
    padding: 0 15px;
  }
  
  .post-navigation {
    max-width: 90%;
    padding: 0 15px;
  }
}

@media (max-width: 600px) {
  .post-content {
    max-width: 95%;
    padding: 0 10px;
  }
  
  .post-header {
    max-width: 95%;
    padding: 0 10px;
  }
  
  .post-comments {
    max-width: 95%;
    padding: 0 10px;
  }
  
  .post-navigation {
    max-width: 95%;
    padding: 0 10px;
  }
}

.post-content h1, .post-content h2, .post-content h3 {
  color: var(--plasma-text);
  margin: 24px 0 16px 0;
}

.post-content h1 { font-size: 24px; }
.post-content h2 { font-size: 20px; }
.post-content h3 { font-size: 18px; }

.post-content p {
  margin-bottom: 16px;
}

.post-content code {
  background: var(--plasma-bg);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 14px;
}

.post-content pre {
  background: var(--plasma-bg);
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 16px 0;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content blockquote {
  border-left: 4px solid var(--plasma-primary);
  padding-left: 16px;
  margin: 16px 0;
  font-style: italic;
  color: var(--plasma-text-secondary);
}

.post-content ul, .post-content ol {
  margin: 20px 0;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Subtle visual improvements */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border: 1px solid var(--plasma-border);
  border-radius: 6px;
  overflow: hidden;
}

.post-content th,
.post-content td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--plasma-border);
}

.post-content th {
  background: var(--plasma-surface);
  font-weight: 600;
  color: var(--plasma-text);
}

.post-content td {
  background: rgba(49, 50, 68, 0.3);
}

.post-content hr {
  border: none;
  height: 1px;
  background: var(--plasma-border);
  margin: 32px 0;
}

/* Clean Post Styling */
.post-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--plasma-border);
}

.post-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--plasma-text);
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.post-meta {
  color: var(--plasma-text-secondary);
  font-size: 14px;
  margin: 0;
}

.post-meta time {
  color: var(--plasma-primary);
}

/* Enhanced typography and readability */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--plasma-text);
  font-weight: 600;
}

.post-content h1 { font-size: 24px; margin-top: 40px; }
.post-content h2 { font-size: 22px; }
.post-content h3 { font-size: 20px; }
.post-content h4 { font-size: 18px; }

.post-content p {
  line-height: 1.7;
  margin-bottom: 20px;
}

.post-content a {
  color: var(--plasma-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.post-content a:hover {
  border-bottom-color: var(--plasma-primary);
}

/* Copy button for code blocks */
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(137, 180, 250, 0.1);
  color: var(--plasma-primary);
  border: 1px solid rgba(137, 180, 250, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(137, 180, 250, 0.2);
}

/* Comments and navigation sections */
.post-comments {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--plasma-border);
}

.post-navigation {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--plasma-border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.nav-btn {
  padding: 8px 16px;
  background: var(--plasma-surface);
  color: var(--plasma-text);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 1px solid var(--plasma-border);
}

.nav-btn:hover {
  background: var(--plasma-primary);
  color: var(--plasma-bg);
  border-color: var(--plasma-primary);
}

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

::-webkit-scrollbar-track {
  background: var(--plasma-surface);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--plasma-text-secondary);
}

/* Widget-specific scrollbars */
.desktop-widgets::-webkit-scrollbar {
  width: 6px;
}

.desktop-widgets::-webkit-scrollbar-track {
  background: rgba(30, 30, 46, 0.3);
  border-radius: 3px;
}

.desktop-widgets::-webkit-scrollbar-thumb {
  background: rgba(137, 180, 250, 0.4);
  border-radius: 3px;
}

.desktop-widgets::-webkit-scrollbar-thumb:hover {
  background: rgba(137, 180, 250, 0.6);
}

/* Idle Desktop Animations */
.idle-animations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.idle-animations.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Walking Bots */
.walking-bot {
  position: absolute;
  z-index: 3;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.walking-bot .bot-icon {
  fill: var(--plasma-primary);
  filter: drop-shadow(0 2px 4px rgba(0, 255, 65, 0.4));
  animation: botWalk 0.6s ease-in-out infinite alternate;
}

.bot-1 {
  bottom: 25%;
  left: -50px;
  animation: walkAcross1 25s linear infinite;
}

.bot-2 {
  bottom: 40%;
  left: -50px;
  animation: walkAcross2 30s linear infinite;
  animation-delay: -10s;
}

.bot-3 {
  bottom: 60%;
  right: -50px;
  animation: walkAcrossReverse 35s linear infinite;
  animation-delay: -15s;
}

/* Bot Walking Animations */
@keyframes walkAcross1 {
  0% { left: -50px; }
  100% { left: calc(100% + 50px); }
}

@keyframes walkAcross2 {
  0% { left: -50px; }
  100% { left: calc(100% + 50px); }
}

@keyframes walkAcrossReverse {
  0% { right: -50px; }
  100% { right: calc(100% + 50px); }
}

@keyframes botWalk {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-3px) scale(1.05); }
}

/* Memory Streams */
.memory-streams {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.memory-stream {
  position: absolute;
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(0, 255, 65, 0.8) 20%, 
    rgba(0, 255, 65, 1) 50%, 
    rgba(0, 255, 65, 0.8) 80%, 
    transparent 100%);
  border-radius: 1px;
  opacity: 0.7;
}

.stream-1 {
  left: 15%;
  animation: memoryFlow1 8s ease-in-out infinite;
  animation-delay: 0s;
}

.stream-2 {
  left: 35%;
  animation: memoryFlow2 12s ease-in-out infinite;
  animation-delay: -3s;
}

.stream-3 {
  left: 65%;
  animation: memoryFlow3 10s ease-in-out infinite;
  animation-delay: -6s;
}

.stream-4 {
  left: 85%;
  animation: memoryFlow4 14s ease-in-out infinite;
  animation-delay: -9s;
}

@keyframes memoryFlow1 {
  0%, 20% { 
    top: -60px; 
    opacity: 0; 
    height: 60px;
  }
  25% { 
    opacity: 0.7; 
    height: 80px;
  }
  75% { 
    opacity: 0.7; 
    height: 60px;
  }
  80%, 100% { 
    top: 100%; 
    opacity: 0; 
    height: 40px;
  }
}

@keyframes memoryFlow2 {
  0%, 15% { 
    top: -60px; 
    opacity: 0; 
    height: 60px;
  }
  20% { 
    opacity: 0.6; 
    height: 90px;
  }
  80% { 
    opacity: 0.6; 
    height: 50px;
  }
  85%, 100% { 
    top: 100%; 
    opacity: 0; 
    height: 30px;
  }
}

@keyframes memoryFlow3 {
  0%, 25% { 
    top: -60px; 
    opacity: 0; 
    height: 60px;
  }
  30% { 
    opacity: 0.8; 
    height: 70px;
  }
  70% { 
    opacity: 0.8; 
    height: 65px;
  }
  75%, 100% { 
    top: 100%; 
    opacity: 0; 
    height: 45px;
  }
}

@keyframes memoryFlow4 {
  0%, 10% { 
    top: -60px; 
    opacity: 0; 
    height: 60px;
  }
  15% { 
    opacity: 0.9; 
    height: 85px;
  }
  85% { 
    opacity: 0.9; 
    height: 55px;
  }
  90%, 100% { 
    top: 100%; 
    opacity: 0; 
    height: 35px;
  }
}

/* Data Packets */
.data-packets {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.data-packet {
  position: absolute;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 600;
  color: rgba(0, 255, 65, 0.9);
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(0, 255, 65, 0.3);
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
  opacity: 0;
  z-index: 4;
}

.packet-1 {
  top: 20%;
  animation: dataFloat1 18s ease-in-out infinite;
  animation-delay: 0s;
}

.packet-2 {
  top: 35%;
  animation: dataFloat2 22s ease-in-out infinite;
  animation-delay: -5s;
}

.packet-3 {
  top: 50%;
  animation: dataFloat3 16s ease-in-out infinite;
  animation-delay: -8s;
}

.packet-4 {
  top: 65%;
  animation: dataFloat4 20s ease-in-out infinite;
  animation-delay: -12s;
}

.packet-5 {
  top: 80%;
  animation: dataFloat5 24s ease-in-out infinite;
  animation-delay: -3s;
}

@keyframes dataFloat1 {
  0%, 10% { 
    left: -100px; 
    opacity: 0; 
    transform: scale(0.8) rotate(-5deg);
  }
  15% { 
    opacity: 1; 
    transform: scale(1) rotate(0deg);
  }
  85% { 
    opacity: 1; 
    transform: scale(1) rotate(0deg);
  }
  90%, 100% { 
    left: calc(100% + 100px); 
    opacity: 0; 
    transform: scale(0.8) rotate(5deg);
  }
}

@keyframes dataFloat2 {
  0%, 8% { 
    left: -100px; 
    opacity: 0; 
    transform: scale(0.9) rotate(3deg);
  }
  12% { 
    opacity: 1; 
    transform: scale(1.1) rotate(0deg);
  }
  88% { 
    opacity: 1; 
    transform: scale(1.1) rotate(0deg);
  }
  92%, 100% { 
    left: calc(100% + 100px); 
    opacity: 0; 
    transform: scale(0.9) rotate(-3deg);
  }
}

@keyframes dataFloat3 {
  0%, 12% { 
    left: -100px; 
    opacity: 0; 
    transform: scale(0.7) rotate(8deg);
  }
  18% { 
    opacity: 1; 
    transform: scale(1) rotate(0deg);
  }
  82% { 
    opacity: 1; 
    transform: scale(1) rotate(0deg);
  }
  88%, 100% { 
    left: calc(100% + 100px); 
    opacity: 0; 
    transform: scale(0.7) rotate(-8deg);
  }
}

@keyframes dataFloat4 {
  0%, 15% { 
    left: -100px; 
    opacity: 0; 
    transform: scale(1.2) rotate(-2deg);
  }
  20% { 
    opacity: 1; 
    transform: scale(1) rotate(0deg);
  }
  80% { 
    opacity: 1; 
    transform: scale(1) rotate(0deg);
  }
  85%, 100% { 
    left: calc(100% + 100px); 
    opacity: 0; 
    transform: scale(1.2) rotate(2deg);
  }
}

@keyframes dataFloat5 {
  0%, 5% { 
    left: -100px; 
    opacity: 0; 
    transform: scale(0.6) rotate(10deg);
  }
  10% { 
    opacity: 1; 
    transform: scale(1) rotate(0deg);
  }
  90% { 
    opacity: 1; 
    transform: scale(1) rotate(0deg);
  }
  95%, 100% { 
    left: calc(100% + 100px); 
    opacity: 0; 
    transform: scale(0.6) rotate(-10deg);
  }
}

/* Floating Code Snippets */
.floating-code {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.code-snippet {
  position: absolute;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 170, 0, 0.8);
  background: rgba(0, 0, 0, 0.8);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 170, 0, 0.2);
  text-shadow: 0 0 3px rgba(255, 170, 0, 0.3);
  box-shadow: 0 0 8px rgba(255, 170, 0, 0.1);
  opacity: 0;
  z-index: 5;
}

.snippet-1 {
  top: 15%;
  animation: codeFloat1 32s ease-in-out infinite;
  animation-delay: -5s;
}

.snippet-2 {
  top: 45%;
  animation: codeFloat2 28s ease-in-out infinite;
  animation-delay: -12s;
}

.snippet-3 {
  top: 75%;
  animation: codeFloat3 36s ease-in-out infinite;
  animation-delay: -20s;
}

@keyframes codeFloat1 {
  0%, 5% { 
    right: -200px; 
    opacity: 0; 
    transform: translateY(0px) rotate(2deg);
  }
  10% { 
    opacity: 0.8; 
    transform: translateY(-5px) rotate(0deg);
  }
  90% { 
    opacity: 0.8; 
    transform: translateY(5px) rotate(0deg);
  }
  95%, 100% { 
    right: calc(100% + 200px); 
    opacity: 0; 
    transform: translateY(0px) rotate(-2deg);
  }
}

@keyframes codeFloat2 {
  0%, 8% { 
    right: -200px; 
    opacity: 0; 
    transform: translateY(10px) rotate(-3deg);
  }
  12% { 
    opacity: 0.7; 
    transform: translateY(0px) rotate(0deg);
  }
  88% { 
    opacity: 0.7; 
    transform: translateY(-10px) rotate(0deg);
  }
  92%, 100% { 
    right: calc(100% + 200px); 
    opacity: 0; 
    transform: translateY(0px) rotate(3deg);
  }
}

@keyframes codeFloat3 {
  0%, 3% { 
    right: -200px; 
    opacity: 0; 
    transform: translateY(-8px) rotate(1deg);
  }
  8% { 
    opacity: 0.9; 
    transform: translateY(0px) rotate(0deg);
  }
  92% { 
    opacity: 0.9; 
    transform: translateY(8px) rotate(0deg);
  }
  97%, 100% { 
    right: calc(100% + 200px); 
    opacity: 0; 
    transform: translateY(0px) rotate(-1deg);
  }
}

/* Comprehensive Mobile Responsiveness */

/* Large Mobile Devices (up to 768px) */
@media (max-width: 768px) {
  .desktop-icons {
    display: none;
  }
  /* Base mobile styles */
  body, html {
    overflow-x: hidden;
  }
  
  #desktop {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
  }

  /* Taskbar mobile optimization */
  #taskbar {
    height: 56px;
    padding: 0 8px;
    backdrop-filter: blur(20px);
    border-top: 2px solid var(--plasma-border);
  }
  
  :root {
    --taskbar-height: 56px;
  }

  .app-launcher {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .taskbar-apps {
    max-width: 50%;
    gap: 6px;
  }

  .app-icon {
    min-width: 48px;
    max-width: 150px;
    height: 44px;
    padding: 0 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  .app-icon:hover {
    background: rgba(45, 106, 48, 0.15);
  }
  
  .app-icon:active,
  .app-icon.touch-active {
    background: rgba(45, 106, 48, 0.25) !important;
    transform: scale(0.95);
  }

  .app-icon-text {
    font-size: 12px;
    max-width: 90px;
  }

  .clock {
    font-size: 14px;
    padding: 8px 10px;
  }

  /* Desktop icons mobile layout */
  .desktop-icons {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 20px;
    z-index: 50;
    max-width: calc(100vw - 30px);
  }

  .desktop-icon {
    width: 80px;
    padding: 10px;
    border-radius: 12px;
    justify-self: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  .desktop-icon:hover {
    background: rgba(45, 106, 48, 0.15);
  }
  
  .desktop-icon:active,
  .desktop-icon.touch-active {
    background: rgba(45, 106, 48, 0.25) !important;
    transform: scale(0.95);
  }

  .desktop-icon-image {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .desktop-icon-image svg {
    width: 36px;
    height: 36px;
  }

  .desktop-icon-label {
    font-size: 12px;
    max-width: 80px;
    padding: 4px 8px;
    border-radius: 6px;
  }

  /* Desktop widgets mobile positioning */
  .desktop-widgets {
    position: fixed;
    top: 100px;
    left: 5%;
    right: 5%;
    bottom: calc(var(--taskbar-height) + 15px);
    width: 90%;
    max-width: none;
    z-index: 45;
    height: auto;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 10px;
  }
  
  /* Ensure widgets don't overlap with desktop icons on short screens */
  @media (max-width: 768px) and (max-height: 600px) {
    .desktop-widgets {
      top: 80px;
      max-height: calc(100vh - 140px);
    }
  }
  
  /* Enhanced mobile scrolling */
  .desktop-widgets::-webkit-scrollbar {
    width: 8px;
  }
  
  .desktop-widgets::-webkit-scrollbar-track {
    background: rgba(30, 30, 46, 0.3);
    border-radius: 4px;
  }
  
  .desktop-widgets::-webkit-scrollbar-thumb {
    background: rgba(137, 180, 250, 0.6);
    border-radius: 4px;
    min-height: 30px;
  }
  
  .desktop-widgets::-webkit-scrollbar-thumb:hover {
    background: rgba(137, 180, 250, 0.8);
  }

  .desktop-widget {
    margin-bottom: 0;
    border-radius: 12px;
    backdrop-filter: blur(25px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .bio-widget .widget-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 16px;
  }

  .bio-photo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }

  .bio-info {
    flex: 1;
    min-width: 0;
    width: 100%;
  }

  .bio-name {
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 600;
    word-break: break-word;
  }

  .bio-title {
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.3;
    word-break: break-word;
  }

  .bio-details {
    gap: 8px;
    width: 100%;
  }

  .bio-item {
    font-size: 12px;
    padding: 4px 0;
    line-height: 1.5;
    word-break: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }

  .bio-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .stat-item {
    margin-bottom: 10px;
  }

  .stat-icon {
    width: 28px;
    height: 28px;
  }

  .stat-number {
    font-size: 18px;
    font-weight: 600;
  }

  .stat-label {
    font-size: 11px;
    line-height: 1.3;
  }

  .widget-content {
    padding: 12px;
    overflow: visible;
    word-wrap: break-word;
    hyphens: auto;
  }

  .intro-widget .intro-text p {
    font-size: 13px;
    line-height: 1.6;
    word-break: break-word;
    text-align: left;
  }
  
  /* Improve widget readability */
  .widget-content {
    min-height: auto;
  }
  
  .desktop-widget {
    min-height: auto;
    margin-bottom: 0;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Stats widget mobile improvements */
  .stats-widget .widget-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
  }
  
  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 8px;
    background: rgba(137, 180, 250, 0.1);
  }
  
  .stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  /* Window mobile optimization */
  .window {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: var(--taskbar-height) !important;
    width: 100vw !important;
    height: calc(100vh - var(--taskbar-height)) !important;
    min-width: unset !important;
    min-height: unset !important;
    border-radius: 0 !important;
    border: none;
    z-index: 150;
  }

  .window-titlebar {
    height: 48px;
    padding: 0 16px;
    border-radius: 0;
  }

  .window-title {
    font-size: 15px;
  }

  .window-controls button {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 6px;
  }

  .window-toolbar {
    height: 44px;
    padding: 0 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .toolbar-buttons {
    order: 1;
    flex: 1;
    justify-content: flex-start;
  }

  .view-options {
    order: 2;
    flex: 1;
    justify-content: flex-end;
  }

  .address-bar {
    order: 3;
    width: 100%;
    margin: 8px 0 0 0;
  }

  .toolbar-btn {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 8px;
    min-height: 44px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  .toolbar-btn:hover {
    background: rgba(45, 106, 48, 0.15);
  }
  
  .toolbar-btn:active,
  .toolbar-btn.touch-active {
    background: rgba(45, 106, 48, 0.25) !important;
    transform: scale(0.95);
  }

  /* File manager mobile optimization */
  .file-list-header {
    padding: 12px 16px;
    font-size: 13px;
    min-height: 44px;
  }

  .column-header {
    padding: 6px 8px;
    border-radius: 6px;
  }

  .column-header.name-column {
    flex: 2;
    min-width: 200px;
  }

  .column-header.date-column {
    flex: 1;
    min-width: 100px;
  }

  .column-header.author-column {
    display: none; /* Hide on mobile to save space */
  }

  .column-header.categories-column {
    flex: 1;
    min-width: 100px;
  }

  .column-header.words-column {
    display: none; /* Hide on mobile to save space */
  }

  .file-item {
    padding: 12px 16px;
    min-height: 52px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
  }
  
  .file-item:hover {
    background: rgba(45, 106, 48, 0.15);
  }
  
  .file-item:active,
  .file-item.touch-active {
    background: rgba(45, 106, 48, 0.25) !important;
    transform: scale(0.98);
  }

  .file-column {
    padding: 0 8px;
  }

  .file-column.name-column {
    flex: 2;
    min-width: 200px;
    gap: 12px;
  }

  .file-column.date-column {
    flex: 1;
    min-width: 100px;
    font-size: 12px;
  }

  .file-column.author-column {
    display: none;
  }

  .file-column.categories-column {
    flex: 1;
    min-width: 100px;
    font-size: 12px;
  }

  .file-column.words-column {
    display: none;
  }

  .file-icon svg {
    width: 20px;
    height: 20px;
  }

  .file-name {
    font-size: 14px;
  }

  /* Grid view mobile optimization */
  .file-list.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    padding: 16px;
  }

  .file-list.grid-view .file-item {
    min-height: 140px;
    padding: 16px;
    border-radius: 12px;
  }

  /* Pagination mobile */
  .pagination {
    padding: 16px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .page-btn {
    padding: 12px 16px;
    font-size: 13px;
    border-radius: 8px;
    min-width: 48px;
    min-height: 48px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  .page-btn:hover {
    background: rgba(45, 106, 48, 0.15);
  }
  
  .page-btn:active,
  .page-btn.touch-active {
    background: rgba(45, 106, 48, 0.25) !important;
    transform: scale(0.95);
  }

  /* Kate editor mobile optimization */
  .editor-content {
    padding: 20px 16px;
  }

  .post-header {
    max-width: 100%;
    padding: 0;
  }

  .post-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .post-meta {
    font-size: 13px;
  }
  
  /* Enhanced mobile post styles */
  .post-meta-enhanced {
    margin: 20px 0 24px 0;
  }
  
  .meta-row {
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  
  .meta-item {
    font-size: 13px;
    padding: 8px 12px;
    justify-content: center;
  }
  
  .post-tags {
    margin-top: 12px;
    gap: 6px;
  }
  
  .tag-item {
    font-size: 11px;
    padding: 3px 8px;
  }
  
  /* Mobile Table of Contents */
  .table-of-contents {
    margin: 20px 0;
    border-radius: 8px;
  }
  
  .toc-header {
    padding: 12px 16px;
  }
  
  .toc-content {
    max-height: 200px;
  }
  
  .toc-link {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .toc-level-1 .toc-link { padding-left: 16px; }
  .toc-level-2 .toc-link { padding-left: 24px; }
  .toc-level-3 .toc-link { padding-left: 32px; font-size: 13px; }
  .toc-level-4 .toc-link { padding-left: 40px; font-size: 12px; }
  
  /* Mobile Social Sharing */
  .post-sharing {
    padding: 20px 16px;
    margin: 32px 0;
    border-radius: 12px;
  }
  
  .sharing-header h4 {
    font-size: 16px;
    margin-bottom: 16px;
  }
  
  .sharing-buttons {
    gap: 12px;
    flex-direction: column;
  }
  
  .share-btn {
    padding: 12px 16px;
    font-size: 13px;
    border-radius: 20px;
    justify-content: center;
  }
  
  /* Mobile Post Navigation */
  .post-navigation {
    flex-direction: column;
    gap: 12px;
    margin: 32px 0;
  }
  
  .nav-btn {
    min-width: auto;
    padding: 14px 16px;
    font-size: 14px;
    border-radius: 8px;
  }
  
  /* Mobile Code Blocks */
  .code-header {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .code-copy-btn {
    align-self: flex-end;
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .line-numbers {
    padding: 12px 6px;
    font-size: 12px;
    min-width: 35px;
  }

  .post-content {
    max-width: 100%;
    padding: 0;
    font-size: 15px;
    line-height: 1.6;
  }

  .post-content h1 { font-size: 22px; }
  .post-content h2 { font-size: 19px; }
  .post-content h3 { font-size: 17px; }

  .post-content pre {
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    overflow-x: auto;
  }

  .post-content code {
    font-size: 13px;
  }

  .post-comments {
    max-width: 100%;
    padding: 0;
    margin-top: 32px;
  }

  .post-comments #disqus_thread {
    padding: 16px;
    border-radius: 12px;
  }

  .post-navigation {
    max-width: 100%;
    padding: 0;
    margin-top: 32px;
    flex-direction: column;
    gap: 12px;
  }

  .nav-btn {
    padding: 12px 16px;
    font-size: 13px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
  }

  /* Zoom controls mobile */
  .zoom-controls {
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
  }

  .zoom-btn {
    width: 32px;
    height: 32px;
    font-size: 15px;
    border-radius: 6px;
  }

  .zoom-level {
    font-size: 12px;
    min-width: 45px;
  }

  /* Start menu mobile optimization */
  .start-menu {
    position: fixed;
    bottom: calc(var(--taskbar-height) + 10px);
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    max-height: 70vh;
    border-radius: 16px;
  }

  .start-menu-header {
    padding: 20px;
  }

  .user-info {
    margin-bottom: 16px;
  }

  .user-avatar {
    width: 48px;
    height: 48px;
  }

  .user-name {
    font-size: 16px;
  }

  .user-status {
    font-size: 12px;
  }

  .search-box input {
    padding: 12px 16px 12px 44px;
    font-size: 15px;
    border-radius: 12px;
  }

  .search-box svg {
    left: 16px;
  }

  .start-menu-content {
    max-height: 50vh;
    padding: 8px 0;
  }

  .menu-section {
    margin-bottom: 12px;
  }

  .menu-section h3 {
    font-size: 13px;
    padding: 12px 20px 8px 20px;
  }

  .app-list {
    padding: 0 12px;
  }

  .menu-app {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 48px;
  }
  
  .menu-app:hover {
    background: rgba(45, 106, 48, 0.15);
  }
  
  .menu-app:active,
  .menu-app.touch-active {
    background: rgba(45, 106, 48, 0.25) !important;
    transform: scale(0.98);
  }

  .menu-app .app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .app-name {
    font-size: 15px;
  }

  .app-desc {
    font-size: 12px;
  }

  .start-menu-footer {
    padding: 16px 20px;
  }

  .menu-action {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
  }

  /* App menu mobile optimization */
  .app-menu {
    position: fixed;
    bottom: calc(var(--taskbar-height) + 10px);
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    max-height: 70vh;
    border-radius: 16px;
  }

  .app-menu-header {
    padding: 20px;
  }

  .app-menu-search input {
    padding: 12px 16px 12px 44px;
    font-size: 15px;
    border-radius: 12px;
  }

  .app-menu-search svg {
    left: 16px;
  }

  .app-menu-content {
    padding: 20px;
    max-height: 50vh;
  }

  .app-category {
    margin-bottom: 20px;
  }

  .app-category h4 {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .app-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 16px;
  }

  .app-item {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .app-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 12px;
  }

  .app-item span {
    font-size: 12px;
  }

  /* Idle animations mobile optimization */
  .walking-bot .bot-icon {
    width: 28px;
    height: 28px;
  }

  .memory-stream {
    width: 1.5px;
    height: 40px;
  }

  .data-packet {
    font-size: 10px;
    padding: 2px 4px;
  }

  .code-snippet {
    font-size: 9px;
    padding: 2px 6px;
  }
  
  /* Ensure widgets are always scrollable and text doesn't get cut off */
  .desktop-widgets {
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
  
  .desktop-widget {
    overflow: visible;
    word-wrap: break-word;
    hyphens: auto;
  }
  
  .widget-content {
    overflow: visible;
  }
  
  .bio-item, .stat-label, .intro-text p {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
}

/* Small Mobile Devices (up to 480px) */
@media (max-width: 480px) {
  /* Extra small mobile adjustments */
  #taskbar {
    height: 64px;
    padding: 0 8px;
  }
  
  :root {
    --taskbar-height: 64px;
  }

  /* Improve touch targets */
  .file-item {
    padding: 16px;
    min-height: 60px;
  }
  
  .file-column.name-column {
    flex: 3;
    min-width: 150px;
  }
  
  .file-column.date-column {
    flex: 2;
    min-width: 90px;
  }
  
  .file-name {
    font-size: 15px;
    line-height: 1.3;
  }
  
  .page-btn {
    padding: 14px 18px;
    min-width: 52px;
    min-height: 52px;
    font-size: 14px;
  }
  
  .toolbar-btn {
    padding: 12px 16px;
    min-height: 48px;
    font-size: 14px;
  }
  
  /* Better desktop icon spacing */
  .desktop-icons {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 24px;
    top: 20px;
    left: 20px;
    right: 20px;
  }
  
  .desktop-icon {
    width: 90px;
    padding: 12px;
  }
  
  .desktop-icon-image {
    width: 52px;
    height: 52px;
  }
  
  .desktop-icon-image svg {
    width: 40px;
    height: 40px;
  }
  
  /* Improve start menu touch targets */
  .menu-app {
    padding: 16px 20px;
    min-height: 52px;
  }
  
  .menu-app .app-icon {
    width: 44px;
    height: 44px;
  }
  
  /* Better widget positioning */
  .desktop-widgets {
    bottom: calc(var(--taskbar-height) + 15px);
    left: 5%;
    right: 5%;
    width: 90%;
    top: 80px;
    max-height: calc(100vh - 160px);
  }

  .app-launcher {
    width: 48px;
    height: 48px;
  }

  .taskbar-apps {
    max-width: 45%;
  }

  .app-icon {
    min-width: 48px;
    max-width: 120px;
    height: 44px;
  }

  .app-icon-text {
    font-size: 11px;
    max-width: 70px;
  }

  .clock {
    font-size: 13px;
    padding: 6px 8px;
  }

  /* Desktop icons grid for very small screens */
  .desktop-icons {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 15px;
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .desktop-icon {
    width: 70px;
    padding: 8px;
  }

  .desktop-icon-image {
    width: 40px;
    height: 40px;
  }

  .desktop-icon-image svg {
    width: 30px;
    height: 30px;
  }

  .desktop-icon-label {
    font-size: 11px;
    padding: 3px 6px;
  }

  /* Widgets for very small screens */
  .desktop-widgets {
    left: 5%;
    right: 5%;
    width: 90%;
    top: 70px;
    bottom: calc(var(--taskbar-height) + 10px);
    max-height: calc(100vh - 130px);
  }

  .bio-widget .widget-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .bio-photo {
    width: 70px;
    height: 70px;
  }

  .bio-name {
    font-size: 14px;
  }

  .bio-title {
    font-size: 11px;
  }

  .bio-item {
    font-size: 11px;
    padding: 2px 0;
    line-height: 1.4;
  }

  .bio-item svg {
    width: 14px;
    height: 14px;
  }

  .stat-icon {
    width: 24px;
    height: 24px;
  }

  .stat-number {
    font-size: 14px;
  }

  .widget-content {
    padding: 12px;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
    min-height: auto;
  }

  .intro-widget .intro-text p {
    font-size: 12px;
    line-height: 1.5;
  }
  
  /* Enhanced mobile stats widget */
  .stats-widget .widget-content {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }
  
  .stat-item {
    padding: 8px 6px;
    gap: 6px;
  }
  
  /* Touch improvements for mobile widgets */
  .desktop-widget {
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Ensure all widget text is readable */
  .bio-item span,
  .stat-label,
  .intro-text p {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
  
  /* Better spacing for widget items */
  .stat-item {
    margin-bottom: 8px;
  }
}

/* Mobile landscape orientation improvements */
@media (max-width: 768px) and (orientation: landscape) {
  .desktop-widgets {
    top: 80px;
    max-height: calc(100vh - 140px);
    gap: 12px;
  }
  
  .desktop-icons {
    top: 10px;
    gap: 15px;
  }
  
  .bio-widget .widget-content {
    flex-direction: row;
    text-align: left;
    gap: 12px;
    align-items: center;
  }
  
  .bio-info {
    text-align: left;
  }
  
  .bio-item {
    justify-content: flex-start;
    text-align: left;
  }
  
  .stats-widget .widget-content {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

/* Additional responsive fixes for all screen sizes */
@media (max-width: 1024px) {
  .desktop-widgets {
    width: min(280px, calc(100vw - 40px));
  }
}

/* Universal widget text fixes */
.desktop-widget * {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.bio-item span,
.stat-label,
.stat-number,
.intro-text p {
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  word-break: break-word;
}

/* Ensure minimum readable font sizes */
@media (max-width: 768px) {
  .bio-item span {
    font-size: max(12px, 0.9rem);
  }
  
  .stat-label {
    font-size: max(11px, 0.8rem);
  }
  
  .stat-number {
    font-size: max(16px, 1.1rem);
  }
  
  .intro-text p {
    font-size: max(13px, 0.95rem);
  }
}

@media (max-width: 480px) {
  .bio-item span {
    font-size: max(11px, 0.85rem);
  }
  
  .stat-label {
    font-size: max(10px, 0.75rem);
  }
  
  .stat-number {
    font-size: max(14px, 1rem);
  }
  
  .intro-text p {
    font-size: max(12px, 0.9rem);
  }
}

/* Kate Post View - Hide Taskbar */
body:has(#text-editor.maximized) #taskbar,
.kate-view #taskbar,
body:has(#text-editor) #taskbar {
  display: none !important;
}

/* Kate Post View - Adjust window sizing without taskbar */
body:has(#text-editor.maximized) .window.maximized,
.kate-view .window.maximized,
body:has(#text-editor) .window.maximized {
  bottom: 0 !important;
  height: 100vh !important;
  min-height: 100vh !important;
}

/* Kate Post View - Adjust desktop widgets without taskbar */
body:has(#text-editor.maximized) .desktop-widgets,
.kate-view .desktop-widgets,
body:has(#text-editor) .desktop-widgets {
  max-height: calc(100vh - 40px);
  bottom: 20px;
}

/* Mobile Kate view widget improvements */
@media (max-width: 768px) {
  body:has(#text-editor.maximized) .desktop-widgets,
  .kate-view .desktop-widgets,
  body:has(#text-editor) .desktop-widgets {
    left: 5%;
    right: 5%;
    width: 90%;
    bottom: 20px;
    max-height: calc(100vh - 140px);
  }
}

@media (max-width: 480px) {
  body:has(#text-editor.maximized) .desktop-widgets,
  .kate-view .desktop-widgets,
  body:has(#text-editor) .desktop-widgets {
    left: 5%;
    right: 5%;
    width: 90%;
    bottom: 15px;
    max-height: calc(100vh - 120px);
  }
}

/* iPhone 14 and similar devices specific fix */
@media (max-width: 414px) {
  .desktop-widgets {
    left: 3% !important;
    right: 3% !important;
    width: 94% !important;
  }
  
  body:has(#text-editor.maximized) .desktop-widgets,
  .kate-view .desktop-widgets,
  body:has(#text-editor) .desktop-widgets {
    left: 3% !important;
    right: 3% !important;
    width: 94% !important;
  }
}
/* Post View Mobile Fixes */
@media (max-width: 768px) {
  body.kate-view {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.kate-view #desktop {
    height: auto;
    overflow: visible;
  }

  body.kate-view .desktop-icons,
  body.kate-view #wallpaper {
    display: none;
  }
  body.kate-view .desktop-widgets {
    display: none !important;
  }

  body.kate-view #text-editor {
    position: static;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    z-index: 1;
    bottom: auto !important;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
  }

  body.kate-view .window-content {
    height: auto;
    overflow: visible;
    flex-grow: 1;
  }

  body.kate-view .editor-content {
    overflow-y: visible;
    padding: 16px;
    height: auto;
  }

  body.kate-view #taskbar {
    display: none !important;
  }

  body.kate-view .window-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--plasma-surface);
  }
  
  .post-content a {
    -webkit-tap-highlight-color: rgba(45, 106, 48, 0.3);
    z-index: 2;
    position: relative;
  }
}
