/* =========================================================
   YouTube Thumbnail Downloader — yt-thumbnail.css
   All additions/overrides for the YT thumbnail tool page
   ========================================================= */

/* ── Tags strip ───────────────────────────────────────────*/


/* ── Input container ──────────────────────────────────────*/
.yt_thumb_inp_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.yt_thumb_inp {
  width: 900px;
  max-width: calc(100% - 40px);
  background: var(--header-bg);
  box-shadow: var(--box-shadow);
  border-radius: 20px;
  padding: 12px 17px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yt_thumb_inp textarea {
  width: 100%;
  min-height: 40px;
  max-height: 200px;
  border: none;
  outline: none;
  resize: none;
  font-size: 13px;
  background: transparent;
  overflow-y: auto;
  color: var(--primary-text);
  line-height: 1.5;
}

.yt_thumb_inp textarea::-webkit-scrollbar { width: 4px; }
.yt_thumb_inp textarea::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 5px;
}

.yt_thumb_inp .actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ── Error box ────────────────────────────────────────────*/
#YtErrorBox {
  display: none;
  align-items: center;
  gap: 8px;
  width: 900px;
  max-width: calc(100% - 40px);
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff1f1;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-size: 12px;
  font-weight: 500;
}

[data-theme="dark"] #YtErrorBox {
  background: #2d1515;
  border-color: #7f1d1d;
  color: #fca5a5;
}

@keyframes yt-error-pop {
  0%   { transform: scale(0.97); opacity: 0; }
  60%  { transform: scale(1.01); }
  100% { transform: scale(1);    opacity: 1; }
}
.yt-error-pop { animation: yt-error-pop 0.25s ease forwards; }

/* ── Paste / Get Thumbnail buttons ────────────────────────*/
#PasteBtn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: border-color 0.2s, color 0.2s;
  color: var(--primary-text);
}

#PasteBtn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

#GetThumbnailBtn {
  font-size: 12px;
  min-width: 140px;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

#GetThumbnailBtn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 20px -8px #6365f1ce, 0 0 0 2px #6365f122;
  filter: brightness(1.05);
}

#GetThumbnailBtn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Spinner ──────────────────────────────────────────────*/
@keyframes yt-spin {
  to { transform: rotate(360deg); }
}

.yt-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: yt-spin 0.65s linear infinite;
  vertical-align: middle;
}

/* ── Results panel ────────────────────────────────────────*/
.yt_thumbnail_show_container {
  display: none;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.yt_thumbnail_show_container .yt_thumbnail_show {
  padding: 30px;
  width: 900px;
  max-width: calc(100% - 40px);
  background: var(--header-bg);
  box-shadow: var(--box-shadow);
  border-radius: 20px;
}

/* Container entrance */
@keyframes yt-container-fadein {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.yt-fade-in {
  animation: yt-container-fadein 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Header row ───────────────────────────────────────────*/
.yt_thumbnail_show .yt_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-text);
  flex-wrap: wrap;
  gap: 10px;
}

.yt_thumbnail_show .yt_header h3 {
  font-size: 16px;
}

.yt_thumbnail_show .yt_header h3 span {
  color: var(--primary-color);
}

.yt_thumbnail_show .yt_header .actions__opt {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.yt_thumbnail_show .yt_header .actions__opt .selected__checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
}

.yt_thumbnail_show .yt_header .actions__opt .select__quality select {
  padding: 4px 10px;
  border-radius: 5px;
  outline: none;
  border: 1px solid var(--divider);
  font-size: 12px;
  font-weight: 500;
  background-color: var(--header-bg);
  color: var(--primary-text);
  cursor: pointer;
}

/* ── Thumbnail grid ───────────────────────────────────────*/
.thumbnail__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 1024px) {
  .thumbnail__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .thumbnail__grid { grid-template-columns: 1fr; }
}

/* ── Card ─────────────────────────────────────────────────*/
.thumbnail__grid .thumbnail {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--divider);
  aspect-ratio: 16 / 9;
}

/* Card entrance animation */
@keyframes yt-card-in {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);   }
}

