/* ══════════════════════════════════════
   Windows 95 skin
   All rules scoped to [data-skin="vintage"]
   ══════════════════════════════════════ */

/* ── Override CSS vars ── */
[data-skin="vintage"],
[data-skin="vintage"][data-theme="dark"],
[data-skin="vintage"][data-theme="light"] {
  --paper:    #F0F0F0;
  --ink:      #000000;
  --mid:      #333333;
  --dim:      #666666;
  --rule:     #808080;
  --green:    #316AC5;
  --green-l:  #dce8f5;
  --green-m:  rgba(49, 106, 197, 0.08);

  --serif: Tahoma, 'MS Sans Serif', Arial, sans-serif;
  --sans:  Tahoma, 'MS Sans Serif', Arial, sans-serif;
  --mono:  Tahoma, 'MS Sans Serif', Arial, sans-serif;
}

/* ── Body: Win95 silver desktop ── */
[data-skin="vintage"] body {
  font-size: 11px;
  line-height: 1.5;
  background: #008080; /* classic Win95 teal desktop */
  -webkit-font-smoothing: auto;
  padding-right: 0;        /* no timeline sidebar */
  padding-bottom: 32px;    /* room for taskbar */
}

/* ── Hide timeline — doesn't fit the metaphor ── */
[data-skin="vintage"] .tl-aside { display: none; }

/* ── Masthead: toolbar bar ── */
[data-skin="vintage"] .masthead {
  background: #C0C0C0;
  height: auto;
  min-height: var(--masthead-h);
  padding: 6px 12px;
  border-bottom: 0;
  box-shadow:
    inset  1px  1px 0 #ffffff,
    inset -1px -1px 0 #808080,
    0 2px 0 #000;
}

[data-skin="vintage"] .masthead-name {
  font-size: 13px;
  font-family: Tahoma, Arial, sans-serif;
  font-weight: bold;
  color: #000;
}

[data-skin="vintage"] .masthead-nav a {
  font-size: 11px;
  font-family: Tahoma, Arial, sans-serif;
  color: #000;
  background: #C0C0C0;
  border: 2px outset #C0C0C0;
  padding: 2px 8px;
  display: inline-block;
  border-radius: 0;
  letter-spacing: 0;
  text-transform: none;
}

[data-skin="vintage"] .masthead-nav a:hover {
  background: #D8E0EC;
  color: #316AC5;
  text-decoration: none;
}

/* ── Window containers ── */
[data-skin="vintage"] .ed-section {
  padding: 0;
  border: 0;
  box-shadow:
    inset  1px  1px 0 #ffffff,
    inset -1px -1px 0 #808080,
    2px 2px 0 #000000;
  background: #F0F0F0;
  border-radius: 0;
  margin: 8px;
  max-width: calc(100% - 16px);
}

[data-skin="vintage"] .section-content {
  padding: 8px 12px 14px;
}

/* ── Intro section: also a window ── */
[data-skin="vintage"] .intro {
  padding: 0;
  box-shadow:
    inset  1px  1px 0 #ffffff,
    inset -1px -1px 0 #808080,
    2px 2px 0 #000000;
  background: #F0F0F0;
  margin: 8px;
  max-width: calc(100% - 16px);
}

[data-skin="vintage"] .intro-hero {
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  padding: 8px 12px 12px;
}

[data-skin="vintage"] .intro-copy { min-width: 0; }
[data-skin="vintage"] .intro-meta {
  margin-bottom: 6px;
  font-size: 11px;
  color: #333;
}
[data-skin="vintage"] .intro-deck {
  padding: 0;
  font-size: 12px;
  line-height: 1.55;
  max-width: none;
  color: #000;
}
[data-skin="vintage"] .intro-photo {
  max-width: 180px;
  border: 2px inset #C0C0C0;
  box-shadow: none;
  background: #ffffff;
}

/* ── Minimized windows: show only title bar ── */
[data-skin="vintage"] .win-minimized .section-content { display: none; }
[data-skin="vintage"] .intro.win-minimized > *:not(.win-titlebar) { display: none; }

