/* ========================
   Windows 95 Old School Theme
   ======================== */

/* Base theme colors for Old School */
:root[data-design="oldschool"] {
  --font-display: 'MS Sans Serif', 'Microsoft Sans Serif', Arial, sans-serif;
  --font-sans: 'MS Sans Serif', 'Microsoft Sans Serif', Arial, sans-serif;

  --color-bg: #008080;
  --color-bg-accent: #008080;
  --color-card: #c0c0c0;
  --color-border: #dfdfdf;
  --color-border-strong: #808080;
  --color-border-shadow: #ffffff;
  --color-border-dark: #404040;
  --color-text: #000000;
  --color-text-muted: #000080;
  --color-accent: #000080;
  --shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
  --shadow-outset: inset -1px -1px 0 #ffffff, inset 1px 1px 0 #808080;
  --focus-ring: 1px dotted #000000;
  --dropdown-arrow: #000000;
}

/* Old School light mode (same as above) */
:root[data-design="oldschool"][data-theme="light"] {
  --color-bg: #008080;
  --color-bg-accent: #008080;
  --color-card: #c0c0c0;
}

/* Old School dark mode */
:root[data-design="oldschool"][data-theme="dark"] {
  --color-bg: #000080;
  --color-bg-accent: #000080;
  --color-card: #808080;
  --color-text: #c0c0c0;
  --color-text-muted: #dfdfdf;
}

/* Old School Card */
:root[data-design="oldschool"] .card {
  background: var(--color-card);
  border: 2px solid;
  border-color: var(--color-border-shadow) var(--color-border-dark) var(--color-border-dark) var(--color-border-shadow);
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  font-family: 'MS Sans Serif', 'Microsoft Sans Serif', Arial, sans-serif;
}

:root[data-design="oldschool"] .card__header {
  gap: 0.5rem;
}

:root[data-design="oldschool"] .name {
  font-family: 'MS Sans Serif', 'Microsoft Sans Serif', Arial, sans-serif;
  font-size: clamp(1.5rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

:root[data-design="oldschool"] .tagline {
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 400;
}

:root[data-design="oldschool"] .divider {
  height: 2px;
  background: linear-gradient(90deg, var(--color-border-shadow) 0%, var(--color-border-shadow) 50%, var(--color-border-dark) 50%, var(--color-border-dark) 100%);
}

/* Old School Polaroid */
:root[data-design="oldschool"] .polaroid {
  background: var(--color-card);
  border: 2px solid;
  border-color: var(--color-border-shadow) var(--color-border-dark) var(--color-border-dark) var(--color-border-shadow);
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  padding: 4px;
}

:root[data-design="oldschool"] .polaroid img {
  border: none;
  border-radius: 0;
  filter: none;
}

/* Old School Buttons */
:root[data-design="oldschool"] .btn {
  --btn-border: var(--color-border);
  background: var(--color-card);
  color: var(--color-text);
  border: 2px solid;
  border-color: var(--color-border-shadow) var(--color-border-dark) var(--color-border-dark) var(--color-border-shadow);
  border-radius: 0;
  font-family: 'MS Sans Serif', 'Microsoft Sans Serif', Arial, sans-serif;
  padding: 0.5rem 0.75rem;
  min-width: auto;
}

:root[data-design="oldschool"] .btn::before {
  display: none;
}

:root[data-design="oldschool"] .btn:hover,
:root[data-design="oldschool"] .btn:focus-visible {
  border-color: var(--color-border-shadow) var(--color-border-dark) var(--color-border-dark) var(--color-border-shadow);
  background: var(--color-card);
  color: var(--color-text);
}

:root[data-design="oldschool"] .btn:active {
  border-color: var(--color-border-dark) var(--color-border-shadow) var(--color-border-shadow) var(--color-border-dark);
  transform: translateY(0);
}

/* Old School brand button colors */
:root[data-design="oldschool"] .btn--linkedin,
:root[data-design="oldschool"] .btn--github,
:root[data-design="oldschool"] .btn--unsplash {
  --btn-border: var(--color-border);
  background: var(--color-card);
  color: var(--color-text);
}

:root[data-design="oldschool"] .btn--linkedin:hover,
:root[data-design="oldschool"] .btn--github:hover,
:root[data-design="oldschool"] .btn--unsplash:hover,
:root[data-design="oldschool"] .btn--linkedin:focus-visible,
:root[data-design="oldschool"] .btn--github:focus-visible,
:root[data-design="oldschool"] .btn--unsplash:focus-visible {
  background: var(--color-card);
  border-color: var(--color-border-shadow) var(--color-border-dark) var(--color-border-dark) var(--color-border-shadow);
  color: var(--color-text);
}

/* Old School Theme Toggle */
:root[data-design="oldschool"] .theme-toggle__switch {
  background: var(--color-card);
  border: 2px solid;
  border-color: var(--color-border-shadow) var(--color-border-dark) var(--color-border-dark) var(--color-border-shadow);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

:root[data-design="oldschool"] .theme-toggle__switch:hover,
:root[data-design="oldschool"] .theme-toggle__switch[aria-pressed="true"] {
  border-color: var(--color-border-shadow) var(--color-border-dark) var(--color-border-dark) var(--color-border-shadow);
}

:root[data-design="oldschool"] .theme-toggle__slider {
  background: var(--color-card);
  border: 1px solid var(--color-border-strong);
  border-radius: 0;
}

/* Old School Theme Dropdown */
:root[data-design="oldschool"] .theme-dropdown {
  background: var(--color-card) url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 0.3rem center;
  background-size: 1rem;
  color: var(--color-text);
  border: 2px solid;
  border-color: var(--color-border-shadow) var(--color-border-dark) var(--color-border-dark) var(--color-border-shadow);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  font-family: 'MS Sans Serif', 'Microsoft Sans Serif', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  padding: 0.35rem 0.5rem;
  padding-right: 1.5rem;
  cursor: pointer;
  appearance: none;
}

:root[data-design="oldschool"] .theme-dropdown:hover {
  border-color: var(--color-border-shadow) var(--color-border-dark) var(--color-border-dark) var(--color-border-shadow);
}

:root[data-design="oldschool"] .theme-dropdown:focus {
  outline: 1px dotted var(--color-text);
  outline-offset: -3px;
  border-color: var(--color-border-shadow) var(--color-border-dark) var(--color-border-dark) var(--color-border-shadow);
}

:root[data-design="oldschool"] .theme-dropdown option {
  background: var(--color-card);
  color: var(--color-text);
  font-family: 'MS Sans Serif', 'Microsoft Sans Serif', Arial, sans-serif;
  font-size: 0.85rem;
  padding: 0.3rem;
}

:root[data-design="oldschool"] .theme-dropdown option:checked {
  background: var(--color-accent);
  color: var(--color-border-shadow);
}

/* Focus ring for Old School */
:root[data-design="oldschool"] :focus-visible {
  outline: 1px dotted var(--color-text);
  outline-offset: 2px;
}

/* Old School responsive adjustments */
@media (max-width: 560px) {
  :root[data-design="oldschool"] .theme-toggle__switch {
    width: 3rem;
    height: 1.75rem;
  }

  :root[data-design="oldschool"] .theme-toggle__slider {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Reduced motion for Old School */
@media (prefers-reduced-motion: reduce) {
  :root[data-design="oldschool"] * {
    transition: none !important;
  }
}
