/* ======================================
   WINDOWS DESKTOP INTERFACE STYLES
   ====================================== */

/* Desktop Container */
.windows-desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0078d4;
}

/* ======================================
   SIMPLE WINDOWS LAYOUT (for minimal content)
   ====================================== */

.windows-simple {
  min-height: 100vh;
  background: linear-gradient(135deg, #0078d4 0%, #106ebe 50%, #1e3a8a 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 0;
  margin: 0;
}

.simple-header {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 24px;
}

.simple-window-bar {
  max-width: 1200px;
  margin: 0 auto;
}

.simple-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
}

.simple-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.simple-article {
  background: #ffffff;
  border-radius: 12px;
  padding: 48px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.simple-article h1 {
  font-size: 32px;
  font-weight: 700;
  color: #323130;
  margin-bottom: 24px;
  border-bottom: 3px solid #0078d4;
  padding-bottom: 16px;
}

.article-description {
  font-size: 18px;
  color: #605e5c;
  line-height: 1.6;
  margin-bottom: 32px;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #0078d4;
}

.article-body {
  font-size: 16px;
  line-height: 1.7;
  color: #323130;
  margin-bottom: 32px;
}

.article-body h2, .article-body h3 {
  color: #323130;
  margin-top: 32px;
  margin-bottom: 16px;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body code {
  background: #f3f2f1;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 14px;
}

.article-body pre {
  background: #f3f2f1;
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 16px 0;
}

.coming-soon {
  text-align: center;
  padding: 64px 32px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  border: 2px dashed #dee2e6;
  margin: 32px 0;
}

.coming-soon-icon {
  margin-bottom: 24px;
  color: #0078d4;
  opacity: 0.6;
}

.coming-soon h3 {
  font-size: 24px;
  color: #495057;
  margin-bottom: 16px;
}

.coming-soon p {
  font-size: 16px;
  color: #6c757d;
  margin: 0;
}

.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid #e1dfdd;
  margin-top: 32px;
}

.difficulty-badge, .category-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.difficulty-easy {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.difficulty-medium {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.difficulty-hard {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.category-badge {
  background: #e3f2fd;
  color: #0078d4;
  border: 1px solid #bbdefb;
}

/* Responsive for simple layout */
@media (max-width: 768px) {
  .simple-content {
    padding: 24px 16px;
  }
  
  .simple-article {
    padding: 24px;
  }
  
  .simple-article h1 {
    font-size: 24px;
  }
  
  .article-description {
    font-size: 16px;
    padding: 16px;
  }
  
  .coming-soon {
    padding: 32px 16px;
  }
  
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .simple-header {
    padding: 8px 16px;
  }
  
  .simple-title {
    font-size: 16px;
  }
  
  .simple-content {
    padding: 16px 12px;
  }
  
  .simple-article {
    padding: 16px;
  }
  
  .simple-article h1 {
    font-size: 20px;
  }
}

/* ======================================
   FULL DESKTOP INTERFACE STYLES
   ====================================== */

/* Desktop Background */
.desktop-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0078d4 0%, #106ebe 50%, #1e3a8a 100%);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.desktop-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="windows-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23windows-grid)"/></svg>');
  opacity: 0.3;
}

/* Main Window */
.windows-window {
  position: absolute;
  top: 5%;
  left: 5%;
  right: 5%;
  bottom: 60px;
  background: #ffffff;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

/* Window Title Bar */
.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  background: #f3f3f3;
  border-bottom: 1px solid #e1e1e1;
  padding: 0 16px;
  user-select: none;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #323130;
}

.window-icon {
  color: #0078d4;
}

.window-controls {
  display: flex;
  gap: 0;
}

.window-control {
  width: 46px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #323130;
  transition: background-color 0.1s ease;
}

.window-control:hover {
  background: #e1dfdd;
}

.window-control.close:hover {
  background: #e81123;
  color: white;
}

.window-control:active {
  transform: none;
}

/* Window Content */
.window-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content-header {
  padding: 12px 16px;
  background: #faf9f8;
  border-bottom: 1px solid #e1dfdd;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #605e5c;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-item.active {
  color: #323130;
  font-weight: 600;
}

.breadcrumb-separator {
  color: #a19f9d;
}

/* Article Content */
.article-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: #ffffff;
}

.article-text {
  line-height: 1.6;
  color: #323130;
  font-size: 16px;
}

.article-text h1, .article-text h2, .article-text h3 {
  color: #323130;
  margin-top: 24px;
  margin-bottom: 12px;
}

.article-text p {
  margin-bottom: 16px;
}

.article-text code {
  background: #f3f2f1;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 14px;
}

.article-text pre {
  background: #f3f2f1;
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 16px 0;
}

/* Command Prompt */
.command-prompt {
  background: #0c0c0c;
  border-radius: 4px;
  overflow: hidden;
  font-family: 'Consolas', 'Courier New', monospace;
  margin: 16px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cmd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2d2d30;
  padding: 8px 12px;
  font-size: 12px;
  color: #cccccc;
}

.cmd-controls {
  display: flex;
  gap: 8px;
}

.cmd-control {
  color: #cccccc;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 2px;
  transition: background-color 0.1s ease;
}

.cmd-control:hover {
  background: #3e3e42;
}

.cmd-body {
  padding: 16px;
  background: #0c0c0c;
  color: #cccccc;
  font-size: 14px;
  line-height: 1.4;
}

.cmd-line {
  margin-bottom: 8px;
}

.cmd-prompt {
  color: #cccccc;
  margin-right: 8px;
}

.cmd-command {
  color: #ffffff;
}

.cmd-output {
  margin: 12px 0;
  padding-left: 0;
  color: #cccccc;
  white-space: pre-wrap;
}

.cmd-cursor {
  background: #cccccc;
  color: #0c0c0c;
  animation: blink 1s infinite;
}

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

/* File Explorer Sidebar */
.file-explorer {
  background: #faf9f8;
  border-top: 1px solid #e1dfdd;
  padding: 16px;
}

.explorer-sidebar {
  display: flex;
  gap: 32px;
}

.sidebar-section {
  flex: 1;
}

.sidebar-header {
  font-size: 14px;
  font-weight: 600;
  color: #323130;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e1dfdd;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: #605e5c;
  cursor: pointer;
  transition: background-color 0.1s ease;
  margin-bottom: 2px;
}

.sidebar-item:hover {
  background: #f3f2f1;
}

.sidebar-item.active {
  background: #e3f2fd;
  color: #0078d4;
}

/* Windows Taskbar */
.windows-taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 100;
}

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

.start-button {
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background-color 0.1s ease;
}

.start-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.start-button.active {
  background: rgba(255, 255, 255, 0.2);
}

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

.taskbar-app {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.1s ease;
  position: relative;
}

.taskbar-app:hover {
  background: rgba(255, 255, 255, 0.2);
}

.taskbar-app.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
}

.taskbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: text;
  transition: all 0.1s ease;
  min-width: 200px;
}

.search-box:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

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

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

.tray-icons {
  display: flex;
  gap: 8px;
}

.tray-icons svg {
  color: #ffffff;
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 0.1s ease;
}

.tray-icons svg:hover {
  opacity: 1;
}

.clock {
  text-align: right;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.1s ease;
}

.clock:hover {
  background: rgba(255, 255, 255, 0.1);
}

.time {
  font-weight: 400;
}

.date {
  font-size: 12px;
  opacity: 0.8;
}

/* Notification Toast */
.notification-toast {
  position: absolute;
  bottom: 60px;
  right: 16px;
  width: 320px;
  background: #ffffff;
  border: 1px solid #e1dfdd;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 16px;
  display: flex;
  gap: 12px;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 200;
}

.notification-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-icon {
  width: 32px;
  height: 32px;
  background: #0078d4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-size: 14px;
  font-weight: 600;
  color: #323130;
  margin-bottom: 4px;
}

.notification-message {
  font-size: 13px;
  color: #605e5c;
  line-height: 1.4;
}

/* ======================================
   RESPONSIVE DESIGN
   ====================================== */

@media (max-width: 1024px) {
  .windows-window {
    top: 2%;
    left: 2%;
    right: 2%;
  }
  
  .explorer-sidebar {
    flex-direction: column;
    gap: 16px;
  }
  
  .taskbar-center {
    display: none;
  }
}

