/* ==========================================================
   Webstrážca.sk – WP Security Scanner widget
   Vlož do /wp-content/themes/tvoja-tema/css/wp-scanner-styles.css
   ========================================================== */

.wpscan-widget {
  max-width: 680px;
  margin: 0 auto;
}

.wpscan-phase {
  animation: wpscan-fadein 0.25s ease;
}

@keyframes wpscan-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Fáza 1: formulár --- */

.wpscan-headline {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.3;
}

.wpscan-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wpscan-input {
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
}

.wpscan-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

.wpscan-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.wpscan-submit {
  padding: 16px 22px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.wpscan-submit:hover {
  opacity: 0.9;
}

.wpscan-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fdeaea;
  color: #a30000;
  border-radius: 6px;
  font-size: 14px;
}

/* --- Fáza 2: loading --- */

#wpscan-phase-loading {
  text-align: center;
  padding: 60px 20px;
}

.wpscan-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #eee;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: wpscan-spin 0.8s linear infinite;
}

@keyframes wpscan-spin {
  to { transform: rotate(360deg); }
}

.wpscan-loading-text {
  font-size: 16px;
  color: #444;
  min-height: 24px;
}

/* --- Fáza 3: výsledky / semafor --- */

.wpscan-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.wpscan-check {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  align-items: flex-start;
}

.wpscan-check-icon {
  font-size: 20px;
  line-height: 1;
}

.wpscan-check-title {
  font-weight: 700;
  margin-bottom: 2px;
}

.wpscan-check-message {
  font-size: 14px;
  color: #444;
}

.wpscan-check-red {
  background: #fdeaea;
  border-left: 4px solid #d9302f;
}

.wpscan-check-yellow {
  background: #fff8e6;
  border-left: 4px solid #e6a700;
}

.wpscan-check-green {
  background: #eaf7ec;
  border-left: 4px solid #2e9e44;
}

.wpscan-summary {
  padding: 14px 16px;
  background: #f7f7f7;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}

.wpscan-warnings {
  padding: 10px 14px;
  background: #fff4e5;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 14px;
}

.wpscan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.wpscan-table thead tr {
  text-align: left;
  border-bottom: 2px solid #ddd;
}

.wpscan-table th,
.wpscan-table td {
  padding: 8px;
}

.wpscan-table tbody tr {
  border-bottom: 1px solid #eee;
}

.wpscan-row-outdated {
  background: #fdeaea;
}

.wpscan-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.wpscan-restart {
  padding: 12px 20px;
  background: transparent;
  border: 1px solid #1a1a1a;
  border-radius: 8px !important;
  cursor: pointer;
  font-size: 14px;
}