/* ========================================
   Twitter Page Styles
   ======================================== */

/* Hero Section */
.twitter-hero {
  margin-top: 64px;
  background: linear-gradient(to right, white, #f9fafb 50%, white);
  border-bottom: 1px solid #e5e7eb;
  height: 245px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.twitter-hero-content {
  text-align: center;
}

.twitter-hero-title {
  font-size: 50px;
  font-weight: 600;
  line-height: 60px;
  color: #000;
  margin-bottom: 16px;
}

.twitter-hero-desc {
  font-size: 20px;
  color: #4a5565;
  line-height: 28px;
  letter-spacing: -0.45px;
}

/* Main Content */
.twitter-content {
  width: 1360px;
  margin: 0 auto;
  padding: 40px 0 80px;
  display: flex;
  gap: 32px;
}

@media (max-width: 1400px) {
  .twitter-content {
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Articles Grid */
.articles-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.articles-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-card {
  width: calc((100% - 32px) / 3);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(229, 231, 235, 0.5);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-image {
  height: 150px;
  overflow: hidden;
}

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

.article-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-title {
  font-size: 20px;
  font-weight: 600;
  color: #101828;
  line-height: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-desc {
  font-size: 14px;
  color: #4a5565;
  font-weight: 600;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.article-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #8b8d98;
  line-height: 20px;
}

.article-date img {
  width: 16px;
  height: 16px;
}

.article-more {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
  line-height: 20px;
}

.article-more:hover {
  opacity: 0.8;
}

.article-more img {
  width: 16px;
  height: 16px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
}

.page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #364153;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.pagination a {
  text-decoration: none;
}

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

.page-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.page-btn img {
  width: 20px;
  height: 20px;
}

/* Hot Articles Sidebar */
.sidebar {
  width: 485px;
  flex-shrink: 0;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 32px;
}

.sidebar-indicator {
  width: 4px;
  height: 32px;
  background: var(--primary-color);
  border-radius: 20px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
  font-size: 24px;
  font-weight: 600;
  background: linear-gradient(to right, #101828, #4a5565);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 32px;
}

.hot-articles-list {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
}

.hot-article-item {
  display: flex;
  gap: 16px;
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.hot-article-item a {
  text-decoration: none;
  color: inherit;
}
.hot-article-item:hover {
  background: #f9f9fb;
}

.hot-article-rank {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  flex-shrink: 0;
}

.hot-article-rank.top {
  background: var(--primary-color);
  color: white;
  border-radius: 10px;
}

.hot-article-rank.normal {
  background: #e7e8ec;
  color: #80828d;
  border-radius: 8px;
}

.hot-article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hot-article-title {
  font-size: 14px;
  font-weight: 700;
  color: #101828;
  line-height: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-article-date {
  font-size: 14px;
  color: #8b8d98;
  line-height: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
  .twitter-content {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
  }
  
  .articles-row {
    flex-wrap: wrap;
  }
  
  .article-card {
    min-width: calc(50% - 8px);
  }
}

@media (max-width: 768px) {
  /* ===== Mobile Hero ===== */
  .twitter-hero {
    margin-top: 96px;
    height: auto;
    padding: 24px 16px;
    background: linear-gradient(to bottom, white, #f9fafb);
  }
  
  .twitter-hero-title {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 8px;
  }
  
  .twitter-hero-desc {
    font-size: 12px;
    line-height: 20px;
    padding: 0;
    color: #8b8d98;
  }
  
  /* ===== Mobile Main Content ===== */
  .twitter-content {
    padding: 20px 16px;
    flex-direction: column;
    gap: 24px;
  }
  
  /* ===== Mobile Articles ===== */
  .articles-container {
    gap: 16px;
  }
  
  .articles-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .article-card {
    width: 100%;
    min-width: 100%;
    border-radius: 16px;
  }
  
  .article-image {
    height: 180px;
  }
  
  .article-body {
    padding: 16px;
    gap: 8px;
  }
  
  .article-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    -webkit-line-clamp: 2;
    margin-bottom: 0;
  }
  
  .article-desc {
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: #4a5565;
  }
  
  .article-footer {
    padding-top: 8px;
  }
  
  .article-date {
    font-size: 12px;
  }
  
  .article-date img {
    width: 14px;
    height: 14px;
  }
  
  .article-more {
    font-size: 12px;
  }
  
  /* ===== Mobile Pagination ===== */
  .pagination {
    padding: 16px 0;
    gap: 6px;
  }
  
  .page-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
    border-radius: 6px;
  }
  
  .page-btn img {
    width: 16px;
    height: 16px;
  }
  
  /* ===== Mobile Sidebar (Hot Articles) ===== */
  .sidebar {
    width: 100%;
  }
  
  .sidebar-header {
    gap: 8px;
    height: 24px;
  }
  
  .sidebar-indicator {
    width: 3px;
    height: 24px;
  }
  
  .sidebar-title {
    font-size: 16px;
    line-height: 24px;
  }
  
  .hot-articles-list {
    padding: 16px;
    border-radius: 12px;
  }
  
  .hot-article-item {
    padding: 8px;
    gap: 12px;
  }
  
  .hot-article-rank {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
  }
  
  .hot-article-content {
    gap: 4px;
  }
  
  .hot-article-title {
    font-size: 14px;
    line-height: 18px;
  }
  
  .hot-article-date {
    font-size: 12px;
  }
}