.yt-card-enter {
  animation: yt-card-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.yt-card-unavailable {
  opacity: 0.55;
}

/* ── Shimmer skeleton ─────────────────────────────────────*/
@keyframes yt-shimmer-move {
  from { background-position: -400px 0; }
  to   { background-position:  400px 0; }
}

.yt-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #e8e8f0 25%,
    #f4f4fb 50%,
    #e8e8f0 75%
  );
  background-size: 800px 100%;
  animation: yt-shimmer-move 1.4s linear infinite;
  border-radius: 12px;
  z-index: 1;
}

[data-theme="dark"] .yt-shimmer {
  background: linear-gradient(
    90deg,
    #1e2535 25%,
    #252d42 50%,
    #1e2535 75%
  );
  background-size: 800px 100%;
}

/* ── Thumbnail image ──────────────────────────────────────*/
.thumbnail__grid .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.thumbnail__grid .thumbnail:hover img {
  transform: scale(1.04);
}

/* Image fade-in */
@keyframes yt-img-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.yt-img-fadein {
  animation: yt-img-in 0.4s ease forwards;
}

/* ── Quality badge ────────────────────────────────────────*/
.thumb__quality-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  pointer-events: none;
}

.thumb__quality-badge em {
  font-style: normal;
  opacity: 0.72;
  font-weight: 400;
  margin-left: 4px;
}

/* ── Checkbox (top-right) ─────────────────────────────────*/
.thumb__top {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
}

.native-check {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

/* ── Action buttons (bottom-right) ───────────────────────*/
.thumb__bottom {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 5;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.thumbnail__grid .thumbnail:hover .thumb__bottom {
  opacity: 1;
}

.yt_thumbnail_sec .icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  font-size: 15px;
}

.yt_thumbnail_sec .icon-btn:hover {
  transform: translateY(-2px) scale(1.08);
  background: var(--primary-color);
  box-shadow: 0 6px 14px -4px #6366f1aa;
}

.yt_thumbnail_sec .icon-btn:active {
  transform: scale(0.96);
}

/* ── Bottom action bar ────────────────────────────────────*/
.download__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 20px;
  background-color: var(--divider);
  margin-top: 14px;
}

.download__action .selected__count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary-text);
}

.download__action .selected__count .icon {
  height: 30px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: #e7eafe;
}

.download__action .selected__count .icon i {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 14px;
}

.download__action .showoing__result {
  font-size: 12px;
  color: var(--gray-text);
  font-weight: 500;
}

.DonwloadThumbnailBtn {
  font-size: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.DonwloadThumbnailBtn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 28px -8px #6365f1d0;
}

.DonwloadThumbnailBtn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 8px 12px -6px #6365f1a0;
}

.DonwloadThumbnailBtn:focus-visible {
  outline: 3px solid #6365f1;
  outline-offset: 3px;
}

.DonwloadThumbnailBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Preview modal ────────────────────────────────────────*/
.yt-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.yt-preview-modal.open {
  pointer-events: all;
  opacity: 1;
}

.yt-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.yt-preview-content {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 860px);
  border-radius: 18px;
  overflow: hidden;
  background: var(--header-bg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  transform: scale(0.93);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.yt-preview-modal.open .yt-preview-content {
  transform: scale(1);
}

.yt-preview-content img {
  width: 100%;
  display: block;
}

.yt-preview-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background 0.15s ease;
}

.yt-preview-close:hover { background: #ef4444; }

.yt-preview-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
}

.yt-preview-dl {
  font-size: 13px;
  padding: 9px 22px;
}

.yt-preview-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--divider);
  background: transparent;
  color: var(--primary-text);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.yt-preview-copy:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* ── Features section ─────────────────────────────────────*/
