/* 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: #ffffff;
  color: #0f1419;
  line-height: 1.5;
  font-size: 15px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  border-left: 1px solid #eff3f4;
  border-right: 1px solid #eff3f4;
  min-height: 100vh;
}

/* Author Header */
.author-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eff3f4;
}

.author-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  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: 700;
  font-size: 15px;
  color: #0f1419;
  margin-bottom: 2px;
}

.author-handle {
  font-size: 15px;
  color: #536471;
}

.subscribe-btn {
  background: #0f1419;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.subscribe-btn:hover {
  background: #272c30;
}

.subscribe-btn.subscribed {
  background: #eff3f4;
  color: #0f1419;
}

.subscribe-btn.subscribed:hover {
  background: #d7dbdc;
}

/* Article Date */
.article-date {
  padding: 12px 16px;
  font-size: 15px;
  color: #536471;
  border-bottom: 1px solid #eff3f4;
}

/* Article Title */
.article-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #0f1419;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #eff3f4;
}

/* Article Content */
.article-content {
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #0f1419;
}

.article-content p {
  margin-bottom: 15px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 30px 0 15px 0;
  color: #0f1419;
}

.top-list {
  margin: 15px 0;
  padding-left: 25px;
}

.top-list li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.telegram-link {
  margin: 20px 0;
  padding: 12px;
  background: #f7f9f9;
  border-radius: 8px;
}

.article-link {
  color: #1d9bf0;
  text-decoration: none;
}

.article-link:hover {
  text-decoration: underline;
}

/* Bot Cards */
.bot-card {
  margin: 25px 0;
  padding: 16px;
  border: 1px solid #eff3f4;
  border-radius: 16px;
  background: #ffffff;
}

.bot-number {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f1419;
}

.bot-verdict {
  font-style: italic;
  color: #536471;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #f7f9f9;
  border-radius: 8px;
  border-left: 3px solid #1d9bf0;
}

.bot-link {
  margin: 10px 0;
}

.bot-image-wrapper {
  margin: 15px 0;
  border-radius: 12px;
  overflow: hidden;
}

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

.pros-cons {
  margin: 15px 0;
  padding: 12px;
  background: #f7f9f9;
  border-radius: 8px;
}

.pros-cons p {
  margin-bottom: 10px;
}

.pros-cons p:last-child {
  margin-bottom: 0;
}

.features-section {
  margin: 20px 0;
}

.features-list {
  margin: 10px 0;
  padding-left: 25px;
}

.features-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.price-section {
  margin: 20px 0;
  padding: 12px;
  background: #f7f9f9;
  border-radius: 8px;
}

.price-list {
  margin: 10px 0;
  padding-left: 25px;
}

.price-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.payment-section {
  margin: 15px 0;
  padding: 12px;
  background: #fff7ed;
  border-radius: 8px;
  border-left: 3px solid #f59e0b;
}

.tools-list {
  margin: 20px 0;
  padding: 15px;
  background: #f7f9f9;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
}

/* Article Footer */
.article-footer {
  padding: 16px;
  border-top: 1px solid #eff3f4;
  margin-top: 30px;
}

.footer-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eff3f4;
}

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

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

.footer-author-info {
  flex: 1;
}

.footer-author-name {
  font-weight: 700;
  font-size: 15px;
  color: #0f1419;
  margin-bottom: 2px;
}

.footer-author-date {
  font-size: 15px;
  color: #536471;
}

.footer-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eff3f4;
  flex-wrap: wrap;
}

.stat-item {
  font-size: 15px;
  color: #536471;
}

.stat-number {
  font-weight: 700;
  color: #0f1419;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.action-btn {
  background: none;
  border: none;
  color: #536471;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 20px;
  transition: background 0.2s;
}

.action-btn:hover {
  background: #f7f9f9;
  color: #0f1419;
}

.reaction-count {
  font-size: 15px;
  color: #536471;
  font-weight: 400;
}

.footer-more {
  padding-top: 16px;
  border-top: 1px solid #eff3f4;
}

.more-link {
  color: #1d9bf0;
  text-decoration: none;
  font-size: 15px;
}

.more-link:hover {
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  body {
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .article-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .article-content p {
    word-break: break-word;
    hyphens: auto;
  }
  
  .article-content h2,
  .article-content h3 {
    word-break: break-word;
    hyphens: auto;
  }
  .container {
    border-left: none;
    border-right: none;
  }

  .article-title {
    font-size: 18px;
    padding: 10px 12px;
  }

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

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

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

  .bot-number {
    font-size: 16px;
  }

  .author-header {
    padding: 10px 12px;
  }

  .article-date {
    padding: 10px 12px;
  }

  .footer-stats {
    gap: 15px;
    font-size: 14px;
  }

  .footer-actions {
    gap: 15px;
  }
}
/* Sidebar with Other Articles */
/* Sidebar with Other Articles - адаптировано под Twitter/X стиль (ar5) */
.articles-sidebar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.other-articles {
    background: #ffffff;
    border: 1px solid #eff3f4;
    border-radius: 16px;
    padding: 16px;
    max-width: 350px;
    margin: 0 auto 30px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0f1419;
    padding-bottom: 12px;
    border-bottom: 1px solid #eff3f4;
}

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

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

.article-preview:hover {
    background-color: #f7f9f9;
    border-radius: 12px;
    padding: 12px;
    margin-left: -12px;
    margin-right: -12px;
}

.article-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: #f7f9f9;
    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: 15px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    color: #0f1419;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-domain {
    font-size: 13px;
    color: #536471;
    font-weight: 400;
}

/* Mobile адаптивность для sidebar */
@media (max-width: 1023px) {
    .articles-sidebar {
        position: static;
        width: 100%;
        max-width: 100%;
        padding: 20px;
        margin-top: 30px;
    }
    
    .other-articles {
        max-width: 100%;
    }
    
    .article-preview {
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .article-thumbnail {
        width: 80px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .article-title {
        font-size: 13px;
        -webkit-line-clamp: 3;
        word-break: break-word;
        hyphens: auto;
    }
    
    .article-domain {
        font-size: 11px;
    }
}

@media (min-width: 1024px) {
    .articles-sidebar {
        position: fixed;
        right: 20px;
        top: 100px;
        width: 350px;
        padding: 0;
    }
    
    .container {
        margin-right: 390px;
    }
}


/* 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;
}
