/* ============================================================
   Portal Tier Features — CSS
   Upgrade prompts, QR display, status steps, calendar grid,
   managed reviews banner, citation tracker, service status
   ============================================================ */

/* --- Tier Upgrade Prompts --- */
.tier-upgrade-prompt {
  background: #f8f9fa;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.tier-upgrade-prompt p {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.tier-upgrade-action {
  color: var(--tenant-primary);
  font-weight: 600;
  cursor: default;
}

.tier-upgrade-prompt-inline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.tier-upgrade-prompt-inline .tier-upgrade-action {
  font-size: 0.85rem;
}

/* --- QR Code Display --- */
.qr-display {
  text-align: center;
  padding: 1rem;
}

.qr-display img {
  max-width: 280px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  background: #fff;
}

.qr-tips {
  margin-top: 1rem;
}

.qr-tips ul {
  text-align: left;
  display: inline-block;
  padding-left: 1.25rem;
}

.qr-tips li {
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Citation Tracker --- */
.citation-summary {
  margin-bottom: 0.5rem;
}

.citation-summary .badge {
  margin-right: 0.5rem;
}

/* --- Service Status Steps (Review Card Tracker) --- */
.status-steps {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: space-between;
  max-width: 500px;
  position: relative;
}

.status-steps::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  z-index: 1;
  flex: 1;
}

.status-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--border);
  transition: all var(--transition);
}

.status-step.active .status-dot {
  background: var(--success);
  box-shadow: 0 0 0 2px var(--success);
}

.status-step small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-step.active small {
  color: var(--text);
  font-weight: 500;
}

.service-status-tracker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.service-status-label {
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Content Calendar --- */
.content-calendar {
  width: 100%;
}

.cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
}

.cal-header div {
  background: #f8f9fa;
  padding: 0.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  overflow: hidden;
}

.cal-cell {
  background: #fff;
  min-height: 80px;
  padding: 0.35rem;
}

.cal-cell.cal-empty {
  background: #fafafa;
}

.cal-cell.cal-has-items {
  background: #f0f7ff;
}

.cal-day-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.cal-item {
  background: #e8f4ff;
  border-left: 3px solid var(--tenant-primary);
  padding: 0.2rem 0.35rem;
  margin-bottom: 2px;
  border-radius: 2px;
  font-size: 0.75rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-item em {
  color: var(--text-muted);
}

.cal-item-posted {
  background: #e8f5e9;
  border-left-color: var(--success);
}

.cal-item-scheduled {
  background: #fff8e1;
  border-left-color: var(--warning);
}

.cal-item-idea {
  background: #e8f4ff;
  border-left-color: var(--info);
}

.calendar-nav {
  display: flex;
  align-items: center;
}

/* --- Managed Reviews Banner --- */
.managed-reviews-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.managed-reviews-banner .badge {
  flex-shrink: 0;
}

.managed-reviews-banner p {
  margin: 0;
  color: var(--text-muted);
}

/* --- Report Cards --- */
.report-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.report-card:last-child {
  border-bottom: 0;
}

.report-card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.report-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.report-card-info strong {
  font-size: 0.95rem;
}

.report-card-info .text-muted {
  font-size: 0.8rem;
}

/* --- Widget Embed Code --- */
.widget-embed-code {
  font-family: monospace;
  font-size: 0.8rem;
  background: #f8f9fa;
  resize: vertical;
}

/* --- Form Row (for inline form groups) --- */
.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.form-row .form-group {
  flex: 1;
  min-width: 150px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .status-steps {
    max-width: 100%;
  }

  .cal-cell {
    min-height: 50px;
    padding: 0.2rem;
  }

  .cal-day-num {
    font-size: 0.7rem;
  }

  .cal-item {
    font-size: 0.65rem;
  }

  .report-card {
    flex-wrap: wrap;
  }

  .form-row {
    flex-direction: column;
  }
}