.yt_features_container {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt__features {
  padding: 10px;
  width: 900px;
  max-width: calc(100% - 40px);
}

.yt__features .feature_box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yt__features .feature_box .icon {
  height: 50px;
  width: 60px;
  border-radius: 10px;
  /* background-color: #e3e3f8; */
  background-color: var(--menu-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 25px;
  flex-shrink: 0;
}

.yt__features .feature_box .desc span {
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
  color: var(--primary-text);
}

.yt__features .feature_box .desc p {
  font-size: 12px;
  color: var(--gray-text);
}

/* ── Responsive tweaks ────────────────────────────────────*/
@media (max-width: 940px) {
  .yt_thumb_inp,
  .yt_thumbnail_show,
  .yt__features { width: 100%; max-width: calc(100% - 40px); }
}

@media (max-width: 600px) {
  .yt_thumbnail_show { padding: 20px 16px; }
  .download__action  { flex-direction: column; align-items: flex-start; }
  .DonwloadThumbnailBtn { width: 100%; justify-content: center; }
}

/* ── URL Count Badge ──────────────────────────────────────*/
.url__count__badge {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 10px;
  background-color: #e3e3f8;
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 600;
  animation: yt-error-pop 0.2s ease forwards;
}

.url__count__badge i {
  font-size: 13px;
}

/* ── Video Group Header (for multiple videos) ─────────────*/
.yt-video-group-header {
  grid-column: 1 / -1;
  padding: 10px 0 4px;
  margin-top: 6px;
}

.yt-video-group-header:first-child {
  margin-top: 0;
  padding-top: 0;
}

.yt-group-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background-color: #e3e3f8;
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 600;
  font-family: monospace;
  letter-spacing: 0.04em;
  border-left: 3px solid var(--primary-color);
}




/* Add this CSS in assets/css/tools/yt-thumbnail.css */

.yt_how_section {
  margin-top: 30px;
  padding: 80px 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(99, 102, 241, 0.14), transparent 30%),
    radial-gradient(circle at 85% 70%, rgba(239, 68, 68, 0.12), transparent 32%),
    var(--section-bg);
}

.yt_how_wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.yt_how_intro,
.yt_how_step {
  background: var(--header-bg);
  border: 1px solid var(--divider);
  box-shadow: var(--box-shadow);
}

.yt_how_intro {
  border-radius: 20px;
  padding: 30px;
  overflow: hidden;
  position: relative;
}

.yt_how_intro::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
}

.yt_how_badge {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #e3e3f8;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  margin-bottom: 18px;
}

.yt_how_intro h2 {
  max-width: 420px;
  color: var(--primary-text);
  font-size: 34px;
  line-height: 1.15;
  text-transform: capitalize;
  margin-bottom: 14px;
}

.yt_how_intro p {
  max-width: 470px;
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.75;
}

.yt_how_preview {
  margin-top: 28px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--divider);
  background: var(--body-background);
}

.yt_how_preview_top {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--divider);
}

.yt_how_preview_top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0.45;
}

.yt_how_preview_body {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--primary-text);
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.16), transparent),
    linear-gradient(45deg, rgba(239, 68, 68, 0.12), transparent);
}

.yt_how_preview_body i {
  font-size: 42px;
  color: var(--primary-color);
}

.yt_how_preview_body strong {
  font-size: 18px;
  color: var(--primary-text);
}

.yt_how_preview_body small {
  color: var(--gray-text);
  font-size: 12px;
}

.yt_how_steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.yt_how_step {
  position: relative;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  gap: 15px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.yt_how_step:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 22px 45px -25px rgba(99, 102, 241, 0.8);
}

.yt_how_icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #e3e3f8;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yt_how_icon i {
  font-size: 22px;
}

