/* ================================================================
   Yuva Tools — CSS
   Compatible with GeneratePress theme
   ================================================================ */

/* ── Reset & Base ─────────────────────────────────────────────── */
.yt-wrap * { box-sizing: border-box; }

.yt-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Tool Box ─────────────────────────────────────────────────── */
.yt-tool-box {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

@media (max-width: 600px) {
  .yt-tool-box { padding: 18px 16px; }
}

.yt-tool-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
  line-height: 1.3;
}

.yt-tool-sub {
  font-size: 14px;
  color: #555;
  margin: 0 0 24px;
  line-height: 1.6;
}

/* ── Form Elements ─────────────────────────────────────────────── */
.yt-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.yt-form-group {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.yt-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.yt-input,
.yt-select,
.yt-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a1a;
  background: #fafafa;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}

.yt-input:focus,
.yt-select:focus,
.yt-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  background: #fff;
}

.yt-textarea { resize: vertical; min-height: 80px; }

.yt-range {
  width: 100%;
  cursor: pointer;
  accent-color: #2563eb;
}

.yt-hint {
  font-size: 12px;
  color: #888;
  margin: 2px 0 0;
}

.yt-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.yt-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .1s;
  font-family: inherit;
}

.yt-btn:hover { background: #1d4ed8; color: #fff; text-decoration: none; }
.yt-btn:active { transform: scale(.98); }

.yt-btn-success {
  background: #16a34a;
}
.yt-btn-success:hover { background: #15803d; }

/* ── Upload Area ───────────────────────────────────────────────── */
.yt-upload-area {
  border: 2px dashed #c0c0c0;
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
  background: #f8faff;
  margin-bottom: 20px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.yt-upload-area:hover,
.yt-upload-area.drag-over {
  border-color: #2563eb;
  background: #eff6ff;
}

.yt-upload-icon { font-size: 40px; margin-bottom: 10px; }
.yt-upload-area p { font-size: 14px; color: #555; margin: 6px 0; }

.yt-upload-small {
  border: 2px dashed #c0c0c0;
  border-radius: 10px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.yt-upload-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 16px;
  cursor: pointer;
  color: #666;
  font-size: 13px;
  text-align: center;
}

.yt-upload-small img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

/* ── Preview ───────────────────────────────────────────────────── */
.yt-preview-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.yt-preview-row > div {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.yt-preview-img {
  max-width: 100%;
  max-height: 220px;
  border: 1px solid #ddd;
  border-radius: 6px;
  object-fit: contain;
}

/* ── Tabs ──────────────────────────────────────────────────────── */
.yt-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 2px solid #e8e8e8;
  margin-bottom: 24px;
  padding-bottom: 0;
}

.yt-tab {
  padding: 8px 16px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  transition: color .2s, border-color .2s;
  font-family: inherit;
  margin-bottom: -2px;
}

.yt-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.yt-tab:hover { color: #2563eb; }

/* ── Design Grid ───────────────────────────────────────────────── */
.yt-design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.yt-design-card {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .2s;
}

.yt-design-card.selected,
.yt-design-card:hover { border-color: #2563eb; }

.yt-design-thumb {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* ── Typing Test ───────────────────────────────────────────────── */
.yt-tt-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.yt-stat-box {
  flex: 1;
  min-width: 80px;
  background: #f0f4ff;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
}

.yt-stat-box span {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #2563eb;
  line-height: 1;
}

.yt-stat-box small {
  display: block;
  font-size: 11px;
  color: #666;
  margin-top: 4px;
}

.yt-stat-green span { color: #16a34a; }
.yt-stat-blue span  { color: #2563eb; }
.yt-stat-red span   { color: #dc2626; }
.yt-stat-green { background: #f0fdf4; }
.yt-stat-blue  { background: #eff6ff; }
.yt-stat-red   { background: #fef2f2; }

.yt-tt-passage {
  background: #f9fafb;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.8;
  min-height: 120px;
  margin-bottom: 12px;
  user-select: none;
}

.yt-tt-passage .correct { color: #16a34a; }
.yt-tt-passage .wrong   { color: #dc2626; background: #ffeaea; border-radius: 2px; }
.yt-tt-passage .current { border-bottom: 2px solid #2563eb; }

.yt-tt-input {
  width: 100%;
  min-height: 80px;
  padding: 12px 16px;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  resize: none;
  transition: border-color .2s;
}

.yt-tt-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* ── Result Box ────────────────────────────────────────────────── */
.yt-result-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 20px;
}

.yt-result-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0369a1;
  margin: 0 0 16px;
}

/* ── Age Table ─────────────────────────────────────────────────── */
.yt-age-table-wrap { overflow-x: auto; }

.yt-age-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.yt-age-table th {
  background: #2563eb;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
}

.yt-age-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #e8e8e8;
}

.yt-age-table tr:nth-child(even) td { background: #f8faff; }
.yt-age-table tr:hover td { background: #eff6ff; }

/* ── Eligibility Box ───────────────────────────────────────────── */
.yt-eligibility-box {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.yt-eligible {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.yt-not-eligible {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* ── Image List (PDF tool) ─────────────────────────────────────── */
.yt-image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.yt-image-item {
  position: relative;
  width: 100px;
  cursor: grab;
}

.yt-image-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #e0e0e0;
}

.yt-image-item .yt-remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Objective Cards ───────────────────────────────────────────── */
.yt-obj-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.yt-obj-card {
  padding: 8px 14px;
  background: #f0f4ff;
  border: 1px solid #c7d7fd;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  color: #2563eb;
  font-weight: 500;
}

.yt-obj-card:hover,
.yt-obj-card.selected {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* ── Info Box ──────────────────────────────────────────────────── */
.yt-info-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 16px 0;
}

.yt-info-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #92400e;
}

.yt-decl-text {
  font-size: 13px;
  color: #44403c;
  line-height: 1.7;
  margin: 0;
}

/* ── Related Tools ─────────────────────────────────────────────── */
.yt-related-tools {
  background: #f8faff;
  border: 1px solid #c7d7fd;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 2;
  margin-top: 32px;
}

.yt-related-tools a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.yt-related-tools a:hover { text-decoration: underline; }

/* ── SEO Content Area ──────────────────────────────────────────── */
.yt-content {
  padding: 0 4px;
}

.yt-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 14px;
  line-height: 1.35;
}

.yt-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1e3a5f;
  margin: 28px 0 12px;
}

.yt-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 6px;
}

.yt-content p {
  font-size: 15px;
  color: #374151;
  line-height: 1.75;
  margin: 0 0 14px;
}

.yt-content ul,
.yt-content ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.yt-content li {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 5px;
}

.yt-content a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.yt-content a:hover { text-decoration: underline; }

/* ── FAQ ───────────────────────────────────────────────────────── */
.yt-faq { margin: 0 0 24px; }

.yt-faq-item {
  border: 1px solid #e0e8ff;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: #f8faff;
}

.yt-faq-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1e3a5f;
  margin: 0 0 7px;
}

.yt-faq-item p {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
  line-height: 1.65;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .yt-form-group { min-width: 100%; }
  .yt-row { flex-direction: column; gap: 12px; }
  .yt-tool-title { font-size: 18px; }
  .yt-content h2 { font-size: 18px; }
  .yt-content h3 { font-size: 16px; }
  .yt-tt-stats { gap: 8px; }
  .yt-stat-box span { font-size: 22px; }
  .yt-tabs { gap: 2px; }
  .yt-tab { padding: 7px 10px; font-size: 12px; }
}
