/* Source #579: WORKY feed topbar */
/* ==============================
   WORKY – Feed topbar location
   ============================== */

.worky-feed-topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #383838;
  color: #ffffff;
  padding: 18px 18px;
  border-radius: 22px;
  margin-bottom: 24px;
}

.worky-topbar-profile {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.worky-profile-icon {
  font-size: 24px;
  line-height: 1;
}

.worky-location-trigger {
  border: 0;
  background: transparent;
  color: #ffffff;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 8px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.worky-location-eyebrow {
  grid-column: 1 / -1;
  font-size: 13px;
  opacity: 0.72;
  line-height: 1.2;
}

.worky-location-current {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
}

.worky-location-arrow {
  font-size: 24px;
  line-height: 1;
  transform: translateY(2px);
}

.worky-location-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 50;
  width: min(100%, 520px);
  background: #ffffff;
  color: #111111;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.20);
  padding: 18px;
}

.worky-location-panel-inner h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.worky-location-panel-inner p {
  margin: 0 0 18px;
  color: #555;
}

.worky-current-location-btn,
.worky-save-location-btn,
.worky-location-input-row button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.worky-current-location-btn {
  width: 100%;
  background: #B8DF75;
  color: #111111;
}

.worky-location-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #777;
  font-size: 14px;
}

.worky-location-divider::before,
.worky-location-divider::after {
  content: "";
  height: 1px;
  background: #e5e5e5;
  flex: 1;
}

.worky-location-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.worky-location-input-row {
  display: flex;
  gap: 10px;
}

.worky-location-input-row input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 15px;
}

.worky-location-input-row button {
  background: #111111;
  color: #ffffff;
}

.worky-location-preview {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f4f4;
  font-size: 14px;
  font-weight: 600;
}

.worky-save-location-btn {
  margin-top: 14px;
  width: 100%;
  background: #B8DF75;
  color: #111111;
}

.worky-save-location-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.worky-location-status {
  margin-top: 12px !important;
  font-size: 14px;
  color: #555 !important;
}

/* ==============================
   WORKY – Feed topbar mobile polish
   ============================== */

@media (max-width: 640px) {
  .worky-feed-topbar {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 22px 22px;
    margin: 0 0 18px 0;
    padding: 16px 16px;
    gap: 12px;
  }

  .worky-topbar-profile {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }

  .worky-profile-icon {
    font-size: 22px;
  }

  .worky-location-trigger {
    min-width: 0;
    flex: 1;
  }

  .worky-location-eyebrow {
    font-size: 12px;
  }

  .worky-location-current {
    font-size: 20px;
    max-width: 230px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .worky-location-arrow {
    font-size: 22px;
  }

  .worky-location-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    border-radius: 20px;
    padding: 16px;
  }

  .worky-location-panel-inner h3 {
    font-size: 20px;
  }

  .worky-location-panel-inner p {
    font-size: 14px;
  }

  .worky-location-input-row {
    flex-direction: column;
  }

  .worky-location-input-row input,
  .worky-location-input-row button {
    width: 100%;
    box-sizing: border-box;
  }
}
