/* =============================================
   ТЮНІНГ ФОРУМ ВІННИЦІ | GARAGE NEO-STYLE
   Темна тема | Карбоновий фон | Неонові акценти
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Exo+2:wght@300;400;500;600;700&display=swap');

:root {
  --neon-red: #ff3131;
  --neon-blue: #00c8ff;
  --neon-purple: #bc13fe;
  --carbon-dark: #0a0c0f;
  --carbon-darker: #050708;
  --metal-grey: #1e2329;
  --steel: #2a313c;
  --text-bright: #f0f0f0;
  --text-dim: #b0b7c6;
  --glow-red: rgba(255, 49, 49, 0.4);
  --glow-blue: rgba(0, 200, 255, 0.4);
  --border-neon: #ff3131;
}

/* SVG фон - карбон з динамічними лініями та іскрами */
body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 1200'%3E%3Cdefs%3E%3ClinearGradient id='carbGrad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%230a0c0f'/%3E%3Cstop offset='100%25' stop-color='%2312171f'/%3E%3C/linearGradient%3E%3Cpattern id='carbonWeave' patternUnits='userSpaceOnUse' width='40' height='40' patternTransform='rotate(45)'%3E%3Cpath d='M20 0 L20 40 M0 20 L40 20' stroke='%23222a33' stroke-width='1.2' fill='none' opacity='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23carbGrad)'/%3E%3Crect width='100%25' height='100%25' fill='url(%23carbonWeave)'/%3E%3Cg opacity='0.3'%3E%3Ccircle cx='150' cy='200' r='3' fill='%23ff3131'%3E%3Canimate attributeName='r' values='3;6;3' dur='3s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='620' cy='850' r='2' fill='%2300c8ff'%3E%3Canimate attributeName='r' values='2;5;2' dur='2.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='450' cy='400' r='2.5' fill='%23bc13fe'%3E%3Canimate attributeName='r' values='2.5;5.5;2.5' dur='3.2s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: cover;
  background-color: var(--carbon-dark);
  font-family: 'Exo 2', 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-bright);
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  scrollbar-color: var(--neon-red) var(--metal-grey);
}

/* Кастомний скроллбар з неоном */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--carbon-darker);
  border-left: 1px solid var(--neon-red);
}
::-webkit-scrollbar-thumb {
  background: var(--neon-red);
  border-radius: 6px;
  box-shadow: 0 0 8px var(--glow-red);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-blue);
  box-shadow: 0 0 12px var(--glow-blue);
}

/* Основний контейнер з ефектом металу */
.bodyline, .bodyline2 {
  background: rgba(10, 12, 15, 0.85);
  backdrop-filter: blur(2px);
  border: 1px solid var(--neon-red);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 49, 49, 0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  margin-bottom: 25px;
  transition: all 0.2s ease;
}

.bodyline2 {
  background: rgba(30, 35, 41, 0.8);
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.2);
}

.lineSpan-x3 {
  background: var(--carbon-darker);
  border: 1px solid var(--steel);
  border-radius: 16px;
  margin-bottom: 20px;
  transition: 0.2s;
  position: relative;
  overflow: hidden;
}
.lineSpan-x3:hover {
  border-color: var(--neon-red);
  box-shadow: 0 0 18px var(--glow-red);
  transform: translateY(-2px);
}
.lineSpan-x3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-red), var(--neon-blue), var(--neon-purple));
  opacity: 0.6;
}

/* ЗАГОЛОВКИ - агресивний стиль */
h1, h2, h3, .maintitle {
  font-family: 'Orbitron', monospace;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 5px var(--glow-red);
  margin: 0 0 1rem 0;
}

h1 {
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--neon-red), var(--neon-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-left: 6px solid var(--neon-red);
  padding-left: 20px;
  text-shadow: none;
}

h2 {
  font-size: 2rem;
  border-left: 4px solid var(--neon-blue);
  padding-left: 18px;
  color: var(--neon-blue);
  text-shadow: 0 0 3px rgba(0,200,255,0.5);
}

h3 {
  font-size: 1.5rem;
  border-left: 3px solid var(--neon-purple);
  padding-left: 15px;
  color: var(--text-bright);
}

.maintitle {
  font-size: 38px;
  text-align: center;
  background: linear-gradient(145deg, #fff, var(--neon-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 4px;
  position: relative;
  margin-bottom: 10px;
}
.maintitle::after {
  content: '';
  display: block;
  width: 120px;
  height: 3px;
  background: var(--neon-red);
  margin: 12px auto 0;
  box-shadow: 0 0 12px var(--neon-red);
  border-radius: 3px;
}

.subtitle {
  font-family: 'Exo 2', sans-serif;
  font-size: 18px;
  text-align: center;
  color: var(--text-dim);
  letter-spacing: 1px;
  border-bottom: 1px dashed var(--steel);
  display: inline-block;
  width: auto;
  margin: 0 auto 25px;
  padding-bottom: 6px;
}

/* ТАБЛИЦІ — агресивний контраст */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  overflow: hidden;
}

th, td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--steel);
  font-weight: 500;
}

th {
  background: linear-gradient(95deg, var(--metal-grey), var(--carbon-dark));
  color: var(--neon-blue);
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--neon-red);
}

.band_first { background-color: rgba(20, 25, 32, 0.7); }
.itemLine02 { background-color: rgba(10, 12, 20, 0.7); }
.trStripe3 { background-color: rgba(5, 7, 12, 0.8); }

tr:hover .band_first,
tr:hover .itemLine02,
tr:hover .trStripe3 {
  background: rgba(255, 49, 49, 0.12);
  border-left: 4px solid var(--neon-red);
  transition: 0.1s linear;
}

