/* ============================================
   v2/css/texts.css
   استایل صفحات متن‌محور (تاریخچه، قوانین، درباره ما)
   سایت اخبار استقلال — نسخه ۲
   ============================================ */

.texts-page {
  padding: 16px 14px 24px;
}

.texts-content {
  max-width: 100%;
}

/* ============================================
   متن عمومی
   ============================================ */
.texts-text {
  font-size: .95rem;
  line-height: 2;
  color: var(--text-secondary);
  text-align: justify;
  white-space: pre-wrap;
  word-wrap: break-word;
  background: #fff;
  padding: 20px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .03);
}

.texts-text p {
  margin-bottom: 12px;
}

.texts-text p:last-child {
  margin-bottom: 0;
}

/* ============================================
   لیست قوانین
   ============================================ */
.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .03);
  overflow: hidden;
}

.rules-list li {
  padding: 14px 18px;
  border-bottom: 1px solid var(--bg);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  transition: background .2s;
}

.rules-list li:last-child {
  border-bottom: none;
}

.rules-list li:hover {
  background: var(--bg-light);
}

.rules-list li i {
  color: var(--gold);
  font-size: 1rem;
  margin-top: 4px;
  flex-shrink: 0;
  min-width: 18px;
}

.rules-list li.loading-more {
  display: flex;
  justify-content: center;
  color: var(--text-muted);
  font-size: .85rem;
  padding: 30px 18px;
}

.rules-list li.loading-more i {
  color: var(--primary);
  margin: 0 0 0 6px;
  animation: spin 1s linear infinite;
  margin-top: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   شبکه‌های اجتماعی
   ============================================ */
.social-section {
  margin-top: 20px;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .03);
}

.social-section h4 {
  color: var(--primary);
  font-size: .95rem;
  margin-bottom: 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social-section h4 i {
  color: var(--gold);
}

.social-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  background: var(--bg-light);
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  text-decoration: none;
  color: inherit;
  touch-action: manipulation;
}

.social-item:hover,
.social-item:active {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(245, 200, 66, .2);
}

.social-item i {
  font-size: 1.8rem;
  transition: transform .3s;
}

.social-item:hover i {
  transform: scale(1.1);
}

.social-item span {
  font-size: .7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

/* رنگ آیکون‌ها */
.instagram { color: #e4405f; }
.telegram { color: #0088cc; }
.bale { color: #ff6b00; }
.rubika { color: #8b5cf6; }
.eita { color: #1a73e8; }
.globe { color: var(--primary); }

/* ============================================
   Empty / Error
   ============================================ */
.texts-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: .9rem;
}

.texts-empty i {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
  color: var(--text-light);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 380px) {
  .texts-page { padding: 12px 12px 20px; }
  .texts-text { font-size: .88rem; padding: 16px 14px; line-height: 1.9; }
  .rules-list li { padding: 12px 14px; font-size: .85rem; }
  .social-icons { grid-template-columns: repeat(2, 1fr); }
  .social-item i { font-size: 1.6rem; }
  .social-item span { font-size: .65rem; }
}