/*
Theme Name: Brampton Speaker
Theme URI: https://bramptonspeaker.com/
Author: Brampton Speaker
Description: Community board theme in the spkr.ca style — dark monochrome board, typewriter type, white-bordered post cards, CREATE / IMMIGRATION / JOBS panels.
Version: 1.2.0
License: GNU General Public License v2 or later
Text Domain: brampton-speaker
*/

:root {
  --bg: #141414;
  --card: #4d4d4d;
  --card-deep: #3d3d3d;
  --panel-line: #6f6f6f;
  --white: #ffffff;
  --ink: #111111;
  --muted: #c9c9c9;
  --dim: #9a9a9a;
  --orange: #ffa726;
  --green: #43d17c;
  --blue: #42a5f5;
  --mono: "Courier New", Courier, "Nimbus Mono PS", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--mono);
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 14px 40px;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

/* ---------- header ---------- */
.site-header { text-align: center; margin-bottom: 28px; }

.wordmark {
  font-weight: 700;
  font-size: 29px;
  letter-spacing: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.podium { display: inline-flex; }

.wordmark-dashes {
  letter-spacing: 3px;
  font-size: 14px;
  margin: 8px 0 20px;
  overflow: hidden;
  white-space: nowrap;
}

.weather-pill {
  display: inline-block;
  border: 2px dashed #8a8a8a;
  border-radius: 12px;
  padding: 8px 24px;
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.profile-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 2px dashed #8a8a8a;
  border-radius: 12px;
  padding: 10px 16px;
  max-width: 360px;
  margin: 0 auto;
}

.profile-icon { font-size: 26px; }
.profile-name { font-size: 20px; letter-spacing: 4px; line-height: 1.35; }

.active-badge {
  border: 2px solid var(--green);
  color: var(--green);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 14px;
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.active-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- fieldset panels ---------- */
fieldset.panel {
  border: 3px solid var(--panel-line);
  border-radius: 14px;
  padding: 18px 14px;
  margin: 0 0 32px;
  min-width: 0;
}

fieldset.panel > legend {
  font-size: 25px;
  letter-spacing: 6px;
  color: var(--dim);
  padding: 0 14px;
  font-weight: 700;
}

/* ---------- CREATE ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 14px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
  text-decoration: none;
  cursor: pointer;
}

.btn-block { width: 100%; margin-bottom: 14px; }
.btn-white { background: var(--white); color: var(--ink); border: none; }

.create-box {
  display: block;
  background: var(--white);
  color: #9a9a9a;
  border-radius: 12px;
  padding: 18px;
  font-size: 20px;
  min-height: 170px;
  text-decoration: none;
  margin-bottom: 14px;
  line-height: 1.4;
}

.create-contact { min-height: 0; }

.btn-share {
  background: #5a5a5a;
  color: var(--white);
  border: none;
  font-size: 22px;
  margin-bottom: 0;
}

.panel-foot {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
  border-top: 2px solid var(--panel-line);
  margin: 18px -14px -18px;
  padding: 12px 14px 14px;
}

.panel-foot a { text-decoration: none; }

/* ---------- post cards ---------- */
.post-card {
  border: 3px solid var(--white);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 26px;
  background: var(--card);
}

.post-head {
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  gap: 8px;
}

.pill {
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.post-num {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 1px;
}

.post-body { padding: 18px 16px 12px; }

.post-title { font-size: 23px; margin: 0 0 4px; line-height: 1.35; }
.post-title a { text-decoration: none; }

.rule { border: none; border-top: 2px solid var(--panel-line); margin: 14px 0; }

.post-text { color: #e8e8e8; font-size: 19px; line-height: 1.6; }
.post-text p { margin: 0 0 1em; }

.chips { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

.chip {
  border: 2px solid var(--white);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 26px;
  padding: 4px 0 6px;
}

.post-actions a { text-decoration: none; }

.count-badge {
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  border-radius: 6px;
  padding: 2px 7px;
  vertical-align: super;
  font-weight: 700;
}

.action-right { margin-left: auto; }

/* ---------- immigration ---------- */
.immig-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }

.immig-icon {
  background: var(--white);
  border-radius: 12px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  flex: none;
}

.immig-head strong { font-size: 23px; display: block; line-height: 1.3; }
.immig-domain { color: var(--dim); letter-spacing: 2px; font-size: 17px; }
.immig-text { text-align: center; font-size: 19px; line-height: 1.6; color: #e8e8e8; }
.immig-text strong { color: #fff; }

.immig-btns { display: flex; gap: 12px; margin: 16px 0 4px; }
.immig-btns .btn { flex: 1; margin: 0; }
.btn-outline { background: transparent; color: var(--white); border: 3px solid var(--white); }

/* ---------- jobs ---------- */
.job-card {
  display: flex;
  border: 3px solid var(--white);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--card);
}

.job-logo {
  flex: none;
  width: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  background: var(--card-deep);
}

.job-info { flex: 1; padding: 12px; font-size: 15px; line-height: 1.55; color: #e8e8e8; min-width: 0; }

.job-cat {
  display: inline-block;
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.job-cat .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.job-info strong { display: block; color: #fff; font-size: 19px; line-height: 1.35; }
.job-pay { font-weight: 700; color: #fff; }

.job-apply {
  flex: none;
  width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-left: 3px solid var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
}

.empty { text-align: center; color: var(--muted); padding: 18px; font-size: 17px; line-height: 1.6; }

/* ---------- single post / page ---------- */
.single-card .post-text { font-size: 20px; }

/* ---------- comments ---------- */
.comments-area { margin-top: 8px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li {
  border: 2px solid var(--panel-line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.55;
}
.comment-meta { color: var(--dim); font-size: 14px; margin-bottom: 6px; }
.comment-form label { display: block; margin: 10px 0 4px; font-size: 16px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  font-family: var(--mono);
  font-size: 17px;
  padding: 10px;
  border-radius: 8px;
  border: 2px solid var(--panel-line);
  background: #222;
  color: #fff;
}
.comment-form .submit {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
  background: var(--white);
  color: var(--ink);
  border: none;
  border-radius: 10px;
  padding: 12px 26px;
  margin-top: 10px;
  cursor: pointer;
}

/* ---------- footer ---------- */
.site-footer {
  text-align: center;
  color: var(--dim);
  font-size: 14px;
  letter-spacing: 1px;
  padding: 10px 0 30px;
  line-height: 2;
}

.site-footer a { text-decoration: none; }

/* ---------- CREATE panel: live submission form (spkr.ca style) ---------- */
.panel-create #user-submitted-posts { margin: 0; }
.panel-create #usp_form {
	display: flex;
	flex-direction: column;
	margin: 0;
}
.panel-create #usp_form fieldset {
	border: none;
	padding: 0;
	margin: 0 0 14px;
	min-width: 0;
}
.panel-create #usp_form fieldset > legend { display: none; }

/* order: Photos/Videos, message, contact, SHARE NOW */
.panel-create .usp-images  { order: 1; }
.panel-create .usp-content { order: 2; }
.panel-create .usp-name    { order: 3; }
.panel-create #usp-submit  { order: 4; margin: 0; }

/* unused fields stay hidden (title/tags optional, category auto-set by JS) */
.panel-create .usp-title,
.panel-create .usp-tags,
.panel-create .usp-category { display: none; }

/* hide USP labels; placeholders guide the user */
.panel-create .usp-name > label,
.panel-create .usp-content > label { display: none; }

/* Photos/Videos white button */
.panel-create .usp-images {
	background: var(--white);
	border-radius: 12px;
	position: relative;
	overflow: hidden;
	text-align: center;
}
.panel-create .usp-images > label {
	display: block;
	color: var(--ink);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 2px;
	padding: 14px;
	margin: 0;
	cursor: pointer;
	font-family: var(--mono);
}
.panel-create #usp-upload-message,
.panel-create #usp_add-another-image { display: none; }
.panel-create #user-submitted-image input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

/* message box */
.panel-create .usp-content textarea.usp-textarea {
	width: 100%;
	background: var(--white);
	color: var(--ink);
	border: none;
	border-radius: 12px;
	min-height: 170px;
	padding: 18px;
	font-size: 20px;
	line-height: 1.4;
	font-family: var(--mono);
	resize: vertical;
	margin: 0;
}

/* contact field */
.panel-create .usp-name input.usp-input {
	width: 100%;
	background: var(--white);
	color: var(--ink);
	border: none;
	border-radius: 12px;
	padding: 18px;
	font-size: 20px;
	font-family: var(--mono);
	margin: 0;
}

/* SHARE NOW */
.panel-create .usp-submit {
	width: 100%;
	background: #5a5a5a;
	color: var(--white);
	border: none;
	border-radius: 12px;
	padding: 16px;
	font-family: var(--mono);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: 2px;
	cursor: pointer;
}

.panel-create .usp-callout-success,
.panel-create .usp-callout-failure {
	font-size: 17px;
	line-height: 1.5;
	border-radius: 10px;
	padding: 12px 14px;
	margin: 0 0 14px;
}
.panel-create .usp-callout-success { background: #1d3a26; color: #b9f0c9; }
.panel-create .usp-callout-failure { background: #3a1d1d; color: #f0b9b9; }
.panel-create .usp-hidden { display: none; }

/* ---------- share-a-post page form ---------- */
.usp-form label { font-size: 17px; }
.usp-form input[type="text"],
.usp-form input[type="url"],
.usp-form textarea {
  width: 100%;
  font-family: var(--mono);
  font-size: 17px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--white);
  color: var(--ink);
  margin: 6px 0 14px;
}
.usp-submit {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
  background: #5a5a5a;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 30px;
  cursor: pointer;
  width: 100%;
}