/* Категорії - як кузовні панелі */
td.cat, td.catCaption, td.catSides, td.catLeftCorner, td.catRightCorner, td.catBottom {
  background: linear-gradient(115deg, #1a1f2a, #0f1219);
  color: var(--neon-red);
  font-family: 'Orbitron', monospace;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 2px;
  border-left: 5px solid var(--neon-blue);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 2px 8px rgba(0,0,0,0.5);
  padding: 18px 15px;
}

/* ПОСИЛАННЯ - неон */
a {
  color: var(--neon-blue);
  text-decoration: none;
  font-weight: 600;
  transition: 0.15s;
  position: relative;
}
a:hover {
  color: var(--neon-red);
  text-shadow: 0 0 5px var(--glow-red);
}
.forumUrlLink, .cat_title_shell {
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-bright);
}
.forumUrlLink:hover, .cat_title_shell:hover {
  color: var(--neon-blue);
  text-shadow: 0 0 4px var(--neon-blue);
}

.pageNav {
  color: var(--text-dim);
  font-weight: 400;
}

/* ФОРМИ - техно-стиль */
input, textarea, select {
  background: var(--carbon-darker);
  border: 1px solid var(--steel);
  color: var(--text-bright);
  padding: 12px 14px;
  font-family: 'Exo 2', monospace;
  border-radius: 10px;
  transition: 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--neon-red);
  box-shadow: 0 0 12px var(--glow-red);
  outline: none;
  background: #0b0e14;
}

/* КНОПКИ — турбо-режим */
input.clickBtn, input.primaryOptionItem, input.liteoption, .fakebut {
  background: linear-gradient(95deg, var(--neon-red), #b10e0e);
  border: none;
  color: #fff;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 26px;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 49, 49, 0.3);
  transition: 0.15s;
}
input.clickBtn:hover, input.primaryOptionItem:hover, input.liteoption:hover, .fakebut:hover {
  background: linear-gradient(95deg, var(--neon-blue), #0084b3);
  box-shadow: 0 0 18px var(--neon-blue);
  transform: scale(0.98);
}
input.primaryOptionItem {
  background: linear-gradient(95deg, var(--neon-blue), #0066cc);
  box-shadow: 0 0 12px var(--neon-blue);
}

/* ЦИТАТА та КОД з мотивами ДВС */
.replyQuote {
  background: #0e1118;
  border-left: 5px solid var(--neon-red);
  border-radius: 12px;
  padding: 18px 24px;
  margin: 20px 0;
  font-style: italic;
  color: #ccddee;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
}
.code_anchorbox {
  background: #010101;
  color: var(--neon-blue);
  border: 1px solid var(--neon-red);
  border-radius: 12px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  overflow-x: auto;
  box-shadow: 0 0 10px rgba(255,49,49,0.2);
}

/* ПАГІНАЦІЯ — гоночні гальма */
.pager_linkbtn a {
  display: inline-block;
  padding: 8px 16px;
  margin: 4px;
  background: var(--metal-grey);
  border: 1px solid var(--neon-red);
  color: var(--text-bright);
  font-weight: bold;
  border-radius: 30px;
  transition: 0.15s;
}
.pager_linkbtn a:hover {
  background: var(--neon-red);
  color: #000;
  box-shadow: 0 0 12px var(--neon-red);
  border-color: var(--neon-red);
}

/* АВАТАРИ — стиль карбонових дисків */
.guestavatar {
  width: 85px;
  height: 85px;
  background: radial-gradient(circle at 30% 30%, var(--metal-grey), #030507);
  color: var(--neon-red);
  font-size: 34px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--neon-red);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.5), 0 0 0 6px var(--neon-red);
  transition: 0.2s;
}
.guestavatar:hover {
  box-shadow: 0 0 0 3px #000, 0 0 0 8px var(--neon-blue);
  transform: rotate(4deg) scale(1.02);
  color: var(--neon-blue);
}

/* QR-код — як наліпка на бампер */
#qr img {
  width: 55px;
  height: 55px;
  position: fixed;
  right: 20px;
  top: 20px;
  border: 2px solid var(--neon-red);
  border-radius: 12px;
  background: #000;
  padding: 5px;
  box-shadow: 0 0 16px rgba(255,49,49,0.5);
  transition: 0.2s;
  z-index: 999;
}
#qr img:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 0 24px var(--neon-blue);
  width: 60px;
  height: 60px;
}

/* МЕНЮ — агресивна навігація */
#pageNav8, #pageNav8 ul {
  background: var(--carbon-darker);
  border: 1px solid var(--neon-red);
  border-radius: 50px;
  padding: 5px 12px;
  backdrop-filter: blur(4px);
}
#pageNav8 a {
  padding: 12px 20px;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  color: var(--text-bright);
  text-transform: uppercase;
}
#pageNav8 td:hover, #pageNav8 li:hover {
  background: var(--neon-red);
  border-radius: 40px;
  color: #000;
  text-shadow: none;
}

/* Копірайт — вихлопна труба */
.copyright {
  font-size: 12px;
  text-align: center;
  padding: 22px;
  border-top: 1px solid var(--neon-red);
  margin-top: 35px;
  color: var(--text-dim);
  letter-spacing: 1px;
}
.copyright a {
  color: var(--neon-blue);
  font-weight: 700;
}

/* АДАПТИВ — під мобільні */
@media (max-width: 768px) {
  body {
    padding: 12px;
  }
  .maintitle {
    font-size: 28px;
  }
  th, td {
    padding: 10px 8px;
    font-size: 13px;
  }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .guestavatar {
    width: 65px;
    height: 65px;
    font-size: 26px;
  }
  #qr img {
    width: 45px;
    height: 45px;
    right: 12px;
    top: 12px;
  }
}