﻿/* ============================================
   ФОРУМ "СПОРТ В УКРАЇНІ" - НОВИЙ ДИЗАЙН
   ============================================ */

/* SVG BACKGROUND - СПОРТИВНА ТЕМАТИКА */
body {
  font-size: 14px;
  padding: 0;
  margin: 6px;
  font: 12px 'Segoe UI', Verdana, Arial, Helvetica, sans-serif;
  color: #1a1a1a;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #60a5fa 100%),
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="sport" x="0" y="0" width="200" height="200" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="8" fill="rgba(255,255,255,0.1)"/><path d="M100 30 L120 70 L100 110 L80 70 Z" fill="rgba(255,255,255,0.08)"/><rect x="140" y="80" width="40" height="60" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="150" r="15" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="1200" height="800" fill="none"/><rect width="1200" height="800" fill="url(%23sport)"/></svg>') repeat;
  background-attachment: fixed;
}

/* ОСНОВНІ ЕЛЕМЕНТИ */
font, th, td, p {
  font: 13px 'Segoe UI', Verdana, Arial, Helvetica, sans-serif;
}

h1, .maintitle {
  font: bold 28px 'Trebuchet MS', sans-serif;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  text-decoration: none;
  margin: 20px 0;
}

h2, .subtitle {
  font: bold 20px 'Trebuchet MS', sans-serif;
  color: #1e3a8a;
  text-decoration: none;
  margin: 15px 0;
}

/* КОНТЕЙНЕРИ І ТАБЛИЦІ */
.bodyline, .forumline {
  border: 2px solid #1e3a8a;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
}

.code_table, .php_table, .q_table, .quote_table {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #f8f9fa;
  font-size: 13px;
  font-family: 'Segoe UI', Verdana, Arial, sans-serif;
}

/* ЗАГОЛОВКИ ТАБЛИЦЬ */
th {
  padding: 12px 8px;
  font-weight: bold;
  font-size: 14px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  white-space: nowrap;
  text-align: center;
  height: auto;
  border-bottom: 3px solid #0f172a;
}

/* РЯДКИ ТАБЛИЦЬ */
.row1 {
  background: #f8f9fa;
}

.row2 {
  background: #eef2f7;
}

.row3 {
  background: #f3f4f6;
}

