/* css/webmaster.css — webmaster page styles */

/* ── BACKGROUND: light green + dark green polkadots ── */
.wm-body {
  background-color: #e8f5e9;
  background-image: radial-gradient(circle, #2d6a4f 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  min-height: 100vh;
}

/* ── PIXEL BOWS ROW ── */
.wm-bows {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px 4px;
  background: rgba(232,245,233,0.7);
  border-bottom: 2px solid #b7dfc4;
}
.bow-img {
  height: 28px;
  width: auto;
  image-rendering: pixelated;
}

/* fallback text bows if image missing */
.wm-bows:empty::before,
.wm-bows:not(:has(img[style*="display: none"])) .bow-img[style*="display: none"] ~ .wm-bows::before {
  content: "🎀 🎀 🎀 🎀 🎀 🎀 🎀 🎀";
  font-size: 1.4rem;
  letter-spacing: 6px;
}

/* ── BACK LINK ── */
.wm-back {
  text-align: center;
  padding: 6px;
  font-size: 0.78rem;
}
.wm-back a {
  color: var(--green-mid);
  text-decoration: none;
}
.wm-back a:hover { text-decoration: underline; }

/* ── MAIN WRAP ── */
.wm-wrap {
  max-width: 900px;
  margin: 10px auto 20px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  align-items: start;
}

/* ── CARD ── */
.wm-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ── BANNER ── */
.wm-banner {
  width: 100%;
  height: 80px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-soft));
  overflow: hidden;
}
.wm-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── PFP ── */
.wm-pfp-wrap {
  width: 72px;
  height: 72px;
  margin: -36px 0 0 12px;
  position: relative;
  z-index: 2;
}
.wm-pfp {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: block;
}
.wm-pfp-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-pale);
  border: 3px solid var(--white);
  font-size: 2rem;
  display: none;
  align-items: center;
  justify-content: center;
}

/* ── CARD BODY ── */
.wm-card-body {
  padding: 8px 14px 14px;
}
.wm-name {
  font-family: var(--font-d);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-top: 4px;
}
.wm-handle {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ── LINK BUTTONS ── */
.wm-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.wm-link-btn {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: opacity 0.15s;
}
.wm-link-btn:hover { opacity: 0.85; text-decoration: none; }
.wm-link-btn.insta { background: linear-gradient(135deg, #833ab4, #fd1d1d, #f77737); }
.wm-link-btn.pint  { background: #e60023; }
.wm-link-btn.disc  { background: #5865f2; }

/* ── DIVIDER ── */
.wm-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

/* ── INFO LIST ── */
.wm-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.79rem;
  color: var(--text-mid);
}
.wm-info li { display: flex; align-items: center; gap: 6px; }
.wm-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--green-soft);
  display: inline-block;
}
.wm-k {
  font-weight: 600;
  color: var(--green-mid);
  min-width: 70px;
}

/* ── LANGUAGE BARS ── */
.wm-langs { display: flex; flex-direction: column; gap: 6px; }
.wm-lang-row { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; }
.wm-lang-pct { color: var(--text-muted); width: 32px; text-align: right; font-size: 0.72rem; }
.wm-lang-bar-wrap {
  flex: 1;
  height: 7px;
  background: var(--green-pale);
  border-radius: 4px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.wm-lang-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green-mid), var(--green-mint));
  border-radius: 4px;
  transition: width 1s ease 0.3s;
}
.wm-lang-name { color: var(--text-mid); font-size: 0.78rem; }

/* ── SECTION TITLES ── */
.wm-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-mid);
  text-transform: lowercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.wm-text {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── NOW PLAYING ── */
.wm-nowplaying {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
}
.wm-vinyl {
  font-size: 1.4rem;
  animation: spin 4s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.wm-song { font-weight: 600; font-size: 0.82rem; color: var(--text); }
.wm-artist { font-size: 0.72rem; color: var(--text-muted); }

/* ── POSTS SECTION ── */
.wm-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wm-posts-header {
  font-family: var(--font-d);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--green-deep);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
  padding: 8px 14px;
  box-shadow: var(--shadow);
}
.wm-posts {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.wm-post {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  animation: fadeIn 0.25s ease both;
}
.wm-post:last-child { border-bottom: none; }
.wm-post-pfp {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green-mint);
  flex-shrink: 0;
}
.wm-post-body { flex: 1; }
.wm-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.wm-post-handle { font-weight: 700; font-size: 0.8rem; color: var(--green-mid); }
.wm-post-time   { font-size: 0.7rem; color: var(--text-muted); }
.wm-post-text   { font-size: 0.84rem; color: var(--text-mid); line-height: 1.55; }

/* ── WRITE POST ── */
.wm-write-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.wm-write-header {
  background: var(--box-title);
  color: var(--green-deep);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-bottom: 1px solid var(--border);
}
.wm-write-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wm-textarea {
  width: 100%;
  height: 80px;
  resize: vertical;
}

/* ── FOOTER ── */
.wm-footer {
  text-align: center;
  padding: 14px;
  margin-top: 10px;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .wm-wrap { grid-template-columns: 1fr; }
}