/* Основные стили темы BNGC */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.bngc-header {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #2c5aa0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.filters-form {
  display: flex;
  gap: 0.5rem;
}

.filters-form select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

/* Grid */
.bngc-grid {
  padding: 2rem 0;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 2rem;
}

/* Model Card */
.model-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.model-card:hover {
  transform: translateY(-2px);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
}

.badge {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.badge.live {
  background: #dc3545;
  color: white;
}

.badge.hd {
  background: #28a745;
  color: white;
}

.badge.vibe {
  background: #ffc107;
  color: black;
}

.viewers-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.75rem;
}

.card-info {
  padding: 1rem;
}

.model-name {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.model-details {
  font-size: 0.875rem;
  color: #666;
}

/* Banner slots */
.banner-widget {
  margin: 1rem 0;
  text-align: center;
}

/* Floating banner */
.bngc-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-width: 300px;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}

/* Footer */
.bngc-footer {
  background: #343a40;
  color: white;
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  color: #fff;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #adb5bd;
  text-decoration: none;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #495057;
  padding-top: 1rem;
  text-align: center;
}

.disclaimer {
  color: #ffc107;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Model page */
.model-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.model-chat {
  margin-bottom: 2rem;
}

.model-info,
.model-facts,
.model-description,
.related-models {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.fact-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.fact-label {
  font-weight: bold;
  color: #666;
}

/* SEO text */
.seo-text-block {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.seo-content {
  line-height: 1.8;
  color: #555;
}

/* Loading */
.loading {
  text-align: center;
  padding: 2rem;
  color: #666;
}

/* Ad slots */
.ad-slot {
  grid-column: 1 / -1;
  margin: 1rem 0;
  text-align: center;
}

/* Related models */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.related-info {
  padding: 0.75rem;
}

.related-name {
  font-weight: 600;
}

.related-viewers {
  color: #666;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .filters-form {
    flex-wrap: wrap;
  }

  .models-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

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

  .bngc-floating {
    bottom: 10px;
    right: 10px;
    max-width: 250px;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}