/* ==========================================================================
   hangout  — 2001–2003 Apple Aqua Design System Tokens & Base Styles
   Authentic Mac OS X / Apple Portal Aesthetic (No Emojis, No Icons)
   Typography: Option 3 — Mac OS X Native System Font (Lucida Grande / Plus Jakarta Sans)
   ========================================================================== */

/* Google Fonts: Plus Jakarta Sans (Option 3: Mac OS X Native System Feel) */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600;1,700&display=swap");

:root {
  /* Option 3 Typography: Mac OS X Native System UI Font */
  --font-serif:
    "Plus Jakarta Sans", "Lucida Grande", "Geneva", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans:
    "Plus Jakarta Sans", "Lucida Grande", "Geneva", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Menlo", "Monaco", "Courier New", monospace;

  /* Surfaces & Canvas (Clean, grounded, raw HTML/CSS feel) */
  --bg-canvas: #ffffff;
  --bg-stripe-1: #ffffff;
  --bg-stripe-2: #f1f1f1;
  --card-bg: #ffffff;
  --card-border: #b8b8b8;
  --card-border-subtle: #d8d8d8;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

  /* Text & Ink */
  --text-primary: #111111;
  --text-secondary: #4a4a4a;
  --text-muted: #6e6e6e;
  --text-link: #0044bb;
  --text-link-hover: #002277;

  /* Brushed Metal Bar Tokens (Early Mac OS X / 2001-2003 Apple.com) */
  --metal-bg-top: #e5e5e5;
  --metal-bg-mid-top: #d1d1d1;
  --metal-bg-mid-bottom: #c4c4c4;
  --metal-bg-bottom: #d9d9d9;
  --metal-border-outer: #8f8f8f;
  --metal-border-inner: rgba(255, 255, 255, 0.75);

  /* Aqua Blue Gel Tokens */
  --aqua-blue-top: #72abf8;
  --aqua-blue-mid-top: #4088e8;
  --aqua-blue-mid-bottom: #246ed4;
  --aqua-blue-bottom: #3c87e8;
  --aqua-blue-border: #1c52a4;
  --aqua-blue-text: #ffffff;

  /* Platinum / Graphite Neutral Gel Tokens */
  --aqua-plat-top: #ffffff;
  --aqua-plat-mid-top: #ececec;
  --aqua-plat-mid-bottom: #dbdbdb;
  --aqua-plat-bottom: #eeeeee;
  --aqua-plat-border: #9d9d9d;
  --aqua-plat-text: #222222;

  /* Classic Mac OS X Traffic Light Accents */
  --traffic-red: #ff5f56;
  --traffic-red-border: #e0443e;
  --traffic-yellow: #ffbd2e;
  --traffic-yellow-border: #dea123;
  --traffic-green: #27c93f;
  --traffic-green-border: #1aab29;

  /* Spacing Scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 20px;
  --space-xl: 28px;
  --space-2xl: 40px;

  /* Radii */
  --radius-micro: 2px;
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-pill: 9999px;
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  overflow-x: hidden;
}

/* Apple 2001 Header Pinstripe Background */
.pinstripe-header {
  background-image: repeating-linear-gradient(
    180deg,
    var(--bg-stripe-1) 0px,
    var(--bg-stripe-1) 2px,
    var(--bg-stripe-2) 2px,
    var(--bg-stripe-2) 4px
  );
  border-bottom: 1px solid var(--card-border-subtle);
}

/* Classic Apple Links */
a {
  color: var(--text-link);
  text-decoration: underline;
  transition: color 0.1s ease;
}

a:hover {
  color: var(--text-link-hover);
}

/* Typography Hierarchy (Option 3: Mac OS X System Typography) */
h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #111111;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   Aqua Buttons & Gel Controls (Authentic 2001-2003 Two-Stop Gloss)
   ========================================================================== */

.aqua-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  outline: none;
  position: relative;
  transition:
    filter 0.1s ease,
    transform 0.08s ease;
}

/* Big Hero Aqua Button Variant */
.aqua-button-large {
  font-size: 16px;
  font-weight: 700;
  padding: 13px 36px;
  letter-spacing: 0.015em;
}

/* Primary Blue Aqua Button */
.aqua-button-blue {
  color: var(--aqua-blue-text);
  background: linear-gradient(
    180deg,
    var(--aqua-blue-top) 0%,
    var(--aqua-blue-mid-top) 49%,
    var(--aqua-blue-mid-bottom) 50%,
    var(--aqua-blue-bottom) 100%
  );
  border: 1px solid var(--aqua-blue-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.2);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
}

.aqua-button-blue:hover {
  filter: brightness(1.06);
}