@media (max-width: 768px) {
  .windows-window {
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
  }
  
  .article-content {
    padding: 16px;
  }
  
  .file-explorer {
    padding: 12px;
  }
  
  .notification-toast {
    width: calc(100vw - 32px);
    right: 16px;
  }
  
  .windows-taskbar {
    padding: 0 8px;
  }
  
  .search-box {
    display: none;
  }
  
  .tray-icons {
    gap: 4px;
  }
  
  .clock {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .window-titlebar {
    padding: 0 8px;
  }
  
  .window-title {
    font-size: 13px;
  }
  
  .window-control {
    width: 40px;
    height: 32px;
  }
  
  .article-content {
    padding: 12px;
  }
  
  .cmd-body {
    padding: 12px;
    font-size: 13px;
  }
  
  .breadcrumb {
    font-size: 13px;
  }
  
  .sidebar-item {
    font-size: 13px;
  }
  
  .notification-toast {
    bottom: 56px;
    padding: 12px;
  }
}

/* ======================================
   ACCESSIBILITY IMPROVEMENTS
   ====================================== */

/* Focus styles */
.window-control:focus,
.start-button:focus,
.taskbar-app:focus,
.sidebar-item:focus {
  outline: 2px solid #0078d4;
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .windows-window {
    border: 2px solid #000000;
  }
  
  .window-titlebar {
    border-bottom: 2px solid #000000;
  }
  
  .content-header {
    border-bottom: 2px solid #000000;
  }
  
  .simple-article {
    border: 2px solid #000000;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .notification-toast {
    transition: none;
  }
  
  .cmd-cursor {
    animation: none;
  }
  
  .window-control:hover {
    transform: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .windows-window {
    background: #2d2d30;
    color: #cccccc;
  }
  
  .window-titlebar {
    background: #3c3c3c;
    border-bottom-color: #484848;
  }
  
  .window-title {
    color: #cccccc;
  }
  
  .window-control {
    color: #cccccc;
  }
  
  .window-control:hover {
    background: #484848;
  }
  
  .content-header {
    background: #383838;
    border-bottom-color: #484848;
  }
  
  .article-content {
    background: #2d2d30;
  }
  
  .article-text {
    color: #cccccc;
  }
  
  .file-explorer {
    background: #383838;
    border-top-color: #484848;
  }
  
  .sidebar-header {
    color: #cccccc;
    border-bottom-color: #484848;
  }
  
  .sidebar-item {
    color: #a6a6a6;
  }
  
  .sidebar-item:hover {
    background: #484848;
  }
  
  .notification-toast {
    background: #2d2d30;
    border-color: #484848;
    color: #cccccc;
  }
  
  .notification-title {
    color: #ffffff;
  }
  
  .notification-message {
    color: #a6a6a6;
  }
  
  /* Dark mode for simple layout */
  .simple-article {
    background: #2d2d30;
    color: #cccccc;
  }
  
  .simple-article h1 {
    color: #ffffff;
  }
  
  .article-description {
    background: #383838;
    color: #cccccc;
  }
  
  .article-body {
    color: #cccccc;
  }
  
  .coming-soon {
    background: linear-gradient(135deg, #383838, #2d2d30);
    border-color: #484848;
  }
  
  .coming-soon h3 {
    color: #cccccc;
  }
  
  .coming-soon p {
    color: #a6a6a6;
  }
} 