/* World Status — single-page app (design mockup) */

.ws {
  min-height: 100vh;
  background: #fff;
  color: #111827;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.ws-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ws-logo img {
  height: 36px;
  width: auto;
  display: block;
}
.ws-header__acts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ws-googleBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.ws-googleBtn:hover { background: #f9fafb; }
.ws-userChip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f9fafb;
  font-size: 13px;
  font-weight: 700;
  max-width: 180px;
}
.ws-userChip img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}
.ws-userChip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-logoutBtn {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  color: #64748b;
}

/* Main layout */
.ws-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 28px;
  align-items: start;
}

.ws-h1 {
  margin: 0 0 20px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.ws-filter {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.ws-inp {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  outline: none;
  background: #f3f4f6;
  font-size: 14px;
}
.ws-inp:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 4px rgba(99,102,241,.1);
  background: #fff;
}
.ws-or {
  font-weight: 800;
  font-size: 12px;
  color: #9ca3af;
  letter-spacing: .06em;
}
.ws-mapPick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}
.ws-mapPick svg { width: 28px; height: 28px; color: #6366f1; }

.ws-meta { margin-bottom: 12px; }
.ws-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}
.ws-pill svg { width: 18px; height: 18px; color: #6366f1; }

.ws-trending {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.ws-trending__label { color: #6b7280; font-size: 13px; font-weight: 800; }
.ws-trending__row { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-emojiChip {
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
}
.ws-emojiChip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}
.ws-emojiChip__count { color: #9ca3af; font-size: 11px; font-weight: 800; }

.ws-banner {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}
.ws-banner--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.ws-onboard {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f9fafb;
}
.ws-onboard__greet { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.ws-onboard__sub { margin: 0 0 14px; color: #64748b; font-size: 13px; }
.ws-onboard__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ws-onboard__ava {
  border: 2px dashed #cbd5e1;
  border-radius: 999px;
  padding: 0;
  width: 72px;
  height: 72px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}
.ws-onboard__ava img { width: 100%; height: 100%; object-fit: cover; }

/* Post cards — mockup */
.ws-cards {
  display: grid;
  gap: 20px;
  max-width: 520px;
}
.ws-empty {
  padding: 32px 12px;
  text-align: center;
  color: #9ca3af;
  font-weight: 600;
}

.ws-card {
  position: relative;
  border-radius: 18px;
  background: #e8eaed;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.ws-card__time {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(229,231,235,.95);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.ws-card__flag {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ws-card__flagEmoji { font-size: 16px; line-height: 1; }
.ws-clock__day {
  font-size: 10px;
  color: #6b7280;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}
.ws-clock__row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
  margin-top: 2px;
}
.ws-clock__main {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.ws-clock__ampm {
  font-size: 12px;
  font-weight: 900;
}
.ws-clock__ago {
  font-size: 10px;
  color: #9ca3af;
  font-weight: 800;
  margin-top: 3px;
}

.ws-card__body {
  flex: 1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 20px 64px;
  position: relative;
}
.ws-card__body--media {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}
.ws-card__text {
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: #111827;
  word-break: break-word;
}
.ws-card__text--ph { color: #9ca3af; }
.ws-card__media {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
.ws-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.ws-card__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 12px;
}
.ws-card__user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(229,231,235,.95);
  max-width: 70%;
}
.ws-card__ava {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #9ca3af;
  object-fit: cover;
  flex-shrink: 0;
}
.ws-card__name {
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-card__mood { font-size: 15px; flex-shrink: 0; }
.ws-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ws-card__likes {
  font-size: 10px;
  font-weight: 800;
  color: #6b7280;
  margin-right: 2px;
}
.ws-icoBtn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: rgba(255,255,255,.95);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ws-icoBtn.is-on { border-color: #fecaca; background: #fff1f2; }
.ws-icoBtn svg { width: 18px; height: 18px; }
.ws-icoBtn.is-on svg { color: #dc2626; }

/* FAB */
.ws-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  border: 0;
  background: #4f46e5;
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(79,70,229,.45);
}
.ws-fab:hover { background: #4338ca; }

/* Map */
.ws-mapCol { position: sticky; top: 16px; }
.ws-mapWrap {
  height: calc(100vh - 120px);
  min-height: 320px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
#wsMap { height: 100%; width: 100%; }
.ws-map__hint {
  margin-top: 10px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
}

/* Buttons */
.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #4f46e5;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.ws-btn:hover { background: #4338ca; }
.ws-btn:disabled { opacity: .65; cursor: default; }
.ws-btn--sec {
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
}
.ws-linkBtn {
  border: 0;
  background: transparent;
  color: #4f46e5;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  padding: 8px;
}
.ws-photoBtn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
.ws-photoBtn:hover { background: #f9fafb; }

.ws-emojiPick { position: relative; }
.ws-emojiPick__btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
}
.ws-emojiPick__grid {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15,23,42,.12);
  max-width: 260px;
}
.ws-emojiPick.is-open .ws-emojiPick__grid { display: flex; }
.ws-emojiPick__grid button {
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}
.ws-statusTools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.ws-locHint {
  margin: 10px 0 0;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
}

/* Modal */
.ws-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.ws-modal.is-open { opacity: 1; visibility: visible; }
.ws-modal.ws-hidden { opacity: 0; visibility: hidden; }
.ws-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.45);
  backdrop-filter: blur(4px);
}
.ws-modal__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15,23,42,.2);
}
.ws-modal__panel--wide { max-width: 520px; }
.ws-modal__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.ws-modal__hd h2 { margin: 0; font-size: 16px; font-weight: 800; }
.ws-modal__close {
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: #64748b;
  padding: 4px 8px;
}
.ws-modal__bd { padding: 18px; }
.ws-modal__to { margin: 0 0 10px; color: #64748b; font-weight: 700; font-size: 13px; }
.ws-ta {
  width: 100%;
  min-height: 88px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  resize: vertical;
  font: inherit;
  line-height: 1.5;
  box-sizing: border-box;
}
.ws-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.ws-card--preview {
  margin-bottom: 4px;
  pointer-events: none;
}

@media (max-width: 900px) {
  .ws-body { grid-template-columns: 1fr; }
  .ws-mapCol { position: static; }
  .ws-mapWrap { height: 360px; }
  .ws-filter { grid-template-columns: 1fr; }
  .ws-cards { max-width: none; }
}

@media (max-width: 520px) {
  .ws-googleBtn span { display: none; }
  .ws-fab {
    left: 16px;
    right: 16px;
    text-align: center;
  }
}