.aqua-button-blue:active {
  background: linear-gradient(
    180deg,
    var(--aqua-blue-mid-bottom) 0%,
    var(--aqua-blue-bottom) 49%,
    var(--aqua-blue-top) 50%,
    var(--aqua-blue-mid-top) 100%
  );
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.5),
    0 1px 1px rgba(255, 255, 255, 0.4);
  transform: translateY(1px);
}

/* Secondary Platinum Aqua Button */
.aqua-button-platinum {
  color: var(--aqua-plat-text);
  background: linear-gradient(
    180deg,
    var(--aqua-plat-top) 0%,
    var(--aqua-plat-mid-top) 49%,
    var(--aqua-plat-mid-bottom) 50%,
    var(--aqua-plat-bottom) 100%
  );
  border: 1px solid var(--aqua-plat-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.12);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.aqua-button-platinum:hover {
  filter: brightness(1.03);
}

.aqua-button-platinum:active {
  background: linear-gradient(
    180deg,
    var(--aqua-plat-mid-bottom) 0%,
    var(--aqua-plat-bottom) 49%,
    var(--aqua-plat-mid-top) 50%,
    var(--aqua-plat-top) 100%
  );
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.3),
    0 1px 1px rgba(255, 255, 255, 0.5);
  transform: translateY(1px);
}

/* ==========================================================================
   2001 Apple Aqua Bevel / Platinum Micro-Tabs (Direction 2 - Anti-Slop)
   Crisp 2px radius, metallic gradient, 1px border. No pastel pill tags.
   ========================================================================== */

.micro-tab-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-micro);
  border: 1px solid #b0b0b0;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #ececec 48%,
    #dfdfdf 50%,
    #ececec 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 1px rgba(0, 0, 0, 0.06);
  color: #2d2d2d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  user-select: none;
}

/* Freshness Micro-Stamps (Option 3: Mac OS X System Typography, No Emojis, No Icons) */
.freshness-stamp {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-micro);
  white-space: nowrap;
  user-select: none;
}

.freshness-new {
  color: #155724;
  background: linear-gradient(180deg, #fafffa 0%, #e2f0d9 100%);
  border: 1px solid #94c18f;
  box-shadow: inset 0 1px 0 #ffffff;
}

.freshness-active {
  color: #533f03;
  background: linear-gradient(180deg, #fffffa 0%, #fff3cd 100%);
  border: 1px solid #d8c26e;
  box-shadow: inset 0 1px 0 #ffffff;
}

.freshness-expiring {
  color: #721c24;
  background: linear-gradient(180deg, #fffdfd 0%, #f8d7da 100%);
  border: 1px solid #dda5a9;
  box-shadow: inset 0 1px 0 #ffffff;
}

/* ==========================================================================
   Brushed Metal Pill Banner (Classic Hot News Style)
   ========================================================================== */

.brushed-metal-bar {
  display: flex;
  align-items: center;
  background: linear-gradient(
    180deg,
    var(--metal-bg-top) 0%,
    var(--metal-bg-mid-top) 48%,
    var(--metal-bg-mid-bottom) 50%,
    var(--metal-bg-bottom) 100%
  );
  border: 1px solid var(--metal-border-outer);
  border-radius: var(--radius-pill);
  box-shadow:
    inset 0 1px 0 var(--metal-border-inner),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 3px;
  overflow: hidden;
}

.metal-badge {
  background: linear-gradient(
    180deg,
    #b5b5b5 0%,
    #9c9c9c 50%,
    #8e8e8e 51%,
    #a0a0a0 100%
  );
  border-radius: var(--radius-pill);
  border: 1px solid #737373;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
  padding: 3px 10px;
  white-space: nowrap;
}

.metal-content {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #222222;
  padding: 0 10px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   Mac OS X Window Dots (Traffic Lights)
   ========================================================================== */

.window-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    0 1px 1px rgba(0, 0, 0, 0.15);
}

.window-dot-red {
  background: radial-gradient(
    circle at 35% 35%,
    #ff8d85 0%,
    var(--traffic-red) 70%,
    #d8332a 100%
  );
  border: 1px solid var(--traffic-red-border);
}

.window-dot-yellow {
  background: radial-gradient(
    circle at 35% 35%,
    #ffe275 0%,
    var(--traffic-yellow) 70%,
    #c98a11 100%
  );
  border: 1px solid var(--traffic-yellow-border);
}

.window-dot-green {
  background: radial-gradient(
    circle at 35% 35%,
    #69e87d 0%,
    var(--traffic-green) 70%,
    #159323 100%
  );
  border: 1px solid var(--traffic-green-border);
}
