/* ============================================================================
   AYZORA ONE — PLATFORM HUBS, OAUTH VAULT, 6-FACTOR VISIBILITY,
   SOCIAL STUDIO, IN-PLACE GOOGLE ADS HELPER & INTEGRATIONS AUDITOR (social.css)
   100% additive — preserves all existing AyzoraOne layout & sidebar styles.
   ============================================================================ */

/* Platform Sub-Navigation Bar for #meta and #google (Section 3.2 & 3.3) */
.a1-plat-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--card, #ffffff);
  border: 1px solid var(--line, rgba(148, 163, 184, 0.28));
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.a1-plat-subnav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.a1-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1.5px solid transparent;
  background: rgba(148, 163, 184, 0.09);
  color: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.a1-subtab-btn:hover {
  background: rgba(37, 99, 235, 0.09);
  color: #2563eb;
}
.a1-subtab-btn.active {
  background: rgba(37, 99, 235, 0.13);
  border-color: #2563eb;
  color: #2563eb;
}
.a1-subtab-btn.locked {
  opacity: 0.75;
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.45);
}
.a1-subtab-btn.coming-soon {
  opacity: 0.65;
  cursor: not-allowed;
  background: rgba(148, 163, 184, 0.06);
}

/* Top Platform Selector Bar in #social (All at Once vs One-by-One) */
.soc-plat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px;
  border-radius: 16px;
  background: var(--card, #ffffff);
  border: 1px solid var(--line, rgba(148, 163, 184, 0.25));
}

.soc-plat-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: rgba(148, 163, 184, 0.08);
  color: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.soc-plat-pill:hover {
  transform: translateY(-1px);
  background: rgba(37, 99, 235, 0.08);
}
.soc-plat-pill.active {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.14);
}
.soc-plat-pill-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.soc-plat-pill-icon svg {
  width: 20px;
  height: 20px;
}

/* Multi-select platform cards when in "All Platforms at Once" mode */
.soc-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 11px;
  margin-bottom: 18px;
}

.soc-brand-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card, #ffffff);
  border: 2px solid var(--line, rgba(148, 163, 184, 0.25));
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
}
.soc-brand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.soc-brand-card.selected {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.14);
}
.soc-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.soc-brand-logo svg {
  width: 22px;
  height: 22px;
}

/* Photo / Video Upload Box & Thumbnails */
.soc-upload-box {
  border: 2px dashed rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.04);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.16s ease;
}
.soc-upload-box:hover {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.soc-thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.soc-thumb {
  position: relative;
  width: 106px;
  height: 106px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--line, rgba(148, 163, 184, 0.3));
  background: #0f172a;
}
.soc-thumb img,
.soc-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.soc-thumb-del {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  border: none;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  padding: 0;
}

.soc-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin: 3px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  transition: all 0.15s ease;
}
.soc-tag-chip:hover {
  background: #2563eb;
  color: #ffffff;
}

.soc-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  margin-right: 8px;
}

.soc-helper-box {
  border-radius: 14px;
  padding: 14px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.22);
  margin-bottom: 14px;
}

.soc-preview-card {
  border-radius: 16px;
  border: 1px solid var(--line, rgba(148, 163, 184, 0.28));
  background: var(--card, #ffffff);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.soc-goal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.soc-goal-card {
  padding: 13px 15px;
  border-radius: 12px;
  border: 2px solid var(--line, rgba(148, 163, 184, 0.25));
  cursor: pointer;
  transition: all 0.15s ease;
}
.soc-goal-card.selected {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

/* Integrations Client-by-Client Switcher & Clickable Error Badges */
.a1-int-client-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: var(--card, #ffffff);
  border: 1px solid var(--line, rgba(148, 163, 184, 0.28));
  margin-bottom: 14px;
  align-items: center;
}
.a1-int-client-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--line, rgba(148, 163, 184, 0.3));
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.15s ease;
  background: rgba(148, 163, 184, 0.06);
}
.a1-int-client-chip:hover {
  border-color: #2563eb;
}
.a1-int-client-chip.active {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.a1-err-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.a1-err-badge.err {
  background: rgba(220, 38, 38, 0.14);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.35);
}
.a1-err-badge.warn {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.a1-err-badge.ok {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* OAuth Connection Vault Grid */
.a1-vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.a1-vault-card {
  padding: 14px;
  border-radius: 14px;
  border: 1.5px solid var(--line, rgba(148, 163, 184, 0.28));
  background: var(--card, #ffffff);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.a1-quota-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
  margin-top: 6px;
}
.a1-quota-fill {
  height: 100%;
  border-radius: 999px;
  background: #2563eb;
  transition: width 0.25s ease;
}
