/*
|--------------------------------------------------------------------------
| iToolsera YouTube Channel Comparison
| v1.0.0
|--------------------------------------------------------------------------
|
| Uses the existing iToolsera homepage/tool design system.
| Only tool-specific components are defined here.
|--------------------------------------------------------------------------
*/

.youtube-channel-compare-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 24px;
}

.youtube-channel-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.youtube-channel-comparison-result {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
  padding: 20px;
}

.youtube-channel-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.youtube-channel-result-kicker {
  display: block;
  margin-bottom: 3px;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.youtube-channel-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.youtube-channel-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

.youtube-channel-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.youtube-channel-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
}

.youtube-channel-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.4rem;
}

.youtube-channel-side {
  position: absolute;
  margin-top: -12px;
  margin-left: -6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.youtube-channel-name-wrap {
  min-width: 0;
}

.youtube-channel-name-wrap h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  word-break: break-word;
}

.youtube-channel-handle {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.85rem;
}

.youtube-channel-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.youtube-channel-card-actions .btn {
  font-size: 0.84rem;
}

.youtube-channel-metrics {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.youtube-channel-metric-head,
.youtube-channel-metric-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  align-items: center;
}

.youtube-channel-metric-head {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.youtube-channel-metric-head > div,
.youtube-channel-metric-row > div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid #e2e8f0;
}

.youtube-channel-metric-head > div:last-child,
.youtube-channel-metric-row > div:last-child {
  border-right: 0;
}

.youtube-channel-metric-row {
  border-top: 1px solid #e2e8f0;
}

.youtube-channel-metric-label {
  color: #475569;
  font-weight: 600;
}

.youtube-channel-metric-value {
  color: #0f172a;
  font-weight: 600;
  word-break: break-word;
}

.youtube-channel-note {
  margin-top: 14px;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.55;
}

.youtube-channel-compare-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.youtube-channel-compare-info-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.youtube-channel-compare-info-card > i {
  margin-bottom: 4px;
  font-size: 1.35rem;
}

.youtube-channel-compare-info-card strong {
  font-size: 0.95rem;
}

.youtube-channel-compare-info-card span {
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.55;
}

@media (max-width: 767.98px) {
  .youtube-channel-compare-card {
    padding: 16px;
  }

  .youtube-channel-input-grid,
  .youtube-channel-cards,
  .youtube-channel-compare-info-grid {
    grid-template-columns: 1fr;
  }

  .youtube-channel-result-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .youtube-channel-metric-head,
  .youtube-channel-metric-row {
    grid-template-columns: 1.1fr 1fr 1fr;
  }

  .youtube-channel-metric-head > div,
  .youtube-channel-metric-row > div {
    padding: 10px 8px;
    font-size: 0.78rem;
  }
}