.yt_how_step span {
  display: inline-block;
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.yt_how_step h3 {
  color: var(--primary-text);
  font-size: 16px;
  text-transform: capitalize;
  margin-bottom: 8px;
}

.yt_how_step p {
  color: var(--gray-text);
  font-size: 13px;
  line-height: 1.65;
}

[data-theme="dark"] .yt_how_badge,
[data-theme="dark"] .yt_how_icon {
  background: rgba(99, 102, 241, 0.16);
}

@media (max-width: 900px) {
  .yt_how_wrap {
    grid-template-columns: 1fr;
  }

  .yt_how_intro h2 {
    font-size: 28px;
  }
}

@media (max-width: 620px) {
  .yt_how_section {
    padding: 55px 0;
  }

  .yt_how_intro {
    padding: 22px;
  }

  .yt_how_steps {
    grid-template-columns: 1fr;
  }

  .yt_how_step {
    padding: 18px;
  }
}



/* Add this CSS in assets/css/tools/yt-thumbnail.css */

.yt_features_section {
  padding: 80px 0;
  background: var(--body-background);
}

.yt_features_header {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.yt_features_badge {
  width: fit-content;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #e3e3f8;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
}

.yt_features_header h2 {
  color: var(--primary-text);
  font-size: 34px;
  line-height: 1.2;
  text-transform: capitalize;
  margin-bottom: 12px;
}

.yt_features_header p {
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.7;
}

.yt_features_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.yt_feature_card {
  position: relative;
  padding: 24px;
  border-radius: 20px;
  background: var(--header-bg);
  border: 1px solid var(--divider);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.yt_feature_card::after {
  content: "";
  position: absolute;
  right: -45px;
  top: -45px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.08);
  transition: transform 0.25s ease;
}

.yt_feature_card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 24px 45px -28px rgba(99, 102, 241, 0.9);
}

.yt_feature_card:hover::after {
  transform: scale(1.25);
}

.yt_feature_icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #e3e3f8;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.yt_feature_icon i {
  font-size: 25px;
}

.yt_feature_icon.red {
  background: #fee2e2;
  color: #ef4444;
}

.yt_feature_icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.yt_feature_icon.orange {
  background: #ffedd5;
  color: #f97316;
}

.yt_feature_icon.purple {
  background: #f3e8ff;
  color: #9333ea;
}

.yt_feature_icon.blue {
  background: #dbeafe;
  color: #2563eb;
}

.yt_feature_card h3 {
  color: var(--primary-text);
  font-size: 17px;
  text-transform: capitalize;
  margin-bottom: 9px;
  position: relative;
  z-index: 1;
}

.yt_feature_card p {
  color: var(--gray-text);
  font-size: 13px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .yt_features_badge,
[data-theme="dark"] .yt_feature_icon {
  background: rgba(99, 102, 241, 0.16);
}

@media (max-width: 900px) {
  .yt_features_grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .yt_features_header h2 {
    font-size: 28px;
  }
}

@media (max-width: 620px) {
  .yt_features_section {
    padding: 55px 0;
  }

  .yt_features_grid {
    grid-template-columns: 1fr;
  }

  .yt_feature_card {
    padding: 21px;
  }
}



/* Add this CSS in assets/css/tools/yt-thumbnail.css */

.yt_content_section {
  padding: 80px 0;
  background: var(--section-bg);
}

.yt_content_wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: stretch;
}

.yt_content_main,
.yt_content_box {
  background: var(--header-bg);
  border: 1px solid var(--divider);
  box-shadow: var(--box-shadow);
  border-radius: 20px;
}

.yt_content_main {
  padding: 34px;
}

.yt_content_badge {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #e3e3f8;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}

.yt_content_main h2 {
  color: var(--primary-text);
  font-size: 32px;
  line-height: 1.25;
  text-transform: capitalize;
  margin-bottom: 14px;
}

.yt_content_main p {
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 14px;
}

.yt_content_note {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
  margin-top: 20px;
}

.yt_content_note i {
  color: var(--primary-color);
  font-size: 20px;
  margin-top: 3px;
}

.yt_content_note p {
  margin: 0;
  font-size: 13px;
}

.yt_content_side {
  display: grid;
  gap: 18px;
}

.yt_content_box {
  padding: 24px;
}

.yt_content_box span {
  display: block;
  color: var(--primary-text);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}

.yt_content_box ul {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.yt_content_box li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gray-text);
  font-size: 13px;
}

.yt_content_box li i {
  color: #16a34a;
  font-size: 16px;
}

.yt_quality_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yt_quality_tags small {
  padding: 8px 12px;
  border-radius: 999px;
  background: #e3e3f8;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
}

[data-theme="dark"] .yt_content_badge,
[data-theme="dark"] .yt_quality_tags small {
  background: rgba(99, 102, 241, 0.16);
}

@media (max-width: 900px) {
  .yt_content_wrap {
    grid-template-columns: 1fr;
  }

  .yt_content_main h2 {
    font-size: 27px;
  }
}

