/* Skeleton Loaders */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}

.skeleton-line {
  height: 16px;
  margin-bottom: 12px;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-line.medium {
  width: 80%;
}

.skeleton-line.long {
  width: 100%;
}

.skeleton-title {
  height: 24px;
  width: 50%;
  margin-bottom: 16px;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.skeleton-button {
  height: 38px;
  width: 120px;
  border-radius: 6px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Skeleton for Channel Cards */
.skeleton-channel-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.skeleton-channel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.skeleton-channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.skeleton-channel-title {
  flex: 1;
  height: 20px;
}

.skeleton-channel-stats {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.skeleton-stat {
  height: 14px;
  width: 80px;
}

/* Skeleton for Table */
.skeleton-table {
  width: 100%;
}

.skeleton-table-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #e9ecef;
}

.skeleton-table-cell {
  height: 16px;
}

/* Skeleton for Timeline */
.skeleton-timeline {
  padding: 20px 0;
}

.skeleton-timeline-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding-left: 40px;
}

.skeleton-timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-timeline-content {
  flex: 1;
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Utility Classes for Tooltips */
.tooltip-trigger {
  position: relative;
  cursor: help;
}

/* Button with Tooltip */
.btn[data-tippy-content] {
  position: relative;
}

/* Icon with Tooltip */
.icon-btn[data-tippy-content] {
  position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
  .skeleton-grid {
    grid-template-columns: 1fr;
  }
  
  .skeleton-table-row {
    grid-template-columns: 1fr;
  }
}
