/* Red Metal, Black Leather, Silver Steel Theme */
:root {
  /* Red Metal Colors */
  --red-dark: #8B0000;
  --red-main: #B22222;
  --red-light: #DC143C;
  --red-bright: #FF4444;
  
  /* Silver Steel Colors */
  --silver-dark: #6B7280;
  --silver-main: #9CA3AF;
  --silver-light: #C0C0C0;
  --silver-bright: #E8E8E8;
  
  /* Accent Colors */
  --steel: #4A5568;
  --chrome: #CBD5E0;
  --metal: #374151;
  
  /* Background Colors - Black Leather */
  --bg-dark: #0a0a0a;
  --bg-darker: #000000;
  --bg-panel: #1a1a1a;
  
  /* Text Colors */
  --text-light: #F3F4F6;
  --text-red: #FF4444;
  --text-silver: #D1D5DB;
}

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

body {
  font-family: 'Calibri', 'Arial', sans-serif;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--bg-panel) 100%);
  background-attachment: fixed;
  color: var(--text-light);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Black Leather Texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(178, 34, 34, 0.05) 2px,
      rgba(178, 34, 34, 0.05) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(192, 192, 192, 0.03) 2px,
      rgba(192, 192, 192, 0.03) 4px
    );
  pointer-events: none;
  z-index: 0;
}

#root {
  position: relative;
  z-index: 1;
}

/* Industrial Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--red-bright) 0%, var(--silver-bright) 50%, var(--red-main) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Metallic Button Base */
button {
  font-family: 'Calibri', 'Arial', sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Metallic Link Styles */
a {
  color: var(--red-bright);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--silver-bright);
  text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

/* Container Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Steel Gear Decoration */
.gear-decoration {
  position: absolute;
  color: var(--red-main);
  opacity: 0.1;
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Metallic Panel */
.metallic-panel {
  background: linear-gradient(135deg, 
    rgba(139, 0, 0, 0.2) 0%, 
    rgba(26, 26, 26, 0.8) 50%, 
    rgba(128, 128, 128, 0.2) 100%);
  border: 2px solid var(--red-main);
  box-shadow: 
    0 0 20px rgba(178, 34, 34, 0.3),
    inset 0 0 20px rgba(0, 0, 0, 0.5),
    0 5px 15px rgba(0, 0, 0, 0.4);
  position: relative;
}

.metallic-panel::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--red-main), var(--silver-light), var(--red-main));
  z-index: -1;
  opacity: 0.3;
  filter: blur(10px);
}

/* Rivet Details */
.rivet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--silver-bright), var(--silver-dark));
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  position: absolute;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
  border-left: 1px solid var(--red-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--red-main), var(--red-dark));
  border-radius: 6px;
  border: 1px solid var(--silver-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--red-bright), var(--red-main));
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
}

/* Loading Animation */
@keyframes pulse-red {
  0%, 100% {
    box-shadow: 0 0 20px rgba(178, 34, 34, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(178, 34, 34, 0.8);
  }
}

/* Metallic Shine Effect */
@keyframes metallic-shine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.metallic-shine {
  background: linear-gradient(
    90deg,
    var(--red-main) 0%,
    var(--silver-bright) 25%,
    var(--red-bright) 50%,
    var(--silver-bright) 75%,
    var(--red-main) 100%
  );
  background-size: 200% auto;
  animation: metallic-shine 3s linear infinite;
}