@media (max-width: 620px) {
  .yt_content_section {
    padding: 55px 0;
  }

  .yt_content_main,
  .yt_content_box {
    padding: 22px;
  }
}



/* Add this CSS in assets/css/tools/yt-thumbnail.css */

.yt_example_section {
  padding: 80px 0;
  background: var(--body-background);
}

.yt_example_header {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.yt_example_badge {
  width: fit-content;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #e3e3f8;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
}

.yt_example_header h2 {
  color: var(--primary-text);
  font-size: 34px;
  line-height: 1.2;
  text-transform: capitalize;
  margin-bottom: 12px;
}

.yt_example_header p {
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.7;
}

.yt_example_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.yt_example_card {
  background: var(--header-bg);
  border: 1px solid var(--divider);
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.yt_example_card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 24px 45px -28px rgba(99, 102, 241, 0.9);
}

.yt_example_thumb {
  min-height: 150px;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.18), transparent),
    linear-gradient(45deg, rgba(99, 102, 241, 0.18), transparent),
    var(--section-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--primary-color);
}

.yt_example_thumb.short {
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.18), transparent),
    linear-gradient(45deg, rgba(99, 102, 241, 0.16), transparent),
    var(--section-bg);
}

.yt_example_thumb.bulk {
  background:
    linear-gradient(135deg, rgba(22, 163, 74, 0.16), transparent),
    linear-gradient(45deg, rgba(99, 102, 241, 0.16), transparent),
    var(--section-bg);
}

.yt_example_thumb i {
  font-size: 42px;
}

.yt_example_thumb span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.yt_example_content {
  padding: 22px;
}

.yt_example_content h3 {
  color: var(--primary-text);
  font-size: 17px;
  text-transform: capitalize;
  margin-bottom: 9px;
}

.yt_example_content p {
  color: var(--gray-text);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.yt_example_url {
  padding: 12px 13px;
  border-radius: 12px;
  background: var(--body-background);
  border: 1px solid var(--divider);
  color: var(--primary-text);
  font-size: 12px;
  line-height: 1.6;
  word-break: break-all;
  margin-bottom: 14px;
}

.yt_example_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yt_example_tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #e3e3f8;
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 700;
}

[data-theme="dark"] .yt_example_badge,
[data-theme="dark"] .yt_example_tags span {
  background: rgba(99, 102, 241, 0.16);
}

@media (max-width: 900px) {
  .yt_example_grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .yt_example_header h2 {
    font-size: 28px;
  }
}

@media (max-width: 620px) {
  .yt_example_section {
    padding: 55px 0;
  }

  .yt_example_grid {
    grid-template-columns: 1fr;
  }

  .yt_example_content {
    padding: 20px;
  }
}



/* Add this CSS in assets/css/tools/yt-thumbnail.css */

.yt_faq_section {
  padding: 80px 0;
  background: var(--section-bg);
}

