﻿/* ============================================
   ФОРУМ "INSTAGRAM STYLE" - MODERN DESIGN
   ============================================ */

/* SVG BACKGROUND - INSTAGRAM ТЕМАТИКА */
body {
  font-size: 14px;
  padding: 0;
  margin: 6px;
  font: 12px -apple-system, BlinkMacSystemFont, 'Segoe UI', Verdana, Arial, sans-serif;
  color: #262626;
  background: linear-gradient(135deg, #fdf497 0%, #fdf497 5%, #f37e40 45%, #f04e3f 60%, #e1306c 90%, #c13584 100%),
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="instagram" x="0" y="0" width="120" height="120" patternUnits="userSpaceOnUse"><rect x="20" y="20" width="80" height="80" rx="15" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="2"/><circle cx="60" cy="60" r="25" fill="none" stroke="rgba(255,255,255,0.06)" stroke-width="1.5"/><circle cx="85" cy="35" r="4" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="1200" height="800" fill="url(%23instagram)"/></svg>') repeat fixed;
  background-color: #fafafa;
  background-attachment: fixed;
}

/* ОСНОВНІ ЕЛЕМЕНТИ */
font, th, td, p {
  font: 13px -apple-system, BlinkMacSystemFont, 'Segoe UI', Verdana, Arial, sans-serif;
}

h1, .maintitle {
  font: bold 28px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff;
  text-decoration: none;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
  margin: 20px 0;
  letter-spacing: -0.5px;
}

h2, .subtitle {
  font: bold 22px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #e1306c;
  text-decoration: none;
  margin: 15px 0;
}

/* КОНТЕЙНЕРИ І ТАБЛИЦІ */
.bodyline {
  border-right: 1px solid #dbdbdb;
  border-top: 1px solid #dbdbdb;
  border-left: 1px solid #dbdbdb;
  border-bottom: 1px solid #dbdbdb;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.forumline {
  border-right: 1px solid #dbdbdb;
  border-top: 1px solid #dbdbdb;
  border-left: 1px solid #dbdbdb;
  border-bottom: 1px solid #dbdbdb;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.code_table, .php_table, .q_table, .quote_table {
  border-right: 1px solid #e0e0e0;
  border-top: 1px solid #e0e0e0;
  border-left: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Verdana, Arial, sans-serif;
  background: #fafafa;
  width: 95%;
}

/* ЗАГОЛОВКИ ТАБЛИЦЬ */
th {
  padding-right: 12px;
  padding-left: 12px;
  font-weight: 600;
  font-size: 13px;
  background: linear-gradient(90deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  white-space: nowrap;
  height: 32px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  letter-spacing: 0.3px;
}

/* РЯДКИ ТАБЛИЦЬ */
.row1 {
  background: #fafafa;
}

.row2 {
  background: #f5f5f5;
}

.row3 {
  background: #fafafa;
}

td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom {
  font-weight: 600;
  background: linear-gradient(90deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  text-indent: 8px;
  letter-spacing: 0.3px;
  height: 32px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset;
  vertical-align: middle;
  display: table-cell;
}

td.spacerow {
  background: #e8e8e8;
  height: 4px;
}

td.rowpic {
  background: url(cellpic2.jpg) #f0f0f0 repeat-y;
}

/* ПОСИЛАННЯ */
a:link, a:active, a:visited {
  color: #0095f6;
  text-decoration: none;
}

a:hover {
  color: #e1306c;
  text-decoration: none;
}

a.postlink {
  color: #0095f6;
  text-decoration: none;
  font-weight: 500;
}

a.topictitle:visited {
  color: #262626;
}

a.topictitle:hover {
  color: #e1306c;
}

/* НАЗВИ ТОСТІВ */
.topictitle {
  font-weight: 600;
  font-size: 14px;
  color: #262626;
}

.name {
  font-weight: 600;
  font-size: 13px;
  color: #262626;
}

/* КОНТЕНТ ПОСТА */
.postbody {
  font-size: 14px;
  line-height: 150%;
  color: #262626;
}

.postdetails {
  font-size: 12px;
  color: #999999;
  margin-top: 8px;
}

/* ЦИТАТИ */
.quote {
  border-right: 1px solid #dbdbdb;
  border-top: 1px solid #dbdbdb;
  border-left: 4px solid #f09433;
  border-bottom: 1px solid #dbdbdb;
  font-size: 13px;
  background: #fafafa;
  color: #262626;
  line-height: 150%;
  padding: 10px 12px;
  margin: 8px 0;
}

/* КОД */
.code {
  border-right: 1px solid #dbdbdb;
  border-top: 1px solid #dbdbdb;
  border-left: 1px solid #dbdbdb;
  border-bottom: 1px solid #dbdbdb;
  padding-right: 8px;
  padding-left: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
  background: #f0f0f0;
  font: 12px 'Courier New', monospace;
  color: #007bff;
  line-height: 145%;
}

/* ПОМИЛКИ */
.errorline {
  border-right: 1px solid #dc2743;
  border-top: 1px solid #dc2743;
  border-left: 1px solid #dc2743;
  border-bottom: 1px solid #dc2743;
  background: #ffe4e1;
}

/* ФОРМИ ТА КНОПКИ */
form {
  display: inline;
}

input {
  font: 12px -apple-system, BlinkMacSystemFont, 'Segoe UI', Verdana, Arial, sans-serif;
}

select {
  background: #ffffff;
  font: 12px -apple-system, BlinkMacSystemFont, 'Segoe UI', Verdana, Arial, sans-serif;
  border: 1px solid #dbdbdb;
  padding: 6px 8px;
  border-radius: 4px;
}

input.post, textarea.post {
  border: 1px solid #dbdbdb;
  padding: 8px;
  background: #ffffff;
  font: 12px -apple-system, BlinkMacSystemFont, 'Segoe UI', Verdana, Arial, sans-serif;
  border-radius: 4px;
}

input.post:focus, textarea.post:focus {
  border-color: #0095f6;
  outline: none;
  box-shadow: 0 0 0 1px rgba(1,149,246,0.1);
}

input.button, input.liteoption, input.mainoption, input.catbutton {
  border: 1px solid #e0e0e0;
  font-size: 13px;
  background: linear-gradient(90deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  font-weight: 600;
  color: #ffffff;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

input.button:hover, input.liteoption:hover, input.mainoption:hover, input.catbutton:hover {
  opacity: 0.85;
  box-shadow: 0 2px 8px rgba(224,45,68,0.2);
}

input.button:active {
  transform: scale(0.98);
}

.fakebut {
  border: 1px solid #e0e0e0;
  font-size: 13px;
  background: linear-gradient(90deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.fakebut:hover {
  opacity: 0.85;
  box-shadow: 0 2px 8px rgba(224,45,68,0.2);
}

a.but {
  color: #0095f6;
  text-decoration: none;
  font-weight: 500;
}

a.but:hover {
  color: #e1306c;
}

a.but:visited {
  color: #0095f6;
}

/* ДОПОМІЖНІ СТИЛІ */
.helpline {
  background: #f5f5f5;
  font-size: 13px;
  border: 0px solid;
}

.gensmall {
  font-size: 12px;
}

td.genmed {
  font-size: 12px;
}

.genmed {
  font-size: 11px;
}

.explaintitle {
  font-weight: 600;
  font-size: 12px;
  color: #999999;
}

/* ГОРИЗОНТАЛЬНА ЛІНІЯ */
hr {
  border: none;
  border-top: 1px solid #dbdbdb;
  height: 0px;
  margin: 12px 0;
}

/* МЕНЮ НАВІГАЦІЇ */
.topbkg {
  background: #f5f5f5 repeat-x;
}

.topnav {
  border-right: 1px solid #dbdbdb;
  border-top: 1px solid #dbdbdb;
  border-left: 1px solid #dbdbdb;
  border-bottom: 1px solid #dbdbdb;
  font-size: 13px;
  background: #ffffff;
  color: #262626;
  white-space: nowrap;
  height: 28px;
}

.nav {
  font-weight: 600;
  font-size: 13px;
  color: #262626;
}

/* АДМІНІСТРАТОР І МОДЕРАТОР */
.admin, a.admin, a.admin:visited {
  color: #dc2743;
  font-weight: 600;
}

a.admin:hover {
  color: #b30e3c;
}

.mod, a.mod, a.mod:visited {
  color: #f09433;
  font-weight: 600;
}

a.mod:hover {
  color: #d67f28;
}

/* ЗОБРАЖЕННЯ */
img {
  border-right: 0px solid;
  border-top: 0px solid;
  border-left: 0px solid;
  border-bottom: 0px solid;
}

/* КОПІРАЙТ */
.copyright {
  font-size: 11px;
  color: #999999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Verdana, Arial, sans-serif;
  letter-spacing: -0.2px;
}

a.copyright {
  color: #999999;
  text-decoration: none;
}

a.copyright:hover {
  color: #e1306c;
  text-decoration: underline;
}

/* ПАГІНАЦІЯ */
.pgbutt a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Verdana, Arial;
  padding-top: 4px;
  padding-bottom: 4px;
  text-decoration: none;
  border: 1px solid #dbdbdb;
  background: #ffffff;
  padding: 6px 10px;
  margin: 3px 2px;
  color: #0095f6;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.pgbutt a:hover {
  background: #f0f7ff;
  border-color: #0095f6;
  color: #0074cc;
}

/* QR КОД */
#qr img {
  width: 35px;
  height: 35px;
  position: fixed;
  right: 10px;
  top: 10px;
  border: 2px solid #e1306c;
  padding: 3px;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

#qr img:hover {
  width: 200px;
  height: 200px;
  z-index: 100;
  padding: 5px;
  box-shadow: 0 6px 20px rgba(225,48,108,0.3);
  border-radius: 8px;
}

/* АВАТАР */
.guestavatar {
  width: 120px;
  height: 120px;
  text-align: center;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  font-size: 48px;
  font-weight: 600;
  display: table-cell;
  border-radius: 50%;
  position: relative;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* МЕНЮ АДМІНА */
#nav8, #nav8 ul, #nav8 li {
  margin: 0;
  padding: 0;
  border: 0;
}

#nav8 {
  border-spacing: 0 0;
  position: relative;
  z-index: 50;
  width: 100%;
  background: #ffffff;
}

#nav8 ul {
  position: absolute;
  display: none;
  background: #ffffff;
  border: 1px solid #dbdbdb;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 4px;
}

#nav8 td:hover ul {
  display: block;
}

#nav8 ul li {
  list-style: none;
}

#nav8 .right {
  direction: rtl;
}

