/* ===============================
   LIGHT THEME using Elementor Kit
   =============================== */

:root .elementor-kit-6 {
  /* convenience aliases (optional) */
  --pri: var(--e-global-color-uicore_primary);
  --sec: var(--e-global-color-uicore_secondary);
  --acc: var(--e-global-color-uicore_accent);
  --headline: var(--e-global-color-uicore_headline);
  --body: var(--e-global-color-uicore_body);
  --dark: var(--e-global-color-uicore_dark);
  --light: var(--e-global-color-uicore_light);
  --white: var(--e-global-color-uicore_white);
  --card: #fafafa;         /* very light card bg */
  --border: #e7e7e7;       /* subtle borders */
  --shadow: 0 6px 18px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.08);
}

/* Wrapper */
.shc-wrapper {
  padding: 50px 15px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Container */
.shc-container {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 50px;
  max-width: 100%;
  margin: 0 auto;
  animation: fadeIn 0.8s ease-in-out;
  border: 1px solid var(--border);
}

/* Page Title */
.shc-title {
  font-family: var(--e-global-typography-uicore_secondary-font-family), system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: var(--e-global-typography-uicore_secondary-font-weight);
  font-size: 42px;
  color: var(--headline);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: .2px;
  text-transform: none;
}

/* Security Report Summary Box (lighter) */
.shc-highlight-box {
  background: linear-gradient(135deg, var(--card), var(--white));
  padding: 28px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--headline);
  margin-bottom: 30px;
  border: 1px solid var(--border);
  animation: fadeIn 0.8s ease-in-out;
}

/* Grid Layout for Score and Summary Info */
.shc-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

/* Score Circle */
.shc-score-box { text-align: center; flex: 1 1 30%; }

.shc-text-wrapper-score {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: stretch;
  justify-content: center;
}

.shc-score-i-btn {
  margin-top: 14px;
  font-size: 16px;
  background: var(--white);
  color: var(--headline);
  width: 16px; height: 16px;
  display: flex;
  padding: 12px;
  line-height: 0 !important;
  align-items: center; justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.shc-score-explanation {
  background-color: var(--white);
  border: 1px solid var(--border);
  color: var(--headline);
  padding: 12px 16px;
  text-align: left;
  border-radius: 10px;
  opacity: 0; visibility: hidden; display: none;
  position: absolute;
  max-width: 350px; width: 100%;
  top: -130px; left: 250px;
  transition: all .25s ease-in-out;
  line-height: 1.4;
  box-shadow: var(--shadow-lg);
}

.shc-score-i-btn:hover .shc-score-explanation {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.shc-score-i-btn:hover {
  background: var(--pri);
  color: var(--headline);
  border-color: transparent;
}

/* Grade ring */
.shc-score-grade {
  border-radius: 20px;
  width: 120px; height: 120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; font-weight: 800; text-align: center;
  line-height: 1;
  background: radial-gradient(circle at 30% 30%, var(--pri), var(--sec));
  color: var(--headline);
  box-shadow: var(--shadow);
  animation: scaleUp 1s ease-in-out;
  border: 4px solid var(--light);
}

.shc-score-text {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 600;
  color: var(--body);
}

/* Summary Information */
.shc-summary-info { flex: 1 1 65%; text-align: left; }
.shc-summary-info .shc-title {
  font-size: 28px; font-weight: 800; margin-bottom: 2px;
  color: var(--headline); text-align: left;
}

.shc-link {
  color: var(--pri);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s ease;
  border-bottom: 1px dashed transparent;
}
.shc-link:hover { color: var(--sec); border-bottom-color: currentColor; }

/* Badges Section */
.shc-badges-container { margin-top: 24px; text-align: center; }
.shc-badges-title {
  font-size: 16px; font-weight: 700; color: var(--body); margin-bottom: 10px;
}
.shc-badges {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.shc-badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px; font-weight: 700;
  border-radius: 999px; text-transform: capitalize;
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--headline);
}
.shc-badge:hover { transform: scale(1.06); box-shadow: var(--shadow); }

/* Semantic badges */
.shc-badge-success { background-color: color-mix(in srgb, var(--sec) 20%, var(--white)); color: var(--dark); border-color: color-mix(in srgb, var(--sec) 35%, var(--border)); }
.shc-badge-danger  { background-color: #fee2e2; color: #7f1d1d; border-color: #fecaca; }

/* Form */
.shc-form {
  display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 36px;
}

.shc-input {
  width: 100%; max-width: 800px; padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px; font-size: 18px;
  background-color: var(--white);
  color: var(--headline);
  transition: border-color .2s, box-shadow .2s;
}
.shc-input::placeholder { color: color-mix(in srgb, var(--body) 60%, var(--white)); }
.shc-input:focus {
  border-color: var(--pri);
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pri) 20%, transparent);
}

/* Primary Button */
.shc-button {
  padding: 14px 32px;
  background-image: linear-gradient(to right, var(--pri), var(--sec));
  color: var(--headline);
  font-size: 16px; font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--sec) 40%, var(--pri));
  border-radius: 10px; cursor: pointer;
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow);
}
.shc-button:hover {
  transform: translateY(-1px) scale(1.02) !important;
  filter: brightness(1.02) !important;
  color: var(--headline) !important;
}

/* Loader */
.shc-loader { display: flex; justify-content: center; align-items: center; min-height: 120px; gap: 18px; }
.shc-spinner {
  border: 5px solid var(--light);
  border-top: 5px solid var(--pri);
  border-radius: 50%;
  width: 50px; height: 50px;
  animation: spin .8s linear infinite;
}

