/* ========================
   STEAM PAGE CHECK - STYLES
   ======================== */

/* ========================
   GLOBAL BODY STYLES
   ======================== */
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #1b2838;
  color: #f9fafb;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
}

body.light {
  background: #e6e7eb;
  color: #111827;
}

/* ========================
   CONTAINER
   ======================== */
.container {
  max-width: 920px;
  margin: 40px auto;
  background: #0d1b2a;
  padding: 36px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

body.light .container {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* ========================
   HEADER
   ======================== */
.header {
  text-align: center;
  margin-bottom: 36px;
}

.header h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #c7d5e0;
}

body.light .header h1 {
  color: #1b2838;
}

.accent {
  width: 64px;
  height: 4px;
  background: #66c0f4;
  margin: 14px auto 16px auto;
  border-radius: 4px;
  transition: background 0.3s;
}

.header p {
  margin: 0;
  font-size: 15px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: #a0b3c0;
  line-height: 1.5;
}

body.light .header p { 
  color: #4b5563; 
}

/* ========================
   FORMS
   ======================== */
label {
  display: block;
  margin-top: 22px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

input, textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid #3a475a;
  font-size: 14px;
  background: #1b2838;
  color: #f9fafb;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #66c0f4;
  box-shadow: 0 0 0 3px rgba(102, 192, 244, 0.2);
}

body.light input, body.light textarea {
  background: #f9fafb;
  color: #111827;
  border: 1px solid #d1d5db;
}

body.light input:focus, body.light textarea:focus {
  border-color: #66c0f4;
  box-shadow: 0 0 0 3px rgba(102, 192, 244, 0.15);
}

textarea { 
  resize: vertical; 
  min-height: 150px; 
  line-height: 1.5;
}

/* ========================
   BUTTONS
   ======================== */
.buttons {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #66c0f4;
  color: #111827;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}

button:hover {
  background: #4ea0d4;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

button.secondary { 
  background: #6b7280; 
  color: #fff; 
}

button.secondary:hover { 
  background: #4b5563; 
}

button.ghost { 
  background: #2a3c4f; 
  color: #c7d5e0; 
}

button.ghost:hover { 
  background: #1e2a3b; 
}

body.light button.ghost {
  background: #e5e7eb;
  color: #374151;
}

body.light button.ghost:hover {
  background: #d1d5db;
}

/* ========================
   HEADINGS
   ======================== */
h2 { 
  margin-top: 44px; 
  margin-bottom: 14px; 
  font-size: 22px; 
  color: #c7d5e0;
}

body.light h2 {
  color: #1b2838;
}

/* ========================
   SUMMARY BAR
   ======================== */
.summary-bar {
  display: flex;
  gap: 12px;
  margin: 18px 0;
  font-weight: 600;
  flex-wrap: wrap;
}

.summary-bar span {
  padding: 6px 12px;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  transition: transform 0.2s;
}

.summary-bar span:hover { 
  transform: scale(1.05); 
}

.summary-pass { 
  background: #10b981; 
}

.summary-warning { 
  background: #f59e0b; 
}

.summary-fail { 
  background: #ef4444; 
}

.summary-locked {
  background: #6b7280;
}

/* ========================
   RESULTS OUTPUT
   ======================== */
#output {
  min-height: 80px;
}

.placeholder-text {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0;
}

body.light .placeholder-text {
  color: #6b7280;
}

.placeholder-text em {
  opacity: 0.8;
}

/* ========================
   RESULTS CARDS
   ======================== */
.result {
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  border-left: 6px solid;
  transition: transform 0.2s, box-shadow 0.2s;
  line-height: 1.5;
}

.result:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); 
}

.result strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.result p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Pass state */
.result.pass { 
  background: #064e3b; 
  border-color: #10b981; 
  color: #d1fae5; 
}

body.light .result.pass { 
  background: #ecfdf5; 
  border-color: #10b981; 
  color: #065f46; 
}

