/* ==========================================
   Project: The Best Fetish Links
   File: styles.css
   Version: 3.0.5
   ========================================== */

/* ----- Base ----- */
body {
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ----- Top bar ----- */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111;
  padding: 10px 20px;
  border-bottom: 2px solid #c00;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  height: 40px;
}

.site-name {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}

.language-switcher {
  display: flex;
  gap: 10px;
}

.lang-btn {
  background: #222;
  color: #ccc;
  border: 1px solid #333;
  padding: 5px 10px;
  cursor: pointer;
}

.lang-btn.active {
  background: #c00;
  color: #fff;
  border-color: #900;
}

/* ---*/
.left-section .logo-link {
  display: flex;
  align-items: center;  /* Выравнивание по вертикали */
  text-decoration: none; /* Убираем подчеркивание */
}

.left-section .logo-link .site-logo {
  height: 40px;   /* Можно подогнать под дизайн */
  margin-right: 10px; /* Расстояние между логотипом и текстом */
}

.left-section .logo-link .site-name {
  font-size: 18px;
  font-weight: bold;
  color: #fff; /* Цвет текста */
}

/* ----- Navigation ----- */
header {
  background-color: #222;
  border-bottom: 1px solid #333;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px;
}

nav a {
  color: #ccc;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: #fff;
}

/* ----- Banner ----- */
.banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  background-color: #000;
  margin-top: 5px;
}

.banner-half {
  flex: 1 1 50%;
  text-align: center;
}

.banner-half img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  object-fit: cover;
}

/* ----- Content Area ----- */
.content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  padding: 10px;
}

.frame {
  background-color: #111;
  border: 1px solid #333;
  border-radius: 5px;
  overflow: hidden;
}

.table-wrapper {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c00 #111;
}

/* ----- Custom scrollbar (WebKit) ----- */
.table-wrapper::-webkit-scrollbar {
  width: 6px;
}
.table-wrapper::-webkit-scrollbar-thumb {
  background-color: #c00;
  border-radius: 3px;
}
.table-wrapper::-webkit-scrollbar-track {
  background-color: #111;
}

/* ----- Table Styles ----- */
.table {
  width: 100%;
  border-collapse: collapse;
  color: #ccc;
  font-size: 15px;
}

.table th {
  background-color: #c00;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 16px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.table td {
  padding: 8px 10px;
  border-bottom: 1px solid #333;
  text-align: left;
}

.table a {
  color: #ff4444;
  text-decoration: none;
}

.table a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ----- Footer ----- */
footer {
  text-align: center;
  background-color: #111;
  padding: 15px;
  border-top: 1px solid #333;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  margin: 0 10px;
}

.footer-links a:hover {
  color: #fff;
}

/* ==========================================
   Responsive Design (Phones & Tablets)
   ========================================== */

@media (max-width: 900px) {
  .banner-half {
    flex: 1 1 100%;
  }

  .content {
    grid-template-columns: 1fr 1fr;
  }

  .table th {
    font-size: 14px;
  }

  .table td {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .banner-half {
    flex: 1 1 100%;
  }

  .content {
    grid-template-columns: 1fr;
  }

  .frame {
    max-height: none;
  }

  .table-wrapper {
    max-height: 300px;
  }

  footer {
    font-size: 14px;
  }
}

.az-navigation {
  width: 100%;
  background-color: #f2f2f2; /* светлый фон, можно поменять */
  text-align: center;
  padding: 8px 0;
  margin-bottom: 20px;
  overflow-x: auto; /* горизонтальный скролл на мобилках */
}

.az-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 10px;
}

.az-navigation li {
  display: inline;
}

.az-navigation a {
  text-decoration: none;
  font-weight: bold;
  color: #333; /* можно поменять цвет */
  padding: 4px 8px;
}

.az-navigation a:hover {
  color: #ff0000; /* эффект при наведении */
}


/* ==========================================
   Horizontal A-Z navigation
   Version: 3.1.0
   ========================================== */

.az-navigation {
  width: 100%;
  background-color: #111; /* цвет фона подберите под тему сайта */
  overflow-x: auto;       /* горизонтальная прокрутка на маленьких экранах */
  white-space: nowrap;    /* буквы не переносятся на следующую строку */
  padding: 10px 0;
  box-sizing: border-box;
  border-bottom: 2px solid #333;
  margin-bottom: 20px;
}

.az-navigation ul {
  display: flex;
  justify-content: flex-start; /* буквы слева */
  margin: 0;
  padding: 0 10px;
  list-style: none;
}

.az-navigation li {
  margin: 0 8px;
}

.az-navigation a {
  display: inline-block;
  color: #fff;           /* цвет текста */
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  padding: 6px 10px;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 4px;
}

.az-navigation a:hover {
  background-color: #c00; /* цвет при наведении */
  color: #fff;
}

@media (max-width: 768px) {
  .az-navigation a {
    font-size: 14px;
    padding: 5px 8px;
  }
}

@media (max-width: 480px) {
  .az-navigation a {
    font-size: 12px;
    padding: 4px 6px;
  }
}


/* Fetish List Vertical Menu */
.fetish-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

/* Menu styling */
.fetish-menu {
  flex: 0 0 200px; /* ширина меню */
  background-color: #111;
  padding: 15px;
  border-radius: 5px;
}

.fetish-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fetish-menu li {
  padding: 10px;
  color: #fff;
  cursor: pointer;
  border-bottom: 1px solid #222;
  transition: background-color 0.3s;
}

.fetish-menu li:hover,
.fetish-menu li.active {
  background-color: #c00;
  color: #fff;
  border-radius: 8px; /* rounding added */
}

/* Content styling */
.fetish-detail {
  flex: 1; /* занимает оставшееся место */
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 5px;
  color: #fff;
}

.fetish-content {
  display: none;
}

.fetish-content.active {
  display: block;
}