/* ============ Marketly Tool Page Styles ============ */
.mk-container { max-width: 1200px; margin: 0 auto; padding: 32px 20px 60px; }

.mk-breadcrumb { font-size: 13px; color: #64748b; margin-bottom: 16px; }
.mk-breadcrumb a { color: #2563eb; text-decoration: none; }
.mk-breadcrumb a:hover { text-decoration: underline; }
.mk-breadcrumb span { margin: 0 8px; }

.mk-tool {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 20px;
  padding: 32px; box-shadow: 0 4px 6px -1px rgba(15,23,42,.03);
}
@media (min-width: 768px) { .mk-tool { padding: 40px; } }

.mk-tool-title {
  font-size: 30px; font-weight: 900; letter-spacing: -.5px;
  margin: 0 0 8px; color: #0f172a;
}
@media (min-width: 768px) { .mk-tool-title { font-size: 36px; } }
.mk-tool-desc { color: #64748b; font-size: 16px; margin: 0 0 28px; line-height: 1.6; }

.mk-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #334155; }
.mk-input, .mk-textarea, .mk-select {
  width: 100%; padding: 12px 14px;
  border: 1px solid #cbd5e1; border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff;
  color: #0f172a; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.mk-input:focus, .mk-textarea:focus, .mk-select:focus {
  border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}
.mk-textarea { min-height: 160px; resize: vertical; font-family: ui-monospace, monospace; }
.mk-field { margin-bottom: 18px; }
.mk-grid { display: grid; gap: 18px; }
.mk-grid-2 { grid-template-columns: 1fr; }
.mk-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .mk-grid-2 { grid-template-columns: 1fr 1fr; }
  .mk-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.mk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; font-family: inherit; transition: all .15s;
  text-decoration: none;
}
.mk-btn-primary { background: #2563eb; color: #fff; box-shadow: 0 10px 15px -3px rgba(37,99,235,.2); }
.mk-btn-primary:hover { background: #1d4ed8; }
.mk-btn-secondary { background: #f1f5f9; color: #334155; }
.mk-btn-secondary:hover { background: #e2e8f0; }
.mk-btn-danger { background: #dc2626; color: #fff; }
.mk-btn-danger:hover { background: #b91c1c; }
.mk-btn:disabled { opacity: .5; cursor: not-allowed; }
.mk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.mk-dropzone {
  border: 2px dashed #cbd5e1; border-radius: 14px;
  padding: 40px 20px; text-align: center;
  background: #f8fafc; cursor: pointer; transition: all .2s;
}
.mk-dropzone:hover, .mk-dropzone.dragover { border-color: #2563eb; background: #eff6ff; }
.mk-dropzone-icon { font-size: 40px; margin-bottom: 12px; }
.mk-dropzone-text { color: #475569; font-size: 15px; }
.mk-dropzone-hint { color: #94a3b8; font-size: 13px; margin-top: 6px; }

.mk-result {
  margin-top: 24px; padding: 20px;
  background: #f0fdf4; border: 1px solid #86efac; border-radius: 12px;
}
.mk-result.error { background: #fef2f2; border-color: #fca5a5; }
.mk-result-title {
  font-weight: 700; color: #166534; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.mk-result.error .mk-result-title { color: #991b1b; }
.mk-output {
  background: #0f172a; color: #e2e8f0;
  padding: 16px; border-radius: 10px;
  font-family: ui-monospace, monospace; font-size: 13px;
  white-space: pre-wrap; word-break: break-all;
  max-height: 400px; overflow: auto;
}

.mk-info { margin-top: 40px; padding-top: 32px; border-top: 1px solid #e2e8f0; }
.mk-info h2 { font-size: 22px; font-weight: 800; margin: 0 0 16px; }
.mk-info p { color: #475569; line-height: 1.7; margin: 0 0 12px; }
.mk-features {
  display: grid; gap: 12px; margin-top: 16px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .mk-features { grid-template-columns: 1fr 1fr; } }
.mk-feature {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; background: #f8fafc; border-radius: 10px;
}
.mk-feature-icon { color: #2563eb; font-weight: 900; }
.mk-feature-text { font-size: 14px; color: #475569; line-height: 1.5; }

.mk-faq { margin-top: 40px; padding-top: 32px; border-top: 1px solid #e2e8f0; }
.mk-faq h2 { font-size: 22px; font-weight: 800; margin: 0 0 20px; }
.mk-faq h3 { font-size: 17px; font-weight: 700; color: #0f172a; margin: 20px 0 6px; }
.mk-faq p { color: #475569; line-height: 1.7; margin: 0 0 8px; }

.mk-related { margin-top: 40px; }
.mk-related h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.mk-related-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.mk-related-card {
  padding: 16px; border: 1px solid #e2e8f0; border-radius: 12px;
  text-decoration: none; color: inherit; background: #fff;
  transition: all .2s;
}
.mk-related-card:hover {
  border-color: #93c5fd; transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,.08);
}
.mk-related-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.mk-related-card p { font-size: 13px; color: #64748b; margin: 0; }

.mk-preview-grid {
  display: grid; gap: 12px; margin-top: 16px;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.mk-preview-item {
  position: relative; border-radius: 8px; overflow: hidden;
  border: 1px solid #e2e8f0; background: #f8fafc; padding: 12px;
}
.mk-preview-item img { width: 100%; display: block; border-radius: 4px; }
.mk-preview-item .name { font-size: 12px; font-weight: 600; word-break: break-all; margin-top: 6px; }
.mk-preview-item .meta { font-size: 11px; color: #64748b; }
.mk-preview-item button.remove {
  position: absolute; top: 6px; right: 6px;
  background: rgba(220,38,38,.9); color: #fff;
  border: none; border-radius: 6px;
  width: 24px; height: 24px; cursor: pointer;
  font-size: 14px; line-height: 1;
}