/* Warning state */
.result.warning { 
  background: #78350f; 
  border-color: #f59e0b; 
  color: #fef3c7; 
}

body.light .result.warning { 
  background: #fffbeb; 
  border-color: #f59e0b; 
  color: #78350f; 
}

/* Fail state */
.result.fail { 
  background: #7f1d1d; 
  border-color: #ef4444; 
  color: #fee2e2; 
}

body.light .result.fail { 
  background: #fef2f2; 
  border-color: #ef4444; 
  color: #7f1d1d; 
}

/* Locked state */
.result.locked {
  background: #1f2937;
  border-color: #6b7280;
  color: #9ca3af;
  opacity: 0.7;
}

body.light .result.locked {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #6b7280;
}

.result.locked strong {
  color: #9ca3af;
}

body.light .result.locked strong {
  color: #6b7280;
}

.locked-message {
  font-style: italic;
  display: block;
  margin-top: 4px;
}

/* ========================
   UNLOCK BANNER
   ======================== */
.unlock-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
  border: 1px solid #66c0f4;
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
}

body.light .unlock-banner {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border-color: #0ea5e9;
}

.unlock-icon {
  font-size: 32px;
}

.unlock-text {
  flex: 1;
}

.unlock-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  color: #c7d5e0;
}

body.light .unlock-text strong {
  color: #0c4a6e;
}

.unlock-text span {
  font-size: 14px;
  color: #a0b3c0;
  line-height: 1.4;
  display: block;
}

body.light .unlock-text span {
  color: #475569;
}

.unlock-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.unlock-buttons button {
  white-space: nowrap;
}

.unlock-buttons button.ghost {
  padding: 8px 16px;
  font-size: 13px;
}

/* ========================
   MODAL
   ======================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #0d1b2a;
  border: 1px solid #3a475a;
  border-radius: 12px;
  padding: 28px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

body.light .modal {
  background: #ffffff;
  border-color: #d1d5db;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.modal h3 {
  margin: 0 0 12px 0;
  color: #f9fafb;
  font-size: 20px;
}

body.light .modal h3 {
  color: #111827;
}

.modal p {
  margin: 0 0 16px 0;
  color: #a0b3c0;
  font-size: 14px;
}

body.light .modal p {
  color: #6b7280;
}

.modal input[type="email"] {
  width: 100%;
  margin-bottom: 16px;
}

.modal-buttons {
  display: flex;
  gap: 12px;
}

.modal-buttons button {
  flex: 1;
}

.modal-status {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 14px;
  text-align: center;
}

.modal-status.success {
  color: #10b981;
}

.modal-status.error {
  color: #ef4444;
}

/* ========================
   FOOTER
   ======================== */
footer { 
  margin-top: 36px; 
  padding-top: 20px;
  border-top: 1px solid #2a3c4f;
  font-size: 12px; 
  color: #9ca3af; 
  text-align: center; 
}

body.light footer { 
  color: #6b7280;
  border-top-color: #e5e7eb;
}

footer p {
  margin: 0 0 8px 0;
}

footer p:last-child {
  margin-bottom: 0;
}

footer .footer-links {
  margin: 12px 0;
}

footer .footer-links a {
  color: #66c0f4;
  text-decoration: none;
}

footer .footer-links a:hover {
  text-decoration: underline;
}

body.light footer .footer-links a {
  color: #0ea5e9;
}

footer .disclaimer {
  font-size: 11px;
  opacity: 0.8;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
  .container {
    margin: 20px;
    padding: 24px;
  }

  .header h1 {
    font-size: 24px;
  }

  .buttons {
    flex-direction: column;
  }

  .buttons button {
    width: 100%;
  }

  .unlock-banner {
    flex-direction: column;
    text-align: center;
  }

  .unlock-buttons {
    width: 100%;
  }

  .unlock-buttons button {
    width: 100%;
  }

  .modal {
    margin: 20px;
    padding: 20px;
  }

  .modal-buttons {
    flex-direction: column;
  }
}
