/* Основные стили */
.twitter-style-posts {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 20px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.tweet {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  margin-bottom: 15px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e6ecf0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.tweet:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #d1d9dd;
}

/* Шапка поста */
.tweet-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  position: relative;
}

.tweet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
  border: 2px solid #f0f2f5;
}

.tweet-user-info {
  flex-grow: 1;
}

.tweet-username {
  font-weight: bold;
  margin-right: 4px;
  color: #0f1419;
}

.tweet-usertag, .tweet-time {
  color: #536471;
  font-size: 14px;
}

.tweet-more-options {
  color: #536471;
  font-weight: bold;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

/* Контент поста */
.tweet-content {
  margin-left: 60px;
  margin-bottom: 12px;
}

.tweet-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #0f1419;
}

.tweet-image {
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e6ecf0;
}

.tweet-image img {
  width: 100%;
  display: block;
}

/* Футер поста */
.tweet-footer {
  margin-left: 60px;
  display: flex;
  justify-content: space-between;
  max-width: 425px;
  padding-top: 8px;
}

.tweet-action {
  color: #536471;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.tweet-action i {
  margin-right: 6px;
  font-size: 16px;
}

.tweet-action span {
  font-size: 13px;
}

.tweet-action:hover {
  background-color: rgba(29, 161, 242, 0.1);
  color: #1da1f2;
}

.tweet-action:hover .fa-heart {
  color: #e0245e;
}

.fa-heart {
  transition: color 0.2s;
}


/* Формочка пользователя */
.user-profile-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #e0e0e0;
}

.user-stats {
  display: flex;
  justify-content: space-around;
  margin: 16px 0;
  padding: 12px 0;
  /* border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0; */
  background: #f8f9fa;
  border-radius: 8px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-weight: bold;
  font-size: 18px;
  /* color: #000; */
  color: #1877f2;
}

.stat-label {
  font-size: 12px;
  color: #666;
}

.user-bio {
  margin: 12px 0;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

.subscribe-section {
  text-align: center;
  margin-top: 8px;
}

.subscribe-btn {
  background: #1da1f2;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 24px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.subscribe-btn:hover {
  background: #1a91da;
}

.subscribe-btn.subscribed {
    background: #657786;
    color: white;
}
.subscribe-btn.subscribed:hover {
    background: #536471;
}

.pointer{
  cursor: pointer;
}

/* Стили для кнопки загрузки доп постов */
.com-load-more-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin: 15px 0;
    background-color: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    color: #1da1f2;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: Arial, sans-serif;
}
.com-load-more-btn:hover {
    background-color: #e8f5fe;
    border-color: #1da1f2;
}

.com-load-more-btn:active {
    transform: scale(0.98);
}
.com-load-more-btn i {
    margin-right: 8px;
    font-size: 12px;
}
.com-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f8f9fa;
    color: #657786;
}
.com-load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}
.com-load-more-btn.loading i {
    animation: com-spin 1s linear infinite;
}
@keyframes com-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Выпадающий список */
.dropdown {
  position: relative;
  display: inline-block;
  margin-left: auto;
}

.tweet-more-options {
  cursor: pointer;
  padding: 8px 12px;
  font-size: 18px;
  border-radius: 50%;
  transition: background-color 0.2s;
  margin-left: auto;
}

.tweet-more-options:hover {
  background-color: rgba(29, 155, 240, 0.1);
}

.dropdown-content {
  display: block;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: white;
  min-width: 180px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: #f7f7f7;
}

.dropdown-item:first-child {
  border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 12px 12px;
}

/* Для удаленного поста */
.minimal-deleted-blue {
  background-color: #e3f2fd;
  border: 1px solid #bbdefb;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 8px 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1565c0;
}
.minimal-icon {
  font-size: 14px;
  opacity: 0.8;
}