/* =========================================
   ASC WebGuard - style.css (FULL)
   ========================================= */

/* Base */
* { box-sizing: border-box; }

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0b0f10;
  color: #e6f0ea;
  margin: 0;
  line-height: 1.6;
}

/* Top Nav */
.topnav {
  background: #0f1516;
  border-bottom: 1px solid rgba(159, 232, 112, 0.15);
  padding: 14px 0;
}

.nav-inner {
  width: 92%;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  color: #9fe870;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.links a {
  color: #cfe9da;
  text-decoration: none;
  margin-left: 14px;
  font-size: 14px;
  opacity: 0.9;
}

.links a:hover { opacity: 1; text-decoration: underline; }
.links a.active { color: #9fe870; }

/* Header */
header {
  width: 92%;
  max-width: 980px;
  margin: 26px auto 10px;
  padding: 18px 0;
}

header h1 {
  margin: 0;
  font-size: 28px;
  color: #9fe870;
}

header p {
  margin: 6px 0 0;
  opacity: 0.85;
}

/* Main */
main {
  width: 92%;
  max-width: 980px;
  margin: 0 auto 34px;
  padding: 0 0 20px;
}

section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(159, 232, 112, 0.12);
  border-radius: 14px;
  padding: 20px;
  margin: 18px 0;
}

/* Form UI */
input[type="url"], input[type="text"], input[type="email"] {
  width: 100%;
  max-width: 520px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(159, 232, 112, 0.18);
  background: rgba(0,0,0,0.25);
  color: #e6f0ea;
  outline: none;
}

button {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(159, 232, 112, 0.25);
  background: rgba(159, 232, 112, 0.15);
  color: #e6f0ea;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background: rgba(159, 232, 112, 0.22);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Result card */
.result {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.result.safe {
  border-color: rgba(159, 232, 112, 0.45);
  background: rgba(159, 232, 112, 0.10);
}

.result.warning {
  border-color: rgba(255, 166, 0, 0.55);
  background: rgba(255, 166, 0, 0.10);
}

.result.dangerous {
  border-color: rgba(255, 80, 80, 0.60);
  background: rgba(255, 80, 80, 0.10);
}

/* Loading spinner (KROK 2) */
.loading {
  margin-top: 18px;
  text-align: center;
  color: #9fe870;
  font-size: 14px;
}

.hidden { display: none; }

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(159, 232, 112, 0.18);
  border-top: 4px solid #9fe870;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Footer */
footer {
  width: 92%;
  max-width: 980px;
  margin: 0 auto 28px;
  opacity: 0.75;
  font-size: 13px;
  text-align: center;
}
.scan-again {
  margin-top: 14px;
}

.disclaimer {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.7;
}


/* Mobile */
@media (max-width: 720px) {
  .nav-inner { flex-direction: column; align-items: flex-start; }
  .links a { margin-left: 0; margin-right: 12px; display: inline-block; margin-top: 8px; }
  header h1 { font-size: 24px; }
}