td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom {
  font-weight: bold;
  background: linear-gradient(to bottom, #2563eb, #1e3a8a);
  color: #fff;
  text-indent: 8px;
  letter-spacing: 0.5px;
  height: 32px;
  border-bottom: 2px solid #0f172a;
  display: table-cell;
  vertical-align: middle;
}

td.spacerow {
  background: #e0e7ff;
  height: 5px;
}

/* ПОСИЛАННЯ */
a:link, a:active, a:visited {
  color: #1e3a8a;
  text-decoration: none;
}

a:hover {
  color: #2563eb;
  text-decoration: underline;
}

a.postlink {
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 500;
}

a.topictitle:visited {
  color: #4b5563;
}

a.topictitle:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* НАЗВИ ТОСТІВ */
.topictitle {
  font-weight: bold;
  font-size: 14px;
  color: #1e3a8a;
}

.name {
  font-weight: bold;
  font-size: 13px;
  color: #1e3a8a;
}

/* КОНТЕНТ ПОСТА */
.postbody {
  font-size: 14px;
  line-height: 160%;
  color: #1a1a1a;
  padding: 12px;
}

.postdetails {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

/* ЦИТАТИ */
.quote {
  border-left: 4px solid #2563eb;
  border-top: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
  background: #f0f7ff;
  color: #1a1a1a;
  line-height: 140%;
  padding: 8px 10px;
  margin: 8px 0;
  border-radius: 4px;
}

/* КОД */
.code {
  border: 1px solid #d0d0d0;
  padding: 8px;
  background: #f5f5f5;
  font: 12px 'Courier New', monospace;
  color: #006600;
  line-height: 140%;
  border-radius: 4px;
  overflow-x: auto;
}

/* ФОРМИ ТА КНОПКИ */
form {
  display: inline;
}

input, select {
  font: 11px 'Segoe UI', Verdana, Arial, sans-serif;
  padding: 4px;
}

input.post, textarea.post {
  border: 1px solid #0f172a;
  padding: 6px;
  background: #fff;
  font: 11px 'Segoe UI', Verdana, Arial, sans-serif;
  border-radius: 4px;
}

input.button, input.liteoption, input.mainoption, input.catbutton, .fakebut {
  border: 2px solid #1e3a8a;
  background: linear-gradient(to bottom, #2563eb, #1e3a8a);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

input.button:hover, input.liteoption:hover, .fakebut:hover {
  background: linear-gradient(to bottom, #1e3a8a, #0f172a);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* МЕНЮ НАВІГАЦІЇ */
.topnav {
  border-top: 2px solid #1e3a8a;
  border-bottom: 2px solid #1e3a8a;
  font-size: 13px;
  background: linear-gradient(to bottom, #f0f7ff, #e0e7ff);
  color: #1e3a8a;
  white-space: nowrap;
  height: 32px;
  padding: 0;
}

.nav {
  font-weight: bold;
  font-size: 13px;
  color: #1e3a8a;
}

/* АДМІНІСТРАТОР І МОДЕРАТОР */
.admin, a.admin, a.admin:visited {
  color: #dc2626;
  font-weight: bold;
}

.mod, a.mod, a.mod:visited {
  color: #059669;
  font-weight: bold;
}

a.admin:hover {
  color: #b91c1c;
}

a.mod:hover {
  color: #047857;
}

/* КОПІРАЙТ */
.copyright {
  font-size: 11px;
  color: #666;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  letter-spacing: -0.5px;
}

a.copyright {
  color: #666;
  text-decoration: none;
}

a.copyright:hover {
  color: #1e3a8a;
  text-decoration: underline;
}

/* ПАГІНАЦІЯ */
.pgbutt a {
  font-family: 'Segoe UI', Verdana;
  padding: 4px 8px;
  text-decoration: none;
  border: 1px solid #1e3a8a;
  background: #fff;
  margin: 2px;
  color: #1e3a8a;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.pgbutt a:hover {
  background: #2563eb;
  color: #fff;
}

/* QR КОД */
#qr img {
  width: 35px;
  height: 35px;
  position: fixed;
  right: 10px;
  top: 10px;
  border: 2px solid #1e3a8a;
  padding: 2px;
  background-color: white;
  border-radius: 4px;
  transition: all 0.3s ease;
}

#qr img:hover {
  width: 200px;
  height: 200px;
  z-index: 100;
  padding: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* АВАТАР */
.guestavatar {
  width: 120px;
  height: 120px;
  text-align: center;
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  display: table-cell;
  border-radius: 8px;
  position: relative;
  vertical-align: middle;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* МЕНЮ АДМІНА */
#nav8, #nav8 ul, #nav8 li {
  margin: 0;
  padding: 0;
  border: 0;
}

#nav8 {
  border-spacing: 0 0;
  position: relative;
  z-index: 50;
  width: 100%;
  background: linear-gradient(to bottom, #f0f7ff, #e0e7ff);
}

#nav8 ul {
  position: absolute;
  display: none;
  background: #fff;
  border: 1px solid #1e3a8a;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#nav8 td:hover ul {
  display: block;
}

#nav8 a {
  display: block;
  padding: 8px 12px;
  text-align: center;
  text-decoration: none;
  color: #1e3a8a;
  font-weight: 500;
}

#nav8 ul a {
  padding: 8px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e7ff;
}

#nav8 td:hover, #nav8 li:hover {
  background: #e0e7ff;
}

#nav8 td {
  text-align: center;
}

/* ПРОГРЕС БАР */
#cssbar-wrapper {
  width: 300px;
  height: 24px;
  position: absolute;
  left: 50%;
}

#cssbar-border {
  border: 3px solid #1e3a8a;
  height: 100%;
  width: 100%;
  position: relative;
  left: -50%;
  top: -50%;
  padding: 4px 3px;
  border-radius: 4px;
}

#cssbar-whitespace {
  overflow: hidden;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  position: relative;
  background: #f0f7ff;
  border-radius: 2px;
}

#cssbar-line {
  background: linear-gradient(to right, #2563eb, #1e3a8a);
  position: absolute;
  height: 100%;
  width: 100%;
  animation: sportbar-slide 3s steps(30) infinite;
  border-radius: 2px;
}

@keyframes sportbar-slide {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* RESPONSIVE ДИЗАЙН */
@media (max-width: 768px) {
  .bodyline, .forumline {
    border-radius: 4px;
  }
  
  h1, .maintitle {
    font-size: 22px;
  }
  
  #qr img {
    width: 30px;
    height: 30px;
  }
}