/**
 * JYT2.com - Typography Styles
 * Industrial Noir Theme - Bold & Dramatic
 */

/* ========================================
   FONT IMPORTS
   Using Google Fonts with preconnect in head.php
   ======================================== */

/* Font families defined in variables.css:
   --font-display: 'Bebas Neue'   (Hero titles, massive impact)
   --font-heading: 'Rajdhani'     (Section headings, subheadings)
   --font-body: 'DM Sans'         (Body text, readable)
   --font-mono: 'IBM Plex Mono'   (Code, labels, badges)
*/

/* ========================================
   BASE TYPOGRAPHY
   ======================================== */

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   HEADINGS
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-h1);
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
}

h4 {
  font-size: var(--text-h4);
}

h5 {
  font-size: var(--text-body-lg);
}

h6 {
  font-size: var(--text-body);
}

/* ========================================
   DISPLAY HEADINGS (Bebas Neue)
   ======================================== */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.display-hero {
  font-size: var(--text-hero);
}

.display-lg {
  font-size: var(--text-h1);
}

.display-md {
  font-size: var(--text-h2);
}

/* ========================================
   BODY TEXT
   ======================================== */

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--text-body-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.small {
  font-size: var(--text-small);
}

.xs {
  font-size: var(--text-xs);
}

/* ========================================
   GRADIENT TEXT EFFECTS
   ======================================== */

.gradient-text,
.text-gradient {
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-electric {
  background: var(--gradient-electric);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   TEXT GLOW EFFECTS
   ======================================== */

.text-glow-fire {
  color: var(--primary);
  text-shadow:
    0 0 10px rgba(var(--primary-rgb), 0.5),
    0 0 30px rgba(var(--primary-rgb), 0.3);
}

.text-glow-electric {
  color: var(--accent);
  text-shadow:
    0 0 10px rgba(var(--accent-rgb), 0.5),
    0 0 30px rgba(var(--accent-rgb), 0.3);
}

.text-glow-hazard {
  color: var(--hazard);
  text-shadow:
    0 0 10px rgba(var(--hazard-rgb), 0.5),
    0 0 30px rgba(var(--hazard-rgb), 0.3);
}

/* ========================================
   MONOSPACE / CODE
   ======================================== */

code, kbd, pre, samp {
  font-family: var(--font-mono);
}

code {
  font-size: var(--text-small);
  padding: var(--space-1) var(--space-2);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

pre {
  padding: var(--space-4);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

kbd {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* ========================================
   LABELS & TAGS
   ======================================== */

.label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: var(--radius-sm);
}

.label-fire {
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.label-electric {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}

.label-hazard {
  background: rgba(var(--hazard-rgb), 0.15);
  color: var(--hazard);
  border: 1px solid rgba(var(--hazard-rgb), 0.3);
}

.label-success {
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

/* ========================================
   LINKS
   ======================================== */

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

a:hover {
  color: var(--primary-light);
}

/* Underline link style */
.link-underline {
  position: relative;
  color: var(--text-primary);
}

.link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gradient-fire);
  transition: width var(--transition-normal);
}

.link-underline:hover::after {
  width: 100%;
}

/* ========================================
   LISTS
   ======================================== */

ul, ol {
  padding-left: var(--space-6);
  color: var(--text-secondary);
}

li {
  margin-bottom: var(--space-2);
}

/* Industrial list markers */
.list-industrial {
  list-style: none;
  padding-left: 0;
}

.list-industrial li {
  position: relative;
  padding-left: var(--space-6);
}

.list-industrial li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* Electric dot list */
.list-electric {
  list-style: none;
  padding-left: 0;
}

.list-electric li {
  position: relative;
  padding-left: var(--space-6);
}

.list-electric li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

/* ========================================
   BLOCKQUOTES
   ======================================== */

blockquote {
  position: relative;
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  background: var(--bg-tertiary);
  border-left: 4px solid var(--primary);
  font-style: italic;
  color: var(--text-secondary);
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* ========================================
   SELECTION
   ======================================== */

::selection {
  background: rgba(var(--primary-rgb), 0.3);
  color: var(--text-primary);
}

::-moz-selection {
  background: rgba(var(--primary-rgb), 0.3);
  color: var(--text-primary);
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */

@media (max-width: 768px) {
  body {
    font-size: 0.9375rem; /* 15px */
  }
}