/* Summary Section */
.shc-summary { margin-top: 32px; }
.shc-score { display: flex; align-items: center; gap: 36px; margin-bottom: 32px; }
.shc-score-info { flex: 1; }
.shc-subtitle {
  font-size: 22px; font-weight: 800; color: var(--headline); margin-bottom: 10px;
}

/* Suggested plugin (neutral/info) */
.shc-plugin-suggestion {
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 20%, var(--white)), var(--white));
  padding: 22px; border-radius: 12px; margin: 32px 0;
  border: 1px solid color-mix(in srgb, var(--acc) 35%, var(--border));
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease-in-out;
}
.shc-plugin-suggestion:hover { box-shadow: var(--shadow-lg); }
.shc-plugin-suggestion p {
  font-size: 16px; color: var(--dark); font-weight: 500; margin-bottom: 16px; line-height: 1.5;
}
.shc-plugin-suggestion .shc-title {
  font-size: 20px; color: var(--headline); margin-bottom: 8px; font-weight: 800; text-align: center;
}
.shc-plugin-suggestion .shc-description { font-size: 15px; color: var(--body); margin-bottom: 18px; }

/* Headers Section (present/missing blocks) */
.header-info{
  margin-top: 20px; padding: 22px;
  border-left: 6px solid; border-radius: 10px;
  animation: slideIn .5s ease-in-out;
  background: var(--card);
  border: 1px solid var(--border);
}

.shc-present {
  background-color: color-mix(in srgb, var(--sec) 10%, var(--card));
  border-color: var(--sec);
}

.shc-missing {
  background-color: #fff5f5;
  border-color: #e53935;
}
.shc-missing ul { padding-left: 25px; list-style: disc; color: #7f1d1d; }
.shc-missing li { font-size: 16px; margin-bottom: 8px; }

/* Raw Headers / Table */
.shc-raw { margin-top: 26px; }
.shc-header-head-th-50 { width: 50%; }

td.shc-status-badge.present {
  background: color-mix(in srgb, var(--sec) 25%, var(--white));
  color: var(--dark);
  text-align: center;
}
.shc-status-badge.missing {
  background: #fee2e2;
  color: #7f1d1d;
  text-align: center;
}

.shc-table {
  width: 100%; border-collapse: collapse; margin-top: 16px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.shc-table th,
.shc-table td {
  padding: 14px;
  color: var(--headline);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.shc-table th {
  background-color: var(--card);
  font-weight: 800;
}
.shc-table tbody tr:hover { background-color: color-mix(in srgb, var(--card) 60%, var(--white)); }

/* Additional Information */
.shc-additional { margin-top: 26px; }
.shc-learn-more {
  display: inline-block; padding: 10px 16px;
  background-color: var(--white); color: var(--headline);
  border-radius: 8px; font-size: 16px; text-decoration: none;
  transition: background-color .2s, transform .15s, box-shadow .2s;
  line-height: normal; min-width: 110px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.shc-learn-more:hover {
  background-color: var(--pri);
  transform: translateY(-1px) scale(1.03);
  color: var(--headline);
  border-color: transparent;
}

/* Accordion */
.shc-accordion { display: flex; flex-direction: column; gap: 16px; }
.shc-accordion .shc-header {
  cursor: pointer;
  background: linear-gradient(#ffffff, var(--card));
  display: flex !important; flex-direction: row !important;
  justify-content: space-between !important; align-items: center !important;
  border: 1px solid var(--border);
  padding: 14px 16px; border-radius: 8px; margin:0px;
}
.shc-accordion .shc-header.active { border-radius: 8px 8px 0 0; border-color: var(--pri); box-shadow: var(--shadow); }

.shc-header.active + .shc-content{
  opacity: 1; visibility: visible; height: 100%;
  overflow: hidden; border: 1px solid var(--border); border-top: none;
}
.shc-accordion .shc-content {
  opacity: 0; visibility: hidden; height: 0; transition: all .25s ease-in-out;
  border-radius: 0 0 8px 8px;
  background: var(--white);
}

/* Accordion table spacing */
.shc-accordion .shc-table { margin-top: 0; }

/* Accordion icon */
.shc-accordion .accordion-icon {
  font-size: 24px; font-weight: 100; transition: transform .25s ease; line-height: 100%;
}
.shc-accordion .shc-header.active .accordion-icon { font-size: 0; }
.shc-accordion .shc-header.active .accordion-icon:before { content: "−"; font-size: 24px; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes scaleUp { 0% { transform: scale(.92); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media screen and (max-width: 768px) {
  .shc-container { padding: 20px; }
  .shc-title { font-size: 28px; }
  .shc-score-grade { font-size: 56px; }

  .shc-wrapper { padding: 0; }
  .shc-score-box { margin-bottom: 0; width: 100%; }

  .shc-summary-grid { flex-direction: column; text-align: center; gap: 12px; }
  .shc-summary-info { text-align: center; }
  .shc-highlight-box { padding: 20px; }
  .shc-summary-info .shc-title { text-align: center; }

  .shc-score-explanation { max-width: 100%; top: 0; left: 0; position: fixed; inset: 16px; z-index: 5; }

  .shc-badges { gap: 6px; margin-top: 4px; }
  .shc-badge { padding: 4px 8px; font-size: 12px; }

  .shc-additional { overflow: auto; }
  .shc-table-Description { display: none !important; }
}

@media screen and (max-width: 360px) {
  .shc-input { font-size: 14px; padding: 10px; }
  .shc-button { font-size: 14px; padding: 10px 20px; }
}
