/* =====================================================================
   CERTIFICAT SEO – certificat_seo.css
   ===================================================================== */

/* WRAP */
.cseo-wrap {
  max-width: 780px;
  margin: 0 auto;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1e293b;
}

/* ---- FORMULAR ---- */
.cseo-form-box {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 32px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  margin-bottom: 24px;
}
.cseo-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
@media (max-width: 560px) { .cseo-fields { grid-template-columns: 1fr; } }
.cseo-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}
.cseo-label em { font-weight: 400; color: #94a3b8; font-style: normal; }
.cseo-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  color: #1e293b;
  background: #f8fafc;
  transition: border-color .2s;
}
.cseo-input:focus {
  outline: none;
  border-color: #6366f1;
  background: #fff;
}
.cseo-btn {
  display: block;
  width: auto;
  margin: 0 auto;
  padding: 14px 40px;
  background: #0a1628;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
  letter-spacing: .3px;
}
.cseo-btn:hover  { background: #00b896; }
.cseo-btn:active { transform: scale(.98); }

/* Eroare */
.cseo-eroare {
  margin-top: 14px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #b91c1c;
  font-size: 14px;
}

/* ---- REZULTAT ---- */
.cseo-result {
  margin-bottom: 24px;
}

/* Scor hero */
.cseo-score-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 20px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
@media (max-width: 480px) {
  .cseo-score-hero { flex-direction: column; text-align: center; padding: 24px 20px; }
}
.cseo-nota {
  display: inline-block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(255,255,255,.15);
  margin-bottom: 10px;
}
.cseo-score-dom {
  font-size: 18px;
  font-weight: 700;
  opacity: .95;
}
.cseo-score-brand {
  font-size: 13px;
  opacity: .6;
  margin-top: 2px;
}
.cseo-cert-id {
  font-size: 11px;
  opacity: .45;
  margin-top: 6px;
  letter-spacing: .5px;
}

/* ---- CATEGORII ---- */
.cseo-cat {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.cseo-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.cseo-cat-icon { font-size: 18px; }
.cseo-cat-name { font-size: 15px; font-weight: 700; flex: 1; }
.cseo-cat-scor { font-size: 15px; font-weight: 800; }
.cseo-cat-bar {
  height: 5px;
  background: #e2e8f0;
}
.cseo-cat-bar > div {
  height: 5px;
  border-radius: 0;
  transition: width .6s ease;
}

/* Checklist itemi */
.cseo-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cseo-checkitem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
}
.cseo-checkitem:last-child { border-bottom: none; }
.cseo-check-icon {
  font-size: 15px;
  font-weight: 900;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.cseo-pass .cseo-check-icon { color: #16a34a; }
.cseo-fail .cseo-check-icon { color: #dc2626; }
.cseo-check-body { flex: 1; }
.cseo-check-label { display: block; font-weight: 600; color: #1e293b; }
.cseo-check-detail { display: block; font-size: 12px; color: #64748b; margin-top: 2px; }
.cseo-check-pts {
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.cseo-pass .cseo-check-pts { color: #16a34a; }
.cseo-fail .cseo-check-pts { color: #dc2626; }
.cseo-fail { background: #fef2f2; }

/* ---- WIDGET GENERATOR ---- */
.cseo-widget-section {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 28px;
  margin-top: 10px;
}
.cseo-widget-title { font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.cseo-widget-sub   { font-size: 13px; color: #64748b; margin: 0 0 16px; }
.cseo-widget-tabs  { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cseo-tab-btn {
  padding: 7px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #475569;
  transition: all .15s;
}
.cseo-tab-btn:hover    { border-color: #6366f1; color: #6366f1; }
.cseo-tab-active       { background: #6366f1; color: #fff !important; border-color: #6366f1 !important; }
.cseo-widget-panel     { display: none; }
.cseo-panel-active     { display: block; }
.cseo-widget-preview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cseo-widget-code {
  width: 100%;
  box-sizing: border-box;
  height: 90px;
  padding: 10px 12px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  resize: vertical;
  margin-bottom: 10px;
}
.cseo-copy-btn {
  padding: 9px 20px;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.cseo-copy-btn:hover { background: #4f46e5; }

/* ---- ISTORIC ---- */
.cseo-history {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 10px;
}
.cseo-history-title {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 14px;
}
.cseo-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cseo-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
}
.cseo-history-item:last-child { border-bottom: none; }
.cseo-history-nota {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cseo-history-info  { flex: 1; min-width: 0; }
.cseo-history-dom   { display: block; font-size: 13.5px; font-weight: 700; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cseo-history-brand { display: block; font-size: 11.5px; color: #64748b; }
.cseo-history-timp  { display: block; font-size: 11px; color: #94a3b8; }
.cseo-history-scor  { font-size: 14px; font-weight: 800; flex-shrink: 0; }

/* ---- BARA DE INCARCARE ---- */
.cseo-loading {
  margin-top: 18px;
  text-align: center;
}
.cseo-loading-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}
.cseo-loading-progress {
  height: 8px;
  width: 0%;
  background: linear-gradient(90deg, #f97316, #6366f1);
  border-radius: 99px;
  animation: cseoSlide 2.5s ease-in-out infinite;
}
@keyframes cseoSlide {
  0%   { width: 0%;  margin-left: 0%; }
  50%  { width: 60%; margin-left: 20%; }
  100% { width: 0%;  margin-left: 100%; }
}
.cseo-loading-text {
  font-size: 14px;
  font-weight: 600;
  color: #6366f1;
  animation: cseoPulse 1.5s ease-in-out infinite;
}
@keyframes cseoPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
