/* ===================================================================
   File: business-listing-owner-sidebar.css
   Description: Owner/admin sidebar layout, owner action stack, status toggle placement, and Google report buttons.
   Notes:
   - Load after business-listing-shared-core.css.
   =================================================================== */

/* =========================
   OWNER / ADMIN PREVIEW LAYOUT
   ========================= */

.ll-owner-tier-preview {
  margin: 0 0 20px;
}

.ll-owner-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ll-owner-link,
.ll-owner-public-link,
.ll-owner-toggle-label,
.ll-owner-upgrade-heading {
  text-align: center;
}

.ll-owner-link,
.ll-owner-public-link,
.ll-owner-view-row,
.ll-owner-inline-upgrade,
.ll-owner-tier-summary {
  margin-bottom: 14px;
}

.ll-owner-link {
  margin-top: 0;
}

.ll-owner-link a,
.ll-owner-public-link a {
  color: #0f172a;
  text-decoration: none;
  font-size: 1.5rem;
}

.ll-owner-link a:hover,
.ll-owner-public-link a:hover {
  text-decoration: underline;
}

.ll-owner-public-link {
  line-height: 1.5;
}

.ll-view-public__icon {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 0.2rem;
}

/* =========================
   OWNER / ADMIN CARDS
   ========================= */

.ll-admin-status-bar,
.ll-author-action-bar {
  margin: 0 0 16px 0;
}

.ll-admin-status-row,
.ll-owner-view-row,
.ll-owner-publish-toggle-wrap {
  margin-top: 12px;
}

.ll-admin-status-row:first-of-type,
.ll-owner-view-row:first-child,
.ll-owner-publish-toggle-wrap:first-child {
  margin-top: 0;
}

.ll-admin-status-row label,
.ll-admin-status-row .ll-admin-approval-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.ll-admin-status-select {
  width: 100%;
  max-width: 100%;
}

.ll-admin-status-feedback {
  margin-top: 10px;
  min-height: 20px;
}

.ll-owner-sidebar-section {
  margin: 0 0 16px 0;
}

.ll-owner-sidebar-section .ll-basic-card-title {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.ll-owner-sidebar-section--actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ll-owner-sidebar-section--reports {
  background: #f8fafc;
}

/* =========================
   ACTION STACK
   ========================= */

.ll-owner-edit-btn,
.ll-owner-promote-btn,
.ll-owner-interview-btn,
.ll-owner-action-stack-item,
.ll-owner-report-btn {
  width: 100%;
}

.ll-owner-action-stack-item {
  margin: 0;
}

.ll-owner-action-stack-item + .ll-owner-action-stack-item,
.ll-owner-report-btn + .ll-owner-report-btn {
  margin-top: 10px;
}

.ll-owner-edit-btn .button,
.ll-owner-edit-btn .submit-button,
.ll-owner-edit-btn .ll-btn,
.ll-owner-edit-btn a,
.ll-owner-edit-btn button,
.ll-owner-promote-btn .button,
.ll-owner-promote-btn .submit-button,
.ll-owner-promote-btn .ll-btn,
.ll-owner-promote-btn a,
.ll-owner-promote-btn button,
.ll-owner-interview-btn .button,
.ll-owner-interview-btn .submit-button,
.ll-owner-interview-btn .ll-btn,
.ll-owner-interview-btn a,
.ll-owner-interview-btn button,
.ll-owner-action-stack-item .button,
.ll-owner-action-stack-item .submit-button,
.ll-owner-action-stack-item .ll-btn,
.ll-owner-action-stack-item a,
.ll-owner-action-stack-item button {
  display: flex;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

/* =========================
   STATUS TOGGLE
   ========================= */

.ll-owner-publish-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ll-owner-publish-label {
  display: block;
  width: 100%;
  margin: 0 0 4px 0;
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #64748b;
}

.ll-owner-publish-toggle-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.ll-owner-publish-toggle-wrap .ll-status-toggle-wrap--dashboard {
  margin-top: 0;
}

.ll-owner-publish-hint {
  margin-top: 6px;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1.3;
  text-align: center;
}

/* =========================
   GOOGLE REPORT BUTTONS
   ========================= */

.ll-owner-google-score-btn,
.ll-owner-gbp-score-btn,
.ll-owner-report-btn {
  display: flex;
  justify-content: center;
}

.ll-owner-google-score-btn {
  margin: 10px 0 14px;
}

.ll-gbp-inline-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
  min-width: 0;
}

.ll-google-score-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--ll-color-primary, #0073aa);
  border-radius: 8px;
  color: var(--ll-color-primary, #0073aa);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  outline: none;
  appearance: none;
  white-space: nowrap;
  max-width: 100%;
  box-shadow: none;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    color 0.12s ease;
}

.ll-google-score-btn-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.ll-google-g-icon {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex: 0 0 auto;
}

.ll-google-score-btn-label {
  display: inline-block;
  line-height: 1.3;
  font-size: 1.6rem;
}

.ll-owner-report-btn .ll-google-score-btn,
.ll-owner-report-btn .ll-btn,
.ll-owner-report-btn button,
.ll-owner-report-btn a {
  width: auto;
  min-width: 180px;
  max-width: 100%;
  background: #ffffff !important;
  color: var(--ll-color-primary, #0073aa) !important;
  border: 1px solid var(--ll-color-primary, #0073aa) !important;
  box-shadow: none !important;
}

.ll-owner-report-btn .ll-google-score-btn:hover,
.ll-owner-report-btn .ll-btn:hover,
.ll-owner-report-btn button:hover,
.ll-owner-report-btn a:hover {
  background: #ffffff !important;
  color: var(--ll-color-primary-hover, #005f8d) !important;
  border-color: var(--ll-color-primary-hover, #005f8d) !important;
  box-shadow: 0 0 0 2px var(--ll-color-primary-hover, #005f8d) inset !important;
}

.ll-actions-line-2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ll-actions-line-2 .ll-btn,
.ll-actions-line-2 .ll-gbp-inline-actions {
  flex: 0 0 auto;
}

.ll-actions-line-2 .ll-google-score-btn {
  margin: 0;
  vertical-align: middle;
}

@media (max-width: 980px) {
  .ll-owner-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 940px) {
  .ll-actions-line-2 .ll-gbp-inline-actions {
    flex: 1 1 100%;
  }
}
