/* Channel ID Finder — Dedicated Styles */

/* Search bar */
#ci-url-input {
  flex: 1;
  padding: 1rem 1.5rem;
  padding-right: 230px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
#ci-url-input::placeholder { color: #64748b; }
#ci-url-input:focus { border-color: #ffffff; box-shadow: 0 0 25px rgba(255, 255, 255, 0.4); }

#ci-fetch-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 1.5rem;
  border: none;
  border-radius: 8px;
  background: #1877F2;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}
#ci-fetch-btn:hover { background: #1565C0; box-shadow: 0 6px 18px rgba(24, 119, 242, 0.6); }
#ci-fetch-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Channel ID Card */
.ci-id-card {
  text-align: center;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  border: 2px solid var(--accent-cyan);
}

.ci-id-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 1rem;
}

.ci-id-value-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ci-id-value {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: var(--text-primary);
  background: var(--bg-card);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  letter-spacing: 1px;
  word-break: break-all;
  user-select: all;
}

.ci-copy-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid var(--accent-cyan);
  background: transparent;
  color: var(--accent-cyan);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ci-copy-btn:hover {
  background: var(--accent-cyan);
  color: #0f172a;
}

/* Info Grid */
.ci-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.ci-detail-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.ci-detail-card:hover {
  transform: none;
  box-shadow: var(--card-shadow);
}

.ci-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1rem;
  flex-shrink: 0;
}

.ci-detail-info {
  flex: 1;
  min-width: 0;
}

.ci-detail-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.ci-detail-value {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.ci-detail-small {
  font-size: 0.78rem;
  font-weight: 500;
}

.ci-copy-sm {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--glass-border-color, rgba(255,255,255,0.1));
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ci-copy-sm:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* Stats Row */
.ci-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ci-stat {
  text-align: center;
  padding: 1.5rem 1rem;
}

.ci-stat:hover {
  transform: none;
  box-shadow: var(--card-shadow);
}

.ci-stat i {
  font-size: 1.3rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  display: block;
}

.ci-stat-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.ci-stat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
  .ci-info-grid {
    grid-template-columns: 1fr;
  }
  .ci-stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .ci-id-value {
    font-size: 1rem;
  }
  #ci-url-input {
    padding-right: 1.5rem;
  }
  #ci-fetch-btn {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    padding: 0.85rem;
    margin-top: 0.5rem;
  }
}
