﻿/* ============================================================
   playsunblocked Overseas — Neo-Brutalism Brand CSS
   Primary: #FF5C28 (Vibrant Coral-Orange)
   Font: Space Grotesk + Inter
   ============================================================ */

:root {
  /* Brand Primary — Single hue, tints only */
  --color-primary: #FF5C28;
  --color-primary-hover: #E84A1A;
  --color-primary-active: #D03E0F;
  --color-primary-light: #FFE4D8;
  --color-primary-lighter: #FFF2EC;
  --color-primary-lightest: #FFFAF7;
  --color-primary-dark: #B8350A;

  /* Light Mode Neutrals */
  --color-bg: #FFF8F0;
  --color-bg-alt: #F5EDE0;
  --color-surface: #FFFFFF;
  --color-surface-alt: #FAF4EB;
  --color-surface-sunken: #F0E8DC;
  --color-border: #1A1A1A;
  --color-border-light: #D4CCC0;
  --color-border-strong: #1A1A1A;
  --color-text: #1A1A1A;
  --color-text-secondary: #5C5C5C;
  --color-text-tertiary: #8C8C8C;
  --color-text-inverse: #FFFFFF;
  --color-overlay: rgba(26, 26, 26, 0.6);

  /* Status Colors — Semantic only, not for identity/category */
  --state-success: #2D8F4E;
  --state-success-bg: #DCFCE7;
  --state-warning: #C77E00;
  --state-warning-bg: #FEF3C7;
  --state-error: #DC2626;
  --state-error-bg: #FEE2E2;
  --state-info: #2563EB;
  --state-info-bg: #DBEAFE;

  /* Typography */
  --font-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --brand-font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --brand-font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Line Heights */
  --brand-leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --brand-leading-relaxed: 1.7;

  /* Radius — Restrained scale */
  --brand-radius-sm: 2px;
  --brand-radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Borders */
  --border-width-sm: 1px;
  --border-width: 2px;
  --border-width-lg: 3px;
  --border-width-xl: 4px;

  /* Shadows — Static surfaces: alpha <= 0.05 */
  --shadow-xs: 0 1px 2px rgba(26, 26, 26, 0.03);
  --shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 2px 6px rgba(26, 26, 26, 0.04);
  --shadow-lg: 0 4px 12px rgba(26, 26, 26, 0.05);

  /* Floating layer shadows — alpha > 0.05 allowed */
  --shadow-float: 0 8px 24px rgba(26, 26, 26, 0.15);
  --shadow-modal: 0 12px 40px rgba(26, 26, 26, 0.2);

  /* Neo-Brutalist hard shadow — decorative offset, not depth */
  --brutalist-shadow-sm: 3px 3px 0 0 #1A1A1A;
  --brutalist-shadow-md: 4px 4px 0 0 #1A1A1A;
  --brutalist-shadow-lg: 6px 6px 0 0 #1A1A1A;
  --brutalist-shadow-xl: 8px 8px 0 0 #1A1A1A;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Layout */
  --max-width: 1280px;
  --header-height: 72px;
}

/* Dark Mode */
.dark {
  --color-primary: #FF6B3D;
  --color-primary-hover: #FF7A4F;
  --color-primary-active: #E85A2E;
  --color-primary-light: #4A2418;
  --color-primary-lighter: #3A1C13;
  --color-primary-lightest: #2E1610;
  --color-primary-dark: #FF8A5C;

  --color-bg: #141414;
  --color-bg-alt: #1E1E1E;
  --color-surface: #1E1E1E;
  --color-surface-alt: #282828;
  --color-surface-sunken: #0F0F0F;
  --color-border: #F0F0F0;
  --color-border-light: #3A3A3A;
  --color-border-strong: #FFFFFF;
  --color-text: #F5F5F5;
  --color-text-secondary: #B0B0B0;
  --color-text-tertiary: #808080;
  --color-text-inverse: #1A1A1A;
  --color-overlay: rgba(0, 0, 0, 0.7);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.4);

  --brutalist-shadow-sm: 3px 3px 0 0 #F0F0F0;
  --brutalist-shadow-md: 4px 4px 0 0 #F0F0F0;
  --brutalist-shadow-lg: 6px 6px 0 0 #F0F0F0;
  --brutalist-shadow-xl: 8px 8px 0 0 #F0F0F0;
}

/* Typography Utility Classes */
.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--brand-font-sans); }
.font-mono { font-family: var(--brand-font-mono); }

/* Neo-Brutalist Component Utilities */
.brutalist-border {
  border: var(--border-width) solid var(--color-border);
}

.brutalist-border-thick {
  border: var(--border-width-lg) solid var(--color-border);
}

.brutalist-shadow {
  box-shadow: var(--brutalist-shadow-md);
}

.brutalist-shadow-lg {
  box-shadow: var(--brutalist-shadow-lg);
}

.brutalist-card {
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--brutalist-shadow-md);
  background: var(--color-surface);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.brutalist-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--brutalist-shadow-lg);
}

.brutalist-btn {
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--brutalist-shadow-sm);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  cursor: pointer;
}

.brutalist-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--brutalist-shadow-md);
}

.brutalist-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 0 0 0 0 var(--color-border);
}

/* Base body styles */
body {
  font-family: var(--brand-font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--brand-leading-tight);
  letter-spacing: -0.02em;
}
