/* ═══════════════════════════════════════════════════════════════════════════════
   НОВЫЙ ПРЕМИУМ-СТИЛЬ ФОРУМА "ФОРУМ ОБО ВСЁМ"
   Дизайн: Минимализм с природными мотивами
   Палитра: Глубокий морской синий, акцентный золотой, теплые земляные тона
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
  --primary-dark: #1a3a52;
  --primary-light: #2d5a7b;
  --accent-gold: #d4af37;
  --accent-warm: #e8a857;
  --text-dark: #1a1a1a;
  --text-light: #f5f5f5;
  --bg-secondary: #f0f3f7;
  --border-color: #c9d4e0;
  --hover-bg: #e3eef5;
  --code_output-bg: #f8fafc;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ОСНОВНЫЕ СТИЛИ ТЕЛА ДОКУМЕНТА
   ═══════════════════════════════════════════════════════════════════════════════ */

body {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 1200"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%231a3a52;stop-opacity:1" /><stop offset="50%" style="stop-color:%232d5a7b;stop-opacity:0.95" /><stop offset="100%" style="stop-color:%23183a50;stop-opacity:1" /></linearGradient><pattern id="dots" patternUnits="userSpaceOnUse" width="60" height="60"><circle cx="30" cy="30" r="1" fill="%23d4af37" opacity="0.15"/></pattern></defs><rect width="1200" height="1200" fill="url(%23grad1)"/><rect width="1200" height="1200" fill="url(%23dots)"/><path d="M0,400 Q300,350 600,400 T1200,400 L1200,0 L0,0 Z" fill="%23ffffff" opacity="0.03"/><path d="M0,800 Q400,750 800,800 T1600,800 L1600,600 L0,600 Z" fill="%23d4af37" opacity="0.02"/><circle cx="100" cy="200" r="150" fill="%23e8a857" opacity="0.05"/><circle cx="1100" cy="900" r="200" fill="%23d4af37" opacity="0.04"/></svg>') fixed,
           linear-gradient(135deg, #1a3a52 0%, #2d5a7b 50%, #1a2d3a 100%);
  background-attachment: fixed;
  background-size: cover, cover;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
  scrollbar-color: var(--accent-gold) var(--primary-dark);
  scrollbar-width: thin;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

body::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 5px;
}

body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-warm);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ТИПОГРАФИЯ И ОСНОВНЫЕ ЭЛЕМЕНТЫ
   ═══════════════════════════════════════════════════════════════════════════════ */

font, th, td, p {
  font-family: 'Segoe UI', 'Trebuchet MS', Verdana, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Georgia', 'Trebuchet MS', serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.maintitle, h1, h2 {
  font-weight: bold;
  font-size: 24px;
  font-family: 'Georgia', 'Trebuchet MS', serif;
  text-decoration: none;
  line-height: 130%;
  color: var(--primary-dark);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: var(--primary-light);
  transition: all 0.3s ease;
  font-weight: 500;
}

a:visited {
  color: #4a5f72;
}

