/**
 * VETROAL BASE CSS
 * Shared styles for vetroal.se
 * Version 1.0
 *
 * Structure:
 * 1. CSS Variables (Themes)
 * 2. Reset
 * 3. Typography
 * 4. Win95 Components
 * 5. Buttons
 * 6. Forms
 * 7. Utilities
 */

/* ============================================
   1. CSS VARIABLES - THEMES
   ============================================ */

:root {
  /* Win95 Classic Gray */
  --win95-bg: #c0c0c0;
  --win95-dark: #808080;
  --win95-light: #ffffff;
  --win95-darker: #404040;
  --win95-blue: #000080;
  --win95-cyan: #1084d0;
  --win95-text: #000000;

  /* Pink Theme (Abraka, etc) */
  --pink-bg: #FFB6C1;
  --pink-primary: #FF69B4;
  --pink-dark: #DB7093;
  --pink-darker: #C71585;
  --pink-light: #FFE4E9;
  --pink-text: #4A0028;

  /* Gold/Desert Theme (Krypto) */
  --gold-primary: #FFD700;
  --gold-secondary: #FF8C00;
  --gold-accent: #FF4500;
  --gold-bg: #000000;
  --gold-text: #FFD700;

  /* Cyber Theme (Projects, About, 3D) */
  --cyber-pink: #ff69b4;
  --cyber-blue: #87ceeb;
  --cyber-purple: #da70d6;
  --cyber-dark: #5a3050;
  --cyber-bg: #000000;
  --cyber-fg: #00f6ff;

  /* Terminal Green (Func2wav) */
  --term-green: #7fdfaf;
  --term-green-dark: #3a7a5a;
  --term-bg: #1a3a2a;
  --term-fg: #7fdfaf;
  --term-bright: #5fef9f;

  /* Pink Theme additions */
  --pink-highlight: #FFE4E9;

  /* Terminal Blue (Kompa) */
  --term-blue: #8cf;
  --term-blue-dark: #36a;
  --term-blue-bg: #001;

  /* Blender Gray (Livsformer) */
  --blender-bg: #404048;
  --blender-light: #606068;
  --blender-lighter: #808088;
  --blender-text: #a0a0a8;

  /* Common */
  --shadow-subtle: rgba(0,0,0,0.2);
  --shadow-strong: rgba(0,0,0,0.5);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;

  /* Spacing */
  --space-xs: 2px;
  --space-sm: 4px;
  --space-md: 8px;
  --space-lg: 16px;
  --space-xl: 24px;
}

/* ============================================
   2. RESET
   ============================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */

.font-win95 {
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
}

.font-mono {
  font-family: "Courier New", Consolas, monospace;
}

.font-retro {
  font-family: "VT323", "Courier New", monospace;
}

.font-hand {
  font-family: "Indie Flower", "Patrick Hand", cursive;
}

/* ============================================
   4. WIN95 COMPONENTS
   ============================================ */

/* Window */
.win95-window {
  background: var(--win95-bg);
  border: 2px solid;
  border-color: var(--win95-light) var(--win95-dark) var(--win95-dark) var(--win95-light);
  box-shadow: 1px 1px 0 var(--win95-darker);
}

/* Title bar */
.win95-titlebar {
  background: linear-gradient(90deg, var(--win95-blue), var(--win95-cyan));
  color: white;
  padding: 2px 4px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

/* Inset panel (sunken) */
.win95-inset {
  border: 2px solid;
  border-color: var(--win95-dark) var(--win95-light) var(--win95-light) var(--win95-dark);
  background: var(--win95-light);
}

/* Outset panel (raised) */
.win95-outset {
  border: 2px solid;
  border-color: var(--win95-light) var(--win95-dark) var(--win95-dark) var(--win95-light);
}

/* ============================================
   5. BUTTONS
   ============================================ */

/* Win95 Button */
.btn-win95 {
  background: var(--win95-bg);
  border: 2px solid;
  border-color: var(--win95-light) var(--win95-dark) var(--win95-dark) var(--win95-light);
  padding: 4px 12px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  cursor: pointer;
  color: var(--win95-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-win95:hover {
  background: #d4d4d4;
}

.btn-win95:active,
.btn-win95.active {
  border-color: var(--win95-dark) var(--win95-light) var(--win95-light) var(--win95-dark);
  padding: 5px 11px 3px 13px;
}

.btn-win95:disabled {
  color: var(--win95-dark);
  cursor: not-allowed;
}

/* Pink Button */
.btn-pink {
  background: var(--pink-bg);
  border: 2px solid;
  border-color: var(--win95-light) var(--pink-dark) var(--pink-dark) var(--win95-light);
  padding: 4px 12px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  cursor: pointer;
  color: var(--pink-text);
}

.btn-pink:hover {
  background: var(--pink-light);
}

.btn-pink:active {
  border-color: var(--pink-dark) var(--win95-light) var(--win95-light) var(--pink-dark);
}

.btn-pink-primary {
  background: var(--pink-primary);
  color: white;
}

/* Cyber Button */
.btn-cyber {
  background: transparent;
  border: 1px solid var(--cyber-dark);
  padding: 8px 16px;
  color: var(--cyber-pink);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-cyber:hover {
  border-color: var(--cyber-pink);
  box-shadow: 0 0 15px rgba(255,105,180,0.3);
}

/* Terminal Button */
.btn-term {
  background: transparent;
  border: 1px solid currentColor;
  padding: 6px 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-term:hover {
  background: rgba(255,255,255,0.1);
}

/* ============================================
   6. FORMS
   ============================================ */

/* Win95 Input */
.input-win95 {
  background: var(--win95-light);
  border: 2px solid;
  border-color: var(--win95-dark) var(--win95-light) var(--win95-light) var(--win95-dark);
  padding: 3px 4px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
}

.input-win95:focus {
  outline: 1px dotted var(--win95-text);
}

/* Pink Input */
.input-pink {
  background: var(--pink-light);
  border: 2px solid;
  border-color: var(--pink-dark) var(--win95-light) var(--win95-light) var(--pink-dark);
  padding: 2px 4px;
  font-family: inherit;
  color: var(--pink-text);
}

/* Terminal Input */
.input-term {
  background: rgba(0,0,0,0.5);
  border: 1px solid currentColor;
  padding: 6px 8px;
  color: inherit;
}

.input-term:focus {
  outline: none;
  box-shadow: 0 0 5px currentColor;
}

/* ============================================
   7. UTILITIES
   ============================================ */

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

/* Flex utilities */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Spacing */
.p-0 { padding: 0; }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }

/* Text */
.text-center { text-align: center; }
.text-bold { font-weight: bold; }
.text-sm { font-size: 10px; }
.text-lg { font-size: 14px; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-move { cursor: move; }
.select-none { user-select: none; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Size */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Effects */
.no-pointer { pointer-events: none; }
.transition { transition: var(--transition-normal); }

/* Visibility */
.hidden { display: none; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* Z-index layers */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.z-overlay { z-index: 200; }
.z-modal { z-index: 300; }

/* ============================================
   8. ANIMATIONS (opt-in)
   ============================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes blink {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0; }
}

.animate-fadeIn { animation: fadeIn 0.3s ease; }
.animate-slideUp { animation: slideUp 0.3s ease; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-blink { animation: blink 1s infinite; }