#nav8 .right ul {
  right: 0;
}

#nav8 .right li {
  direction: ltr;
}

#nav8 a {
  display: block;
  padding: 10px 0;
  text-align: center;
  text-decoration: none;
  color: #262626;
  font-weight: 500;
  transition: background 0.2s ease;
}

#nav8 ul a {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid #f5f5f5;
}

#nav8 ul a:last-child {
  border-bottom: none;
}

#nav8 td:hover, #nav8 li:hover {
  background: #f5f5f5;
}

#nav8 td {
  text-align: center;
}

/* ПРОГРЕС БАР */
#cssbar-wrapper {
  width: 300px;
  height: 21px;
  position: absolute;
  left: 50%;
}

#cssbar-border {
  border: 2px solid #dbdbdb;
  height: 100%;
  width: 100%;
  position: relative;
  left: -50%;
  top: -50%;
  padding: 3px;
  border-radius: 6px;
}

#cssbar-whitespace {
  overflow: hidden;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  position: relative;
  background: #f5f5f5;
  border-radius: 4px;
}

#cssbar-line {
  background: linear-gradient(90deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  position: absolute;
  height: 100%;
  width: 100%;
  animation: cssbar-slide 3s steps(30) infinite;
  border-radius: 3px;
}

@keyframes cssbar-slide {
  0% { left: -100%; }
  100% { left: 100%; }
}

@-moz-keyframes cssbar-slide {
  0% { left: -100%; }
  100% { left: 100%; }
}

@-webkit-keyframes cssbar-slide {
  0% { left: -100%; }
  100% { left: 100%; }
}

@-o-keyframes cssbar-slide {
  0% { left: -100%; }
  100% { left: 100%; }
}

@-ms-keyframes cssbar-slide {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  h1, .maintitle {
    font-size: 22px;
  }
  
  #qr img {
    width: 30px;
    height: 30px;
  }
}