a:hover, a:active {
  color: var(--accent-gold);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

hr {
  height: 0;
  border: none;
  border-top: 2px solid var(--accent-gold);
  opacity: 0.5;
  margin: 20px 0;
}

img {
  border: 0;
  max-width: 100%;
  height: auto;
}

form {
  display: inline;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ТАБЛИЦЫ И СТРОКИ
   ═══════════════════════════════════════════════════════════════════════════════ */

table.lineSector_64 {
  background-color: rgba(255, 255, 255, 0.95);
  border-collapse: collapse;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

table.lineSector_64:hover {
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
}

.row, .layer_1, .row_strip_alt {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-color);
  padding: 12px;
  transition: background-color 0.2s ease;
}

.row:hover, .layer_1:hover, .row_strip_alt:hover {
  background-color: var(--hover-bg);
}

.segmentGamma {
  background: linear-gradient(135deg, rgba(240, 243, 247, 0.8), rgba(227, 238, 245, 0.8));
  border-bottom: 1px solid var(--border-color);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ЗАГОЛОВКИ ТАБЛИЦ (th и td.th)
   ═══════════════════════════════════════════════════════════════════════════════ */

th, td.th {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  height: 40px;
  padding: 10px 15px;
  border: none;
  text-align: left;
  letter-spacing: 0.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

th:first-child {
  border-radius: 6px 0 0 0;
}

th:last-child {
  border-radius: 0 6px 0 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   КАТЕГОРИИ (CAT)
   ═══════════════════════════════════════════════════════════════════════════════ */

td.cat, td.cat_section_cap, td.category_lefttrack, td.rowpic, td.catSides, td.category_area_right, td.catBottom {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.15) 0%, rgba(232, 168, 87, 0.08) 100%);
  border-left: 4px solid var(--accent-gold);
  height: 35px;
  padding: 10px 15px;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

td.cat:hover, td.cat_section_cap:hover {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.25), rgba(232, 168, 87, 0.15));
  padding-left: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   РАЗМЕРЫ ШРИФТОВ И КЛАССЫ ТЕКСТА
   ═══════════════════════════════════════════════════════════════════════════════ */

.gen {
  font-size: 14px;
  color: var(--text-dark);
}

.standardMedium {
  font-size: 13px;
  color: var(--text-dark);
}

.txt_note_small {
  font-size: 12px;
  color: #666;
}

.cat_title_tag {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--primary-dark);
  text-transform: uppercase;
  transition: all 0.3s ease;
}

a.cat_title_tag {
  text-decoration: none;
}

a.cat_title_tag:hover {
  color: var(--accent-gold);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   НАВИГАЦИЯ
   ═══════════════════════════════════════════════════════════════════════════════ */

.navBlock {
  font-weight: 600;
  font-size: 13px;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navBlock a, .navBlock a:visited {
  text-decoration: none;
  color: var(--primary-light);
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.navBlock a:hover, .navBlock a:active {
  border-bottom-color: var(--accent-gold);
  color: var(--accent-gold);
}

table.navBlock {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  height: 40px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

table.navBlock:hover {
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
  border-color: var(--accent-gold);
}

.boardLinkText {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-dark);
  transition: all 0.3s ease;
}

a.boardLinkText, a.boardLinkText:visited {
  text-decoration: none;
  color: var(--primary-light);
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

a.boardLinkText:hover, a.boardLinkText:active {
  text-decoration: none;
  color: var(--text-light);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
  padding: 4px 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ФОРМЫ И ПОЛЯ ВВОДА
   ═══════════════════════════════════════════════════════════════════════════════ */

input {
  text-indent: 2px;
}

input, textarea, select {
  color: var(--text-dark);
  font: 14px 'Segoe UI', Verdana, sans-serif;
  border-radius: 4px;
  transition: all 0.3s ease;
}

input.post, textarea.post, select {
  background-color: rgba(255, 255, 255, 0.98);
  border: 2px solid var(--border-color);
  padding: 8px 12px;
}

input.post:focus, textarea.post:focus, select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
  background-color: #fafbfc;
}

input.post {
  height: 32px;
  padding: 8px 12px;
}

textarea.post {
  resize: vertical;
  min-height: 120px;
  font-family: 'Segoe UI', monospace;
}

input.ui_switchbtn {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  border: none;
  padding: 10px 24px;
  cursor: pointer;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

input.ui_switchbtn:hover {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
  color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

input.ui_switchbtn:active {
  transform: translateY(0);
}

input.optionKey {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: var(--text-light);
  font-weight: 700;
  border: none;
  height: 36px;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

input.optionKey:hover {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
  color: var(--primary-dark);
}

input.liteoption {
  background: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  border: 1px solid var(--border-color);
  height: 32px;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

input.liteoption:hover {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 1);
}

select optgroup {
  background-color: var(--bg-secondary);
  color: var(--text-dark);
  font-weight: 600;
}

select option, select optgroup option {
  background-color: #fff;
  color: var(--text-dark);
  padding: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   КОД И ЦИТАТЫ
   ═══════════════════════════════════════════════════════════════════════════════ */

.code_output {
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 13px;
  color: #1e40af;
  background: linear-gradient(135deg, var(--code_output-bg) 0%, #f0f4f8 100%);
  border-left: 4px solid var(--primary-light);
  border-radius: 4px;
  padding: 12px 15px;
  margin: 10px 0;
  overflow-x: auto;
  line-height: 1.5;
}

.quoteBubble {
  font-family: 'Georgia', serif;
  font-size: 13px;
  color: var(--primary-dark);
  background: linear-gradient(135deg, rgba(232, 168, 87, 0.08), rgba(212, 175, 55, 0.05));
  border-left: 4px solid var(--accent-gold);
  border-radius: 4px;
  padding: 12px 15px;
  margin: 10px 0;
  font-style: italic;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   СОДЕРЖИМОЕ ПОСТОВ
   ═══════════════════════════════════════════════════════════════════════════════ */

.post_bodybundle {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.7;
  word-wrap: break-word;
}

.post_bodybundle a, .post_bodybundle a:visited {
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 90, 123, 0.3);
  transition: all 0.3s ease;
}

.post_bodybundle a:hover, .post_bodybundle a:active {
  border-bottom-color: var(--accent-gold);
  color: var(--accent-gold);
}

.userTitle {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.userTitle a, .userTitle a:visited {
  text-decoration: none;
  color: var(--primary-light);
}

.userTitle a:hover, .userTitle a:active {
  color: var(--accent-gold);
}

.post_infounit {
  color: #888;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

td.spacerow {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent);
  height: 3px;
  padding: 0;
  border: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ФОРУМА WR-Forum Professional
   ═══════════════════════════════════════════════════════════════════════════════ */

.pagination_nav_ui_switchbtn a {
  font-family: 'Segoe UI', sans-serif;
  padding: 8px 12px;
  text-decoration: none;
  border: 2px solid var(--accent-gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(232, 168, 87, 0.05));
  margin: 5px 3px 5px 0;
  border-radius: 6px;
  font-weight: 600;
  color: var(--primary-dark);
  transition: all 0.3s ease;
  font-size: 13px;
}

.pagination_nav_ui_switchbtn a:hover {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.fakebut {
  border: 2px solid var(--border-color);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.fakebut:hover {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   QR-КОД
   ═══════════════════════════════════════════════════════════════════════════════ */

#qr img {
  width: 35px;
  height: 35px;
  position: fixed;
  right: 15px;
  top: 15px;
  border: 2px solid var(--accent-gold);
  padding: 6px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 50;
}

#qr img:hover {
  width: 220px;
  height: 220px;
  z-index: 100;
  padding: 8px;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   АВАТАР БЕЗ ИЗОБРАЖЕНИЯ
   ═══════════════════════════════════════════════════════════════════════════════ */

.guestavatar {
  width: 120px;
  height: 120px;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
  color: var(--text-light);
  font-size: 48px;
  font-weight: 700;
  display: table-cell;
  border-radius: 12px;
  position: relative;
  vertical-align: middle;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   НАВИГАЦИОННОЕ МЕНЮ В АДМИНКЕ
   ═══════════════════════════════════════════════════════════════════════════════ */

#navBlock8, #navBlock8 ul, #navBlock8 li {
  margin: 0;
  padding: 0;
  border: 0;
}

#navBlock8, #navBlock8 ul {
  background: rgba(255, 255, 255, 0.97);
}

#navBlock8 {
  border-spacing: 0 0;
  position: relative;
  z-index: 50;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#navBlock8 ul {
  position: absolute;
  display: none;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#navBlock8 td:hover ul {
  display: block;
}

#navBlock8 ul li {
  list-style: none;
}

#navBlock8 .right {
  direction: rtl;
}

#navBlock8 .right ul {
  right: 0;
}

#navBlock8 .right li {
  direction: ltr;
}

#navBlock8 a {
  display: block;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

#navBlock8 ul a {
  padding: 10px 15px;
  text-align: left;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

#navBlock8 td:hover, #navBlock8 li:hover {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.15), rgba(232, 168, 87, 0.08));
}

#navBlock8 ul a:hover {
  border-left-color: var(--accent-gold);
  padding-left: 18px;
}

#navBlock8 td {
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ПРОГРЕСС БАР
   ═══════════════════════════════════════════════════════════════════════════════ */

#cssbar-wrapper {
  width: 300px;
  height: 20px;
  position: absolute;
  left: 50%;
}

#cssbar-border {
  border: 3px solid var(--accent-gold);
  height: 100%;
  width: 100%;
  position: relative;
  left: -50%;
  top: -50%;
  padding: 4px 3px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#cssbar-whitespace {
  overflow: hidden;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  position: relative;
  border-radius: 3px;
}

#cssbar-line {
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-warm));
  position: absolute;
  height: 100%;
  width: 100%;
  animation: cssbar-slide 4s steps(40) infinite;
}

@keyframes cssbar-slide {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   АДАПТИВНОСТЬ
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .maintitle, h1, h2 {
    font-size: 20px;
  }

  table.lineSector_64 {
    font-size: 13px;
  }

  input.ui_switchbtn, input.optionKey {
    padding: 8px 16px;
    font-size: 13px;
  }

  #qr img {
    right: 10px;
    top: 10px;
  }

  #qr img:hover {
    width: 180px;
    height: 180px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ И УЛУЧШЕНИЯ
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Плавные переходы для всех интерактивных элементов */
* {
  transition-property: background-color, border-color, color, box-shadow, transform;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* Предотвращение двойных переходов для некоторых элементов */
table, img {
  transition: none;
}

/* Фокус на клавиатуру */
input:focus-visible, textarea:focus-visible, select:focus-visible, ui_switchbtn:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}