/* ── Window title bar ── */
[data-skin="vintage"] .win-titlebar {
  background: linear-gradient(90deg, #000082 0%, #1084d0 100%);
  color: #ffffff;
  padding: 3px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-family: Tahoma, Arial, sans-serif;
  font-weight: bold;
  user-select: none;
  cursor: default;
  line-height: 1.3;
}

/* Inactive (minimized) window title bar */
[data-skin="vintage"] .win-minimized .win-titlebar {
  background: linear-gradient(90deg, #808080 0%, #A0A0A0 100%);
}

[data-skin="vintage"] .win-icon {
  font-style: normal;
  margin-right: 3px;
}

[data-skin="vintage"] .win-controls {
  display: flex;
  gap: 2px;
  margin-left: 4px;
}

[data-skin="vintage"] .win-btn {
  background: #C0C0C0;
  border: 2px outset #C0C0C0;
  color: #000;
  font-size: 9px;
  width: 16px;
  height: 14px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-family: Tahoma, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 0;
  flex-shrink: 0;
}

[data-skin="vintage"] .win-btn:active { border-style: inset; }

/* ── Section headings ── */
[data-skin="vintage"] .section-head {
  font-size: 13px;
  font-weight: bold;
  font-family: Tahoma, Arial, sans-serif;
  letter-spacing: 0;
  margin-bottom: 8px;
}

/* ── Filter buttons: Win95 raised ── */
[data-skin="vintage"] .filter-btn {
  background: #C0C0C0;
  border: 2px outset #C0C0C0;
  border-radius: 0;
  color: #000;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  padding: 3px 12px;
}

[data-skin="vintage"] .filter-btn:hover { background: #D8E0EC; color: #316AC5; border-color: #316AC5; }
[data-skin="vintage"] .filter-btn.active { background: #C0C0C0; border-style: inset; color: #000; border-color: #C0C0C0; }

/* ── Ticker strip ── */
[data-skin="vintage"] .proof-strip {
  max-width: calc(100% - 16px);
  margin: 8px;
  padding: 0;
}

[data-skin="vintage"] .proof-strip-inner {
  background: #F0F0F0;
  border: 2px inset #C0C0C0;
  padding: 0 10px;
}

[data-skin="vintage"] .ticker-track {
  animation-duration: 22s;
}

[data-skin="vintage"] .ticker-line {
  padding: 6px 0;
}

[data-skin="vintage"] .ticker-text {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  color: #000;
}

/* ── Feature sections ── */
[data-skin="vintage"] .feature-shell {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px;
}

[data-skin="vintage"] .feature-filters {
  margin-bottom: 8px;
}

[data-skin="vintage"] .feature-nav {
  padding: 4px;
  border: 2px inset #C0C0C0;
  background: #ffffff;
  gap: 2px;
}

[data-skin="vintage"] .feature-nav::before,
[data-skin="vintage"] .feature-option::before {
  display: none;
}

[data-skin="vintage"] .feature-option {
  padding: 5px 7px;
  gap: 2px;
  color: #000;
  transform: none;
}

[data-skin="vintage"] .feature-option:hover {
  background: #D8E0EC;
  color: #000;
}

[data-skin="vintage"] .feature-option.active {
  background: #316AC5;
  color: #ffffff;
}

[data-skin="vintage"] .feature-option-sub,
[data-skin="vintage"] .feature-option-meta {
  font-size: 10px;
  color: #555;
}

[data-skin="vintage"] .feature-option.active .feature-option-sub,
[data-skin="vintage"] .feature-option.active .feature-option-meta,
[data-skin="vintage"] .feature-option.active .feature-option-label {
  color: #ffffff;
}

[data-skin="vintage"] .feature-panel {
  background: #F0F0F0;
  border: 2px inset #C0C0C0;
  box-shadow: none;
  padding: 10px 12px;
}

[data-skin="vintage"] .feature-panel-title,
[data-skin="vintage"] .feature-panel-org,
[data-skin="vintage"] .feature-panel-meta,
[data-skin="vintage"] .feature-panel-summary,
[data-skin="vintage"] .feature-panel-copy,
[data-skin="vintage"] .feature-subrole-title,
[data-skin="vintage"] .feature-subrole-meta,
[data-skin="vintage"] .feature-link,
[data-skin="vintage"] .feature-tag {
  font-family: Tahoma, Arial, sans-serif;
}

[data-skin="vintage"] .feature-panel-title {
  font-size: 15px;
  letter-spacing: 0;
}

[data-skin="vintage"] .feature-panel-org,
[data-skin="vintage"] .feature-panel-meta,
[data-skin="vintage"] .feature-panel-summary,
[data-skin="vintage"] .feature-panel-copy,
[data-skin="vintage"] .feature-subrole-meta,
[data-skin="vintage"] .feature-subrole-points {
  font-size: 11px;
  color: #000;
}

[data-skin="vintage"] .feature-visual {
  border: 2px inset #C0C0C0;
  background: #ffffff;
}

[data-skin="vintage"] .feature-link {
  color: #0000EE;
  border: 0;
  padding-bottom: 0;
  text-decoration: underline;
}

[data-skin="vintage"] .feature-link:hover {
  color: #551A8B;
  opacity: 1;
}

[data-skin="vintage"] .feature-tag {
  background: #D4D0C8;
  color: #000;
  border: 1px solid #808080;
  border-radius: 0;
  font-size: 10px;
}

/* ── Customizer: dialog box ── */
[data-skin="vintage"] .customizer {
  background: #F0F0F0;
  border: 0;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080, 4px 4px 0 #000;
  border-radius: 0;
}

[data-skin="vintage"] .customizer-font-btn {
  border: 2px outset #C0C0C0;
  border-radius: 0;
  background: #C0C0C0;
  color: #000;
  font-size: 11px;
}
[data-skin="vintage"] .customizer-font-btn.active { border-style: inset; color: #000; }

/* ── Footer ── */
/* ── Win95 scrollbars ── */
[data-skin="vintage"] ::-webkit-scrollbar        { width: 16px; height: 16px; }
[data-skin="vintage"] ::-webkit-scrollbar-track  { background: #C0C0C0; }
[data-skin="vintage"] ::-webkit-scrollbar-thumb  { background: #C0C0C0; border: 2px outset #C0C0C0; }
[data-skin="vintage"] ::-webkit-scrollbar-button { background: #C0C0C0; border: 2px outset #C0C0C0; display: block; height: 16px; width: 16px; }

/* ── Theme toggle: hidden ── */
[data-skin="vintage"] .theme-toggle { display: none; }

/* ── Text selection ── */
[data-skin="vintage"] ::selection { background: #316AC5; color: #fff; }

/* ── Photos mini-tiles: Win95 icon frames ── */
[data-skin="vintage"] .mini-tile {
  border: 2px inset #C0C0C0;
  border-radius: 0;
  box-shadow: none;
}
[data-skin="vintage"] .mini-tile:hover { box-shadow: none; background: #E8EEFC; }

/* ── Skills ── */
[data-skin="vintage"] .skill-cat {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
}
[data-skin="vintage"] .skill-row {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
}

/* ══════════════════════════════════════
   TASKBAR
   ══════════════════════════════════════ */

[data-skin="vintage"] .vintage-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: #C0C0C0;
  box-shadow: inset 0 1px 0 #ffffff;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
  z-index: 9000;
  user-select: none;
}

/* ── Start button ── */
[data-skin="vintage"] .win-start-btn {
  background: #C0C0C0;
  border: 2px outset #C0C0C0;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  padding: 1px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  white-space: nowrap;
  flex-shrink: 0;
}
[data-skin="vintage"] .win-start-btn:active { border-style: inset; }
[data-skin="vintage"] .win-start-btn.open   { border-style: inset; }

[data-skin="vintage"] .win-start-logo {
  font-size: 14px;
  line-height: 1;
}

/* ── Taskbar separator ── */
[data-skin="vintage"] .win-taskbar-sep {
  width: 0;
  height: 22px;
  border-left: 1px solid #808080;
  border-right: 1px solid #fff;
  margin: 0 2px;
  flex-shrink: 0;
}

/* ── Window buttons strip ── */
[data-skin="vintage"] .win-taskbar-btns {
  display: flex;
  gap: 3px;
  align-items: center;
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

[data-skin="vintage"] .win-taskbar-btn {
  background: #C0C0C0;
  border: 2px outset #C0C0C0;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  padding: 1px 8px;
  cursor: pointer;
  height: 22px;
  max-width: 130px;
  min-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Active = currently-visible window = pressed look */
[data-skin="vintage"] .win-taskbar-btn.win-active {
  border-style: inset;
  background: #B8B8B8;
}

/* ── System tray ── */
[data-skin="vintage"] .win-systray {
  display: flex;
  align-items: center;
  padding: 0 8px;
  height: 22px;
  border: 1px inset #C0C0C0;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 60px;
  justify-content: center;
}


/* ══════════════════════════════════════
   START MENU
   ══════════════════════════════════════ */

[data-skin="vintage"] .win-startmenu {
  position: fixed;
  bottom: 30px;
  left: 4px;
  width: 220px;
  background: #C0C0C0;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080, 4px 4px 0 #000;
  z-index: 9500;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  display: flex;
  flex-direction: row;
}

/* Vertical header sidebar */
[data-skin="vintage"] .win-startmenu-sidebar {
  background: linear-gradient(180deg, #1a4fa0 0%, #316AC5 100%);
  width: 24px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8px;
  flex-shrink: 0;
}

[data-skin="vintage"] .win-startmenu-sidebar-text {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: rgba(255,255,255,0.9);
  letter-spacing: 2px;
}

/* Menu items */
[data-skin="vintage"] .win-startmenu-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

[data-skin="vintage"] .win-startmenu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  color: #000;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  text-align: left;
  width: 100%;
  white-space: nowrap;
}

[data-skin="vintage"] .win-startmenu-label {
  flex: 1;
  min-width: 0;
}

[data-skin="vintage"] .win-startmenu-state {
  color: #666;
  font-size: 10px;
  text-transform: capitalize;
  margin-left: 8px;
}

[data-skin="vintage"] .win-startmenu-item:hover {
  background: #316AC5;
  color: #fff;
  text-decoration: none;
}

[data-skin="vintage"] .win-startmenu-item:hover .win-startmenu-state {
  color: rgba(255, 255, 255, 0.85);
}

[data-skin="vintage"] .win-startmenu-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

[data-skin="vintage"] .win-startmenu-divider {
  height: 0;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #fff;
  margin: 3px 8px;
}


/* ══════════════════════════════════════
   SHUTDOWN DIALOG
   ══════════════════════════════════════ */

[data-skin="vintage"] .win-shutdown-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-skin="vintage"] .win-shutdown-dialog {
  background: #C0C0C0;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080, 4px 4px 0 #000;
  width: 300px;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
}

[data-skin="vintage"] .win-shutdown-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-skin="vintage"] .win-shutdown-body p { color: #000; }

[data-skin="vintage"] .win-shutdown-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px;
  border: 2px inset #C0C0C0;
  background: #fff;
}

[data-skin="vintage"] .win-shutdown-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

[data-skin="vintage"] .win-shutdown-hint {
  font-size: 10px;
  color: #555;
}

[data-skin="vintage"] .win-shutdown-btns {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

[data-skin="vintage"] .win-shutdown-btn {
  background: #C0C0C0;
  border: 2px outset #C0C0C0;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  padding: 3px 20px;
  cursor: pointer;
  min-width: 70px;
  text-align: center;
}

[data-skin="vintage"] .win-shutdown-btn:active { border-style: inset; }

/* "It is now safe..." black screen */
[data-skin="vintage"] .win-safe-to-turnoff {
  position: fixed;
  inset: 0;
  background: #000080;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 14px;
  color: #ffffff;
  text-align: center;
  flex-direction: column;
  gap: 12px;
}

[data-skin="vintage"] .win-boot-screen {
  position: fixed;
  inset: 0;
  background: #008080;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-skin="vintage"] .win-boot-shell {
  width: min(360px, calc(100vw - 24px));
  background: #C0C0C0;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080, 4px 4px 0 #000;
  padding: 16px 18px;
  font-family: Tahoma, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[data-skin="vintage"] .win-boot-title {
  font-size: 13px;
  font-weight: bold;
  color: #000;
}

[data-skin="vintage"] .win-boot-status {
  font-size: 11px;
  color: #333;
}

[data-skin="vintage"] .win-boot-progress {
  height: 18px;
  border: 2px inset #C0C0C0;
  background: #fff;
  padding: 2px;
}

[data-skin="vintage"] .win-boot-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #000082 0%, #1084d0 100%);
  transition: width 0.22s linear;
}

@media (max-width: 700px) {
  [data-skin="vintage"] .intro-hero,
  [data-skin="vintage"] .feature-shell {
    grid-template-columns: 1fr;
  }

  [data-skin="vintage"] .intro-photo {
    max-width: 160px;
  }
}