.yt_faq_header {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.yt_faq_badge {
  width: fit-content;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #e3e3f8;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
}

.yt_faq_header h2 {
  color: var(--primary-text);
  font-size: 34px;
  line-height: 1.2;
  text-transform: capitalize;
  margin-bottom: 12px;
}

.yt_faq_header p {
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.7;
}

.yt_faq_container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.yt_faq_item {
  background: var(--header-bg);
  border: 1px solid var(--divider);
  border-radius: 16px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.yt_faq_item.active {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 22px 45px -30px rgba(99, 102, 241, 0.9);
}

.yt_faq_question {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
}

.yt_faq_question span {
  color: var(--primary-text);
  font-size: 15px;
  font-weight: 700;
}

.yt_faq_question i {
  color: var(--primary-color);
  font-size: 18px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.yt_faq_item.active .yt_faq_question i {
  transform: rotate(180deg);
}

.yt_faq_answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.yt_faq_answer p {
  padding: 0 20px 18px;
  color: var(--gray-text);
  font-size: 13px;
  line-height: 1.75;
}

[data-theme="dark"] .yt_faq_badge {
  background: rgba(99, 102, 241, 0.16);
}

@media (max-width: 620px) {
  .yt_faq_section {
    padding: 55px 0;
  }

  .yt_faq_header h2 {
    font-size: 28px;
  }

  .yt_faq_question {
    padding: 16px;
  }

  .yt_faq_answer p {
    padding: 0 16px 16px;
  }
}



/* Add this CSS in assets/css/tools/yt-thumbnail.css */

.yt_related_section {
  padding: 80px 0;
  background: var(--body-background);
}

.yt_related_header {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.yt_related_badge {
  width: fit-content;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #e3e3f8;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
}

.yt_related_header h2 {
  color: var(--primary-text);
  font-size: 34px;
  line-height: 1.2;
  text-transform: capitalize;
  margin-bottom: 12px;
}

.yt_related_header p {
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.7;
}

.yt_related_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.yt_related_card {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: 20px;
  background: var(--header-bg);
  border: 1px solid var(--divider);
  box-shadow: var(--box-shadow);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.yt_related_card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.08);
  transition: transform 0.25s ease;
}

.yt_related_card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 24px 45px -28px rgba(99, 102, 241, 0.9);
}

.yt_related_card:hover::after {
  transform: scale(1.25);
}

.yt_related_icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #e3e3f8;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.yt_related_icon i {
  font-size: 24px;
}

.yt_related_icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.yt_related_icon.orange {
  background: #ffedd5;
  color: #f97316;
}

.yt_related_icon.red {
  background: #fee2e2;
  color: #ef4444;
}

.yt_related_icon.purple {
  background: #f3e8ff;
  color: #9333ea;
}

.yt_related_icon.blue {
  background: #dbeafe;
  color: #2563eb;
}

.yt_related_card h3 {
  color: var(--primary-text);
  font-size: 16px;
  text-transform: capitalize;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.yt_related_card p {
  color: var(--gray-text);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 13px;
  position: relative;
  z-index: 1;
}

.yt_related_card span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.yt_related_card span i {
  transition: transform 0.25s ease;
}

.yt_related_card:hover span i {
  transform: translateX(4px);
}

[data-theme="dark"] .yt_related_badge,
[data-theme="dark"] .yt_related_icon {
  background: rgba(99, 102, 241, 0.16);
}

@media (max-width: 900px) {
  .yt_related_grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .yt_related_header h2 {
    font-size: 28px;
  }
}

@media (max-width: 620px) {
  .yt_related_section {
    padding: 55px 0;
  }

  .yt_related_grid {
    grid-template-columns: 1fr;
  }

  .yt_related_card {
    padding: 19px;
  }
}


/* Better simple UI for hero features */

.yt_features_container {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.yt__features.yt_features_premium {
  width: 900px;
  max-width: calc(100% - 40px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0;
}

.yt_features_premium .feature_box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border-radius: 16px;
  background: var(--header-bg);
  border: 1px solid var(--divider);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.yt_features_premium .feature_box::after {
  content: "";
  position: absolute;
  right: -35px;
  top: -35px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.08);
}

.yt_features_premium .feature_box:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 20px 35px -25px rgba(99, 102, 241, 0.9);
}

.yt_features_premium .feature_box .icon {
  height: 46px;
  width: 46px;
  min-width: 46px;
  border-radius: 14px;
  background: #e3e3f8;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  position: relative;
  z-index: 1;
}

.yt_features_premium .feature_box .icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.yt_features_premium .feature_box .icon.orange {
  background: #ffedd5;
  color: #f97316;
}

.yt_features_premium .feature_box .desc {
  position: relative;
  z-index: 1;
}

.yt_features_premium .feature_box .desc span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-text);
  text-transform: capitalize;
  margin-bottom: 4px;
}

.yt_features_premium .feature_box .desc p {
  font-size: 12px;
  line-height: 1.45;
  color: var(--gray-text);
}

[data-theme="dark"] .yt_features_premium .feature_box .icon {
  background: rgba(99, 102, 241, 0.16);
}

@media (max-width: 800px) {
  .yt__features.yt_features_premium {
    grid-template-columns: 1fr;
  }
}