/* Netscape Navigator 1996 Browser Window CSS */
@font-face {
    font-family: W95;
    src:
        url('./font/w95font.woff'),
        url('./font/w95font.woff2'),
        url('./font/w95font.otf');
}
@font-face {
    font-family: W95;
    font-weight: bold;
    src:
        url('./font/w95font-bold.woff'),
        url('./font/w95font-bold.woff2'),
        url('./font/w95font-bold.otf');
}

:root {
  --ns-gray: #c0c0c0;
  --ns-dark-gray: #808080;
  --ns-light-gray: #dfdfdf;
  --ns-white: #ffffff;
  --ns-black: #000000;
  --ns-blue: #000080;
  --ns-button-shadow: #404040;
  --ns-toolbar-gray: #bdbdbd;
}

* {
  box-sizing: border-box;
  font-family: 'MS Sans Serif', W95, 'Times New Roman', Geneva, sans-serif;
}

/* Main browser window container */
.netscape-window {
  font-size: 18px;
  background-color: var(--ns-gray);
  border: 2px outset var(--ns-gray);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  max-width: 1100px;
  margin: 20px auto;
}

/* Title bar */
.netscape-titlebar {
  background: linear-gradient(to right, var(--ns-blue) 0%, #1084d0 100%);
  color: var(--ns-white);
  padding: 3px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  font-size: 14px;
}

.netscape-titlebar-text {
  display: flex;
  align-items: center;
  gap: 5px;
}

.netscape-icon {
  width: 16px;
  height: 16px;
  background: var(--ns-white);
  border: 1px solid var(--ns-black);
  display: inline-block;
}

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

.netscape-control-button {
  width: 16px;
  height: 14px;
  background-color: var(--ns-gray);
  border-top: 1px solid var(--ns-white);
  border-left: 1px solid var(--ns-white);
  border-right: 1px solid var(--ns-button-shadow);
  border-bottom: 1px solid var(--ns-button-shadow);
  font-size: 9px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.netscape-control-button:active {
  border-top: 1px solid var(--ns-button-shadow);
  border-left: 1px solid var(--ns-button-shadow);
  border-right: 1px solid var(--ns-white);
  border-bottom: 1px solid var(--ns-white);
}

/* Menu bar */
.netscape-menubar {
  background-color: var(--ns-gray);
  padding: 2px 5px;
  border-bottom: 2px groove var(--ns-gray);
  display: flex;
  gap: 10px;
}

.netscape-menu-item {
  padding: 2px 8px;
  cursor: pointer;
  text-decoration: underline;
}

.netscape-menu-item:hover {
  background-color: var(--ns-blue);
  color: var(--ns-white);
}

/* Toolbar */
.netscape-toolbar {
  background-color: var(--ns-toolbar-gray);
  padding: 4px;
  border-bottom: 2px groove var(--ns-gray);
  display: flex;
  gap: 2px;
  align-items: center;
}

.netscape-button {
  font-family: 'MS Sans Serif', W95, 'Times New Roman', Geneva, sans-serif;
  background-color: var(--ns-gray);
  border-top: 2px solid var(--ns-white);
  border-left: 2px solid var(--ns-white);
  border-right: 2px solid var(--ns-button-shadow);
  border-bottom: 2px solid var(--ns-button-shadow);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
}

.netscape-button:active {
  border-top: 2px solid var(--ns-button-shadow);
  border-left: 2px solid var(--ns-button-shadow);
  border-right: 2px solid var(--ns-white);
  border-bottom: 2px solid var(--ns-white);
  padding-left: 13px;
  padding-top: 5px;
}

.netscape-button-icon {
  width: 20px;
  height: 20px;
  background-color: var(--ns-light-gray);
  border: 1px solid var(--ns-dark-gray);
  display: inline-block;
}

.netscape-separator {
  width: 2px;
  height: 28px;
  background: linear-gradient(to right, var(--ns-dark-gray), var(--ns-white));
  margin: 0 2px;
}

/* Location bar */
.netscape-location-bar {
  background-color: var(--ns-gray);
  padding: 4px;
  border-bottom: 2px groove var(--ns-gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

.netscape-location-label {
  font-weight: bold;
}

.netscape-location-input {
  flex: 1;
  padding: 3px;
  padding-bottom: 0;
  border-top: 2px solid var(--ns-button-shadow);
  border-left: 2px solid var(--ns-button-shadow);
  border-right: 2px solid var(--ns-white);
  border-bottom: 2px solid var(--ns-white);
  background-color: var(--ns-white);
  font-size: 14px;
}

/* Content area */
.netscape-content {
  background-color: var(--ns-white);
  border: 2px inset var(--ns-gray);
  margin: 4px;
  overflow: auto;
  position: relative;
  min-height: 300px;
}

.netscape-content-inner {
  padding: 10px;
}

.netscape-content-inner img {
  max-width: 100%;
}

/* Custom scrollbar (Webkit browsers) */
.netscape-content::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

.netscape-content::-webkit-scrollbar-track {
  background-color: var(--ns-white);
  border-left: 2px solid var(--ns-dark-gray);
}

.netscape-content::-webkit-scrollbar-thumb {
  background-color: var(--ns-gray);
  border-top: 2px solid var(--ns-white);
  border-left: 2px solid var(--ns-white);
  border-right: 2px solid var(--ns-button-shadow);
  border-bottom: 2px solid var(--ns-button-shadow);
}

.netscape-content::-webkit-scrollbar-button {
  background-color: var(--ns-gray);
  border-top: 2px solid var(--ns-white);
  border-left: 2px solid var(--ns-white);
  border-right: 2px solid var(--ns-button-shadow);
  border-bottom: 2px solid var(--ns-button-shadow);
  height: 16px;
}

.netscape-content::-webkit-scrollbar-button:vertical:decrement {
  background-image: linear-gradient(transparent 6px, var(--ns-black) 6px, var(--ns-black) 7px, transparent 7px);
}

.netscape-content::-webkit-scrollbar-button:vertical:increment {
  background-image: linear-gradient(transparent 8px, var(--ns-black) 8px, var(--ns-black) 9px, transparent 9px);
}

.netscape-content::-webkit-scrollbar-corner {
  background-color: var(--ns-gray);
}

/* Status bar */
.netscape-statusbar {
  background-color: var(--ns-gray);
  border-top: 2px groove var(--ns-gray);
  padding: 3px 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.netscape-status-text {
  flex: 1;
  border-top: 1px solid var(--ns-button-shadow);
  border-left: 1px solid var(--ns-button-shadow);
  border-right: 1px solid var(--ns-white);
  border-bottom: 1px solid var(--ns-white);
  padding: 2px 4px;
  background-color: var(--ns-white);
}

.netscape-status-icon {
  width: 16px;
  height: 16px;
  border: 1px solid var(--ns-dark-gray);
  background-color: var(--ns-light-gray);
}

/* Throbber animation */
.netscape-throbber {
  width: 32px;
  height: 32px;
  background-color: var(--ns-light-gray);
  border: 2px inset var(--ns-gray);
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--ns-blue);
}

.netscape-throbber.active {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Link styling for content */
.netscape-content a {
  color: #0000EE;
  text-decoration: underline;
}

.netscape-content a:visited {
  color: #551A8B;
}

.netscape-content a:active {
  color: #EE0000;
}

/* Typography for content */
.netscape-content h1 {
  font-size: 24px;
  font-weight: bold;
  margin: 10px 0;
}

.netscape-content h2 {
  font-size: 20px;
  font-weight: bold;
  margin: 8px 0;
}

.netscape-content p {
  margin: 10px 0;
  line-height: 1.4;
}

/* Windows 95 Taskbar */
.win95-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background-color: var(--ns-gray);
  border-top: 2px solid var(--ns-white);
  display: flex;
  align-items: center;
  padding: 2px;
  font-family: 'MS Sans Serif', W95, Geneva, sans-serif;
  font-size: 14px;
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.win95-start-button {
  background: url(./start.svg) no-repeat left 5px center;
  background-size: contain;
  font-family: 'MS Sans Serif', W95, 'Times New Roman', Geneva, sans-serif;
  background-color: var(--ns-gray);
  border-top: 2px solid var(--ns-white);
  border-left: 2px solid var(--ns-white);
  border-right: 2px solid var(--ns-button-shadow);
  border-bottom: 2px solid var(--ns-button-shadow);
  padding: 2px 5px 2px 30px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  margin-right: 4px;
}

.win95-start-button:active {
  border-top: 2px solid var(--ns-button-shadow);
  border-left: 2px solid var(--ns-button-shadow);
  border-right: 2px solid var(--ns-white);
  border-bottom: 2px solid var(--ns-white);
}

.win95-taskbar-separator {
  width: 2px;
  height: 22px;
  background: linear-gradient(to right, var(--ns-dark-gray), var(--ns-white));
  margin: 0 2px;
}

.win95-taskbar-items {
  flex: 1;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
}

.win95-taskbar-item {
  background-color: var(--ns-gray);
  border-top: 2px solid var(--ns-white);
  border-left: 2px solid var(--ns-white);
  border-right: 2px solid var(--ns-button-shadow);
  border-bottom: 2px solid var(--ns-button-shadow);
  padding: 2px 8px;
  cursor: pointer;
  white-space: nowrap;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win95-taskbar-item.active {
  border-top: 2px solid var(--ns-button-shadow);
  border-left: 2px solid var(--ns-button-shadow);
  border-right: 2px solid var(--ns-white);
  border-bottom: 2px solid var(--ns-white);
}

.win95-taskbar-item-icon {
  width: 16px;
  height: 16px;
  background-color: var(--ns-light-gray);
  border: 1px solid var(--ns-dark-gray);
  flex-shrink: 0;
}

.win95-system-tray {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  border-top: 1px solid var(--ns-button-shadow);
  border-left: 1px solid var(--ns-button-shadow);
  border-right: 1px solid var(--ns-white);
  border-bottom: 1px solid var(--ns-white);
  height: 22px;
  margin-left: 4px;
}

.win95-tray-icon {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.win95-clock {
  padding: 0 8px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  border-left: 1px solid var(--ns-dark-gray);
  height: 100%;
  display: flex;
  align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .netscape-window {
    max-width: 100%;
    margin: 10px;
    font-size: 18px;
  }
  
  .netscape-titlebar {
    font-size: 10px;
    padding: 2px 4px;
  }
  
  .netscape-menubar {
    flex-wrap: wrap;
    gap: 5px;
    font-size: 10px;
  }
  
  .netscape-menu-item {
    padding: 2px 4px;
  }
  
  .netscape-toolbar {
    flex-wrap: wrap;
    padding: 3px;
  }
  
  .netscape-button {
    padding: 3px 8px;
    font-size: 10px;
    min-height: 24px;
    flex-shrink: 1;
  }
  
  .netscape-button-icon {
    width: 16px;
    height: 16px;
  }
  
  .netscape-separator {
    height: 24px;
  }
  
  .netscape-throbber {
    width: 28px;
    height: 28px;
  }
  
  .netscape-location-bar {
    flex-wrap: wrap;
  }
  
  .netscape-location-input {
    font-size: 11px;
    min-width: 0;
  }
  
  .netscape-content {
    min-height: 200px;
    margin: 2px;
  }
  
  .netscape-content-inner {
    padding: 8px;
  }
  
  .netscape-statusbar {
    font-size: 10px;
    flex-wrap: wrap;
  }
  
  .win95-taskbar-items {
    display: none;
  }
  
  .win95-start-button {
    font-size: 10px;
    padding: 2px 4px;
  }
  
  .win95-clock {
    font-size: 10px;
    padding: 0 4px;
  }
}

@media (max-width: 480px) {
  .netscape-window {
    margin: 5px;
    font-size: 15px;
  }
  
  .netscape-titlebar-text {
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .netscape-toolbar {
    gap: 1px;
  }
  
  .netscape-button {
    padding: 2px 6px;
    font-size: 9px;
    min-height: 22px;
  }
  
  .netscape-button span:not(.netscape-button-icon) {
    display: none;
  }
  
  .netscape-location-label {
    display: none;
  }
  
  .netscape-content {
    min-height: 150px;
  }
  
  .netscape-content h1 {
    font-size: 20px;
  }
  
  .netscape-content h2 {
    font-size: 18px;
  }
  
  .win95-system-tray .win95-tray-icon:not(:last-child) {
    display: none;
  }
}

/* Add padding to body to prevent taskbar overlap */
body {
  padding-bottom: 32px;
}
