/* d:/CODE/html/css/variables.css */

/* Fonts Definition */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-mono-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-latin-800-normal.woff2') format('woff2');
}

:root {
  --bg-main: #000000;
  --bg-card: #08090a;
  --bg-sidebar: #040506;
  --bg-input: #0c0d10;
  --bg-card-hover: #101216;
  
  --color-primary: #b31e2b; /* Crimson Rust */
  --color-primary-hover: #d92635;
  --color-primary-muted: rgba(179, 30, 43, 0.08);
  --color-primary-glow: rgba(179, 30, 43, 0.15);
  
  --text-primary: #f2f3f5;
  --text-secondary: #c3b9aa; /* Leica Sand-grey */
  --text-muted: #5e646d;
  
  --border-light: #16181d;
  --border-primary: rgba(179, 30, 43, 0.3);
  --border-active: #b31e2b;
  
  --color-success: #2b8a3e;
  --color-success-bg: rgba(43, 138, 62, 0.08);
  --color-warning: #e67e22;
  --color-error: #c0392b;
  
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-headings: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 4px;
  
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* CRT Scanlines Overlay */
body::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 9999;
  background-size: 100% 4px, 3px 100%;
  pointer-events: none;
  opacity: 0.45;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Спільні технічні класи бруталізму */
.tech-border-dashed {
  border: 1px dashed var(--border-light);
}

.mono-text {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.headings-text {
  font-family: var(--font-headings);
  font-weight: 700;
}

.text-sand {
  color: var(--text-secondary);
}

/* Бруталістська пружна тінь */
.btn-brutalist {
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-brutalist:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px var(--color-primary);
}
.btn-brutalist:active {
  transform: translate(0px, 0px);
  box-shadow: 0px 0px 0px var(--color-primary);
}

/* Карткова бруталістська тінь */
.card-brutalist {
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.card-brutalist:hover {
  transform: translate(-3px, -3px);
  border-color: var(--text-secondary);
  box-shadow: 4px 4px 0px rgba(195, 185, 170, 0.15); /* Sand-grey shadow */
}

/* CRT Мерехтіння */
@keyframes crt-flicker {
  0% { opacity: 0.985; }
  50% { opacity: 0.995; }
  100% { opacity: 0.985; }
}

.crt-screen-effect {
  animation: crt-flicker 0.15s infinite;
}
