/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  line-height: 1.6;
  font-size: 16px;
}

/* Header */
.main-header {
  background: #2c2c2c;
  color: #ffffff;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-toggle {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
}

.logo {
  font-weight: 600;
  font-size: 18px;
  color: #ffffff;
}

.search-icon {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-profile {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #4a4a4a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.dropdown-arrow {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  padding: 5px;
}

/* Main Container */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.article-wrapper {
  background: #ffffff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 0;
}

/* Author Section */
.author-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}

.author-left {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 600;
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.author-blog {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.article-date {
  font-size: 14px;
  color: #999;
}

.author-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: #f5f5f5;
}

.subscribe-btn {
  background: #0066cc;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.subscribe-btn:hover {
  background: #0052a3;
}

/* Article Title */
.article-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  margin-bottom: 25px;
}

/* Article Content */
.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.article-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 20px 0;
  color: #1a1a1a;
}

.subsection-title {
  font-size: 20px;
  font-weight: 600;
  margin: 35px 0 15px 0;
  color: #1a1a1a;
}

/* Bot List */
.bot-list {
  margin: 20px 0;
  padding-left: 25px;
}

.bot-list li {
  margin-bottom: 15px;
  line-height: 1.7;
}

/* Article Images */
.article-image-wrapper {
  margin: 30px 0;
  text-align: center;
}

.article-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Bot Cards */
.bot-card {
  background: #fafafa;
  border-left: 4px solid #0066cc;
  padding: 25px;
  margin: 30px 0;
  border-radius: 4px;
}

.bot-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.bot-link {
  margin-bottom: 15px;
}

.article-link {
  color: #0066cc;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.article-link:hover {
  border-bottom-color: #0066cc;
}

.bot-image-wrapper {
  margin: 15px 0 20px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.bot-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

.bot-card p {
  margin-bottom: 15px;
}

.bot-card p:last-child {
  margin-bottom: 0;
}

/* Article Footer */
.article-footer {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-tags {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-tag {
  font-size: 14px;
  color: #666;
}

.footer-stats {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-stat {
  font-size: 14px;
  color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .main-container {
    padding: 15px 10px;
  }

  .article-wrapper {
    padding: 20px 15px;
  }

  .article-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 20px;
  }

  .subsection-title {
    font-size: 18px;
  }

  .author-section {
    flex-direction: column;
    gap: 15px;
  }

  .author-right {
    width: 100%;
    justify-content: flex-end;
  }

  .bot-card {
    padding: 20px 15px;
  }

  .bot-card-title {
    font-size: 18px;
  }

  .article-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-stats {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 20px;
  }

  .article-content {
    font-size: 15px;
  }

  .section-title {
    font-size: 18px;
  }

  .subsection-title {
    font-size: 17px;
  }

  .bot-card {
    padding: 15px;
    margin: 20px 0;
  }

  .header-left {
    gap: 10px;
  }

  .logo {
    font-size: 16px;
  }
}
/* Sidebar with Other Articles - адаптировано под темный хедер стиль (ar4) */
.articles-sidebar {
    flex-shrink: 0;
    width: 350px;
}

.other-articles {
    background: #ffffff;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(44, 44, 44, 0.1);
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
    padding-bottom: 12px;
    border-bottom: 2px solid #2c2c2c;
}

.article-preview {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.article-preview:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.article-preview:hover {
    background-color: #f5f5f5;
    border-radius: 6px;
    padding: 10px;
    margin-left: -10px;
    margin-right: -10px;
}

.article-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    background: #f5f5f5;
    position: relative;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-thumbnail img[src=""],
.article-thumbnail img:not([src]) {
    display: none;
}

.article-info {
    flex: 1;
    min-width: 0;
}

.article-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 6px;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-domain {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

@media (max-width: 968px) {
    .main-container {
        flex-direction: column;
    }
    
    .articles-sidebar {
        width: 100%;
        order: 2;
    }
    
    .article-wrapper {
        order: 1;
    }
    
    .other-articles {
        position: static;
    }
    
    .article-preview {
        flex-wrap: wrap;
    }
    
    .article-thumbnail {
        width: 80px;
        height: 60px;
    }
}


/* Cross-links block structure */
.other-articles .article-preview {
  display: block;
}

.other-articles .article-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.other-articles .article-description {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.other-articles .article-domain {
  display: block;
}
