/* ============================================
   Sirr - Channels Styles
   Dark Theme | RTL | Mobile-First
   ============================================ */

/* ------------------------------------------
   Channel List Card
   ------------------------------------------ */
.channel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #1e1e1e;
  cursor: pointer;
  transition: background 0.15s ease;
}

.channel-card:hover {
  background: #1a1a1a;
}

.channel-card:active {
  background: #222;
}

/* Avatar */
.channel-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;
}

.channel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Info */
.channel-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.channel-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.channel-sub {
  font-size: 12px;
  color: #777;
  line-height: 1.3;
}

/* Last message preview */
.channel-last {
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* Time stamp */
.channel-time {
  font-size: 11px;
  color: #777;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 2px;
}

/* ------------------------------------------
   Channel Inner Page (Full Overlay)
   ------------------------------------------ */
.channel-inner-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: #111;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Hero Banner */
.channel-hero {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  background-size: cover;
  background-position: center;
}

.channel-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Avatar */
.channel-hero-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid #111;
  position: absolute;
  bottom: -35px;
  right: 20px;
  background: #1e1e1e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.channel-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Hero Info */
.channel-hero-info {
  padding: 44px 16px 16px;
}

.channel-hero-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 2px;
}

.channel-hero-user {
  font-size: 13px;
  color: #777;
  line-height: 1.4;
  margin-bottom: 8px;
}

.channel-hero-bio {
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Hero Stats */
.channel-hero-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #5eaff6;
  margin-bottom: 14px;
}

.channel-hero-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.channel-hero-stats .stat-num {
  font-weight: 700;
  color: #fff;
}

/* Subscribe Button */
.sub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.sub-btn.not-subscribed {
  background: #5eaff6;
  color: #fff;
}

.sub-btn.not-subscribed:hover {
  background: #4a9de6;
}

.sub-btn.subscribed {
  background: #1e1e1e;
  color: #777;
  border: 1px solid #333;
}

.sub-btn.subscribed:hover {
  background: #252525;
}

/* ------------------------------------------
   Channel Post
   ------------------------------------------ */
.channel-post {
  padding: 14px 16px;
  border-bottom: 1px solid #1e1e1e;
}

.channel-post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.channel-post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
}

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

.channel-post-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.channel-post-date {
  font-size: 12px;
  color: #777;
}

.channel-post-text {
  font-size: 14px;
  color: #ddd;
  line-height: 1.6;
  margin-bottom: 10px;
  word-wrap: break-word;
}

.channel-post-media {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

.channel-post-media img,
.channel-post-media video {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/* Post Stats (Views, Likes) */
.channel-post-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 8px;
}

.channel-post-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #777;
  cursor: pointer;
  transition: color 0.15s ease;
}

.channel-post-stat:hover {
  color: #aaa;
}

.channel-post-stat .icon {
  font-size: 18px;
}

.channel-post-stat.liked {
  color: #e74c5e;
}

.channel-post-views {
  font-size: 12px;
  color: #555;
  margin-top: 6px;
}

/* ------------------------------------------
   Page Action Button
   ------------------------------------------ */
.page-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #5eaff6, #6c5ce7);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin-top: 12px;
}

.page-action-btn:hover {
  opacity: 0.9;
}

.page-action-btn:active {
  opacity: 0.8;
}

.page-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
