/* css/security-games.css */

/* -----------------------------
   Dark glass theme (matches your other WebProjects)
   ----------------------------- */

:root{
  --bg0: #070b12;
  --bg1: #0b1220;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --muted2: rgba(255,255,255,0.55);
  --shadow: 0 18px 50px rgba(0,0,0,0.55);
  --r: 22px;
}

/* Force page background + typography even if other CSS is fighting you */
body.wp{
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% 15%, rgba(80,120,255,0.20), transparent 55%),
    radial-gradient(900px 600px at 85% 70%, rgba(0,255,200,0.12), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  min-height: 100vh;
}

/* Utility: hide panels cleanly (one game at a time) */
.is-hidden{ display: none !important; }

/* Make the page fit without zooming */
.wp-wrap{
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 44px;
}

/* -----------------------------
   Top bar
   ----------------------------- */
.wp-topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  margin: 16px auto 12px;
  width: min(1180px, calc(100% - 40px));

  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.wp-topbar-left{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wp-topbar-title{
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wp-dots{
  display: flex;
  gap: 8px;
  padding: 0 6px;
}

.wp-dots .dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  opacity: 0.95;
}
.wp-dots .dot.red{ background:#ff5f57; }
.wp-dots .dot.yellow{ background:#febc2e; }
.wp-dots .dot.green{ background:#28c840; }

/* Back button */
.wp-back{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}
.wp-back:hover{ background: rgba(255,255,255,0.10); }

/* Offline banner under topbar */
.wp-banner{
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 12px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
}
.muted{ color: var(--muted2); }

/* -----------------------------
   Headings / hero
   ----------------------------- */
.wp-hero{
  margin-top: 10px;
}

.wp-title{
  margin: 10px 0 8px;
  font-size: clamp(34px, 4.0vw, 54px);
  letter-spacing: -0.02em;
}

.wp-subtitle{
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.5;
}

/* Tabs + score row */
.wp-toolbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.wp-tabs{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wp-tab{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  user-select: none;
}
.wp-tab[aria-selected="true"],
.wp-tab.is-active{
  background: rgba(80,120,255,0.22);
  border-color: rgba(80,120,255,0.35);
}

.wp-meta{
  display:flex;
  align-items:center;
  gap: 10px;
}

.wp-pill{
  display:inline-flex;
  align-items:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 900;
}

.wp-btn{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor:pointer;
  font-weight: 900;
}
.wp-btn:hover{ background: rgba(255,255,255,0.10); }

.wp-primary{
  background: rgba(0,255,200,0.14);
  border-color: rgba(0,255,200,0.22);
}
.wp-primary:hover{ background: rgba(0,255,200,0.20); }

/* -----------------------------
   Cards / panels
   ----------------------------- */
.wp-card{
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 18px;
  margin-top: 16px;
}

.wp-card-head{
  margin-bottom: 14px;
}

.wp-card h2,
.wp-card h3{
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.wp-help{
  color: var(--muted2);
  margin: 0;
  line-height: 1.45;
}

.wp-panel{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.12);
  padding: 14px;
}

/* 2-column layout specifically inside the phishing game */
.wp-grid-2{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 980px){
  .wp-wrap{ width: min(1180px, calc(100% - 24px)); }
  .wp-topbar, .wp-banner{ width: min(1180px, calc(100% - 24px)); }
  .wp-grid-2{ grid-template-columns: 1fr; }
}

/* Small heading inside panels */
.wp-h4{
  margin: 14px 0 8px;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--muted);
}

/* -----------------------------
   Email block
   ----------------------------- */
.email-box{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.30);
  padding: 14px;
  overflow: hidden;
}

.email-meta{
  display:grid;
  grid-template-columns: 90px 1fr;
  gap: 8px 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 800;
}
.email-meta .v{
  color: var(--text);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.email-body{
  margin: 0;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px;
  color: var(--text);
  line-height: 1.45;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: pre-wrap;
}

/* -----------------------------
   Options / actions
   ----------------------------- */
.wp-options{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.wp-option{
  display:flex;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
.wp-option:hover{ background: rgba(255,255,255,0.09); }

.wp-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* -----------------------------
   Explanation / lists
   ----------------------------- */
.wp-callout{
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 12px;
  color: var(--muted);
  font-weight: 800;
}

.wp-list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text);
}
.wp-list li{ margin: 6px 0; }

/* -----------------------------
   Inputs used in other games
   ----------------------------- */
input[type="text"], textarea{
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.30);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}
textarea{ min-height: 160px; resize: vertical; }
input[type="text"]::placeholder, textarea::placeholder{
  color: rgba(255,255,255,0.40);
}
