/* ==========================================================================
   pages/aeo-tag.css — Auto AEO Tag settings tab (Phase 4B)
   --------------------------------------------------------------------------
   BEM: .aeo-tag-card / .aeo-tag-card--{locked,ready,live,failed,empty}
        .aeo-tag-card__title / .aeo-tag-card__sub / .aeo-tag-card__list
        .aeo-tag-card__cta / .aeo-tag-card__actions
        .aeo-tag-list-item / .aeo-tag-list-item--muted
        .aeo-tag-snippet-label / .aeo-tag-snippet / .aeo-tag-copy
        .aeo-tag-section-label / .aeo-tag-schemas
        .aeo-tag-stats / .aeo-tag-status / --active / --paused
        .cli-verify-badge--aeo (in verification.css)
   ========================================================================== */

.aeo-tag-card {
  position: relative;
  background: var(--surface);
  border: var(--card-border);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

.aeo-tag-card--locked {
  border-left: 3px solid var(--amber);
}

.aeo-tag-card--ready {
  border-left: 3px solid #7c3aed;
}

.aeo-tag-card--live {
  border-left: 3px solid var(--green);
}

.aeo-tag-card--failed {
  border-left: 3px solid var(--red);
}

.aeo-tag-card--empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-d);
}

.aeo-tag-card__title {
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.aeo-tag-card__sub {
  font-size: 13px;
  color: var(--text-m);
  line-height: 1.5;
  margin-bottom: 14px;
}

.aeo-tag-card__sub strong {
  color: var(--text);
  font-family: var(--fm);
  font-weight: 600;
}

.aeo-tag-card__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.aeo-tag-list-item {
  font-size: 13px;
  color: var(--text);
}

.aeo-tag-list-item--muted {
  color: var(--text-d);
  font-style: italic;
}

.aeo-tag-card__cta {
  font-size: 13px;
  padding: 9px 18px;
}

.aeo-tag-card__actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* === Install snippet block ============================================== */

.aeo-tag-snippet-label {
  font-size: 12px;
  color: var(--text-d);
  margin-bottom: 6px;
}

.aeo-tag-snippet-label code {
  font-family: var(--fm);
  font-size: 11px;
  background: var(--surface2);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text);
}

.aeo-tag-snippet {
  background: var(--surface2);
  border: var(--card-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--fm);
  font-size: 12px;
  color: #c4b5fd;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0 0 10px;
  overflow-x: auto;
}

.aeo-tag-copy {
  font-size: 12px;
  padding: 8px 14px;
}

/* === Schemas list + stats ============================================== */

.aeo-tag-section-label {
  margin-top: 16px;
  font-family: var(--fm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-d);
  margin-bottom: 8px;
}

.aeo-tag-schemas {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.aeo-tag-stats {
  font-size: 12px;
  color: var(--text-d);
  font-family: var(--fm);
  border-top: 0.5px dashed var(--border);
  padding-top: 12px;
  margin-top: 4px;
}

/* === Status pill (top-right corner of the card) ======================== */

.aeo-tag-status {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--fm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 12px;
}

.aeo-tag-status--active {
  background: var(--green-dim);
  color: var(--green);
}

.aeo-tag-status--paused {
  background: var(--surface3);
  color: var(--text-d);
}

/* === Smart Injection block (Phase 4D) ================================== */

.aeo-tag-smart {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface2);
  border: 0.5px dashed var(--border);
  border-radius: 10px;
}

.aeo-tag-smart--empty {
  border-color: rgba(124, 58, 237, 0.35);
}

.aeo-tag-smart__title {
  font-family: var(--fh);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.aeo-tag-smart__sub {
  font-size: 12px;
  color: var(--text-m);
  line-height: 1.4;
  margin-bottom: 8px;
}

.aeo-tag-smart__lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.aeo-tag-smart__line {
  font-size: 12px;
  color: var(--text);
}

.aeo-tag-smart__line--ok {
  color: var(--green);
}

.aeo-tag-smart__cta {
  font-size: 12px;
  padding: 6px 12px;
}

/* === Client card AEO badge (defined alongside verification badge) ======= */

.cli-verify-badge--aeo {
  color: #facc15;
}

/* === v2.3 — AEO Tag unified page (Ownership / Setup / Analytics) ====== */

.aeo-page__h1 {
  font-family: var(--fh);
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
}

.aeo-page__sub {
  font-size: 13px;
  color: var(--text-m);
  margin-top: 2px;
}

.aeo-page__sub strong {
  color: var(--text);
  font-family: var(--fm);
  font-weight: 600;
}

.aeo-page-subnav {
  display: flex;
  gap: 4px;
  margin: 12px 0 16px;
  border-bottom: var(--card-border);
}

.aeo-page-subtab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-d);
  font-family: inherit;
  font-size: 13px;
  padding: 10px 14px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.aeo-page-subtab:hover { color: var(--text); }

.aeo-page-subtab--active {
  color: var(--text);
  border-bottom-color: #7c3aed;
}

.aeo-tag-analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .aeo-tag-analytics-grid { grid-template-columns: 1fr; }
}

.aeo-tag-analytics-stat {
  background: var(--surface);
  border: var(--card-border);
  border-radius: 12px;
  padding: 16px 18px;
}

.aeo-tag-analytics-stat__value {
  font-family: var(--fh);
  font-size: 30px;
  font-weight: 800;
  color: #7c3aed;
  line-height: 1;
}

.aeo-tag-analytics-stat__label {
  font-family: var(--fm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-d);
  margin-top: 8px;
}

/* === Bolt empty state (AEO Tag: no client selected) ===
   Load-in: bolt strikes down (boltStrike). Click: bolt pulses /
   crackles (boltPulse) via the .striking class. */
@keyframes boltStrike {
  0%   { transform: translateY(-40px) scale(0.5); opacity: 0; filter: brightness(1); }
  40%  { transform: translateY(0px) scale(1.3); opacity: 1; filter: brightness(2); }
  55%  { transform: translateY(0px) scale(0.95); filter: brightness(1.5); }
  70%  { transform: translateY(0px) scale(1.05); filter: brightness(1.8); }
  100% { transform: translateY(0px) scale(1); opacity: 1; filter: brightness(1); }
}

@keyframes boltPulse {
  0%   { transform: scale(1); filter: brightness(1); }
  15%  { transform: scale(1.4) rotate(-5deg); filter: brightness(2.5) drop-shadow(0 0 12px #f59e0b); }
  30%  { transform: scale(0.95) rotate(3deg); filter: brightness(1.8); }
  45%  { transform: scale(1.2) rotate(-3deg); filter: brightness(2.2) drop-shadow(0 0 8px #f59e0b); }
  60%  { transform: scale(1) rotate(0deg); filter: brightness(1); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes boltGlow {
  0%, 100% { box-shadow: none; }
  50%       { filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.8)); }
}

.bolt-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
}

.bolt-emoji {
  font-size: 3rem;
  display: inline-block;
  cursor: pointer;
  animation: boltStrike 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.bolt-emoji.striking {
  animation: boltPulse 0.7s ease-in-out forwards;
}

.bolt-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}
