/* YouTube Thumbnail Downloader — Tool-specific styles */

.page { padding: 40px 20px; max-width: 900px; margin: 0 auto; }
.page h1 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.page .subtitle { color: #888; margin-bottom: 16px; font-size: 14px; }

label {
  display: block; font-size: 13px; font-weight: 600; color: #aaa;
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
textarea {
  width: 100%; height: 120px; background: #0d0d0d; border: 1px solid #2a2a2a;
  border-radius: 8px; color: #e1e1e1;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 13px; padding: 12px; resize: vertical; outline: none;
  transition: border-color 0.2s;
}
textarea:focus { border-color: #ff4444; }
textarea::placeholder { color: #444; }

.url-count { text-align: right; font-size: 12px; color: #555; margin-top: 4px; }
.validation-msg {
  margin-top: 8px; padding: 8px 12px; background: #1a0000;
  border: 1px solid #440000; border-radius: 6px; font-size: 12px;
  color: #ff6666; display: none;
}

.btn-row { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; padding: 14px 24px; font-size: 16px; }
.btn svg { width: 20px; height: 20px; }

#progress-area { display: none; margin-top: 20px; }
.progress-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}
.progress-header h3 { font-size: 16px; color: #fff; }
.progress-bar-bg {
  width: 100%; height: 6px; background: #222;
  border-radius: 3px; margin-bottom: 16px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; background: #cc0000; border-radius: 3px;
  transition: width 0.3s; width: 0%;
}

/* Results grid */
.results-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.thumb-card {
  background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 8px;
  overflow: hidden;
}
.thumb-card img {
  width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover;
  background: #111;
}
.thumb-card .thumb-info {
  padding: 12px;
}
.thumb-card .thumb-title {
  font-size: 13px; color: #ccc; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.thumb-card .thumb-res {
  font-size: 11px; color: #666; margin-bottom: 10px;
}
.thumb-card .thumb-actions {
  display: flex; gap: 8px;
}
.thumb-card .thumb-actions .btn {
  padding: 6px 14px; font-size: 12px; flex: 1;
}

.thumb-card.failed {
  opacity: 0.5;
}
.thumb-card.failed img {
  display: none;
}
.thumb-card.failed .thumb-info {
  padding: 24px 12px;
}
.thumb-card.failed .thumb-title {
  color: #f44336;
}

/* Summary */
.summary {
  margin-top: 16px; padding: 16px; background: #0d0d0d;
  border-radius: 8px; display: flex; gap: 24px; flex-wrap: wrap;
  align-items: center;
}
.summary-item { text-align: center; }
.summary-num { font-size: 28px; font-weight: 700; }
.summary-label { font-size: 12px; color: #666; text-transform: uppercase; }
.summary-ok .summary-num { color: #4caf50; }
.summary-fail .summary-num { color: #f44336; }
.summary .btn { margin-left: auto; }

@media (max-width: 600px) {
  .page { padding: 24px 12px; }
  .page h1 { font-size: 22px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { font-size: 14px; padding: 12px 16px; }
  .results-grid { grid-template-columns: 1fr; }
}
