/**
 * ogaice-social-share.css — OGAICE Social Share Buttons v10.8.2
 *
 * Aesthetic: cyberpunk neural terminal × tourism brand
 * Variables align with existing ogaice-truth.css / ogaice-v12.css palette
 *
 * social@ogaice:G1/share [LIVE] $
 */

:root {
  --ogaice-share-bg:       #0F172A;
  --ogaice-share-bg-2:     #1E293B;
  --ogaice-share-fg:       #F8FAFC;
  --ogaice-share-muted:    #94A3B8;
  --ogaice-share-accent:   #0EA5A4;
  --ogaice-share-radius:   10px;
  --ogaice-share-gap:      8px;
  --ogaice-share-pad-x:    14px;
  --ogaice-share-pad-y:    9px;
  --ogaice-share-font:     'Space Grotesk', system-ui, -apple-system, sans-serif;
}

/* ─────────────────────────────────────────────────
 * Container
 * ───────────────────────────────────────────────── */

.ogaice-share {
  font-family: var(--ogaice-share-font);
  margin: 16px 0;
  color: var(--ogaice-share-fg);
}

.ogaice-share__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ogaice-share-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.ogaice-share__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ogaice-share-gap);
  align-items: center;
}

/* Layout variants */
.ogaice-share--row     .ogaice-share__row { flex-direction: row; }
.ogaice-share--grid    .ogaice-share__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.ogaice-share--minimal .ogaice-share__row { gap: 4px; }

/* ─────────────────────────────────────────────────
 * Buttons
 * ───────────────────────────────────────────────── */

.ogaice-share__btn {
  --c: var(--ogaice-share-color, var(--ogaice-share-accent));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--ogaice-share-pad-y) var(--ogaice-share-pad-x);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ogaice-share-fg);
  border: 1px solid color-mix(in oklab, var(--c) 30%, transparent);
  border-radius: var(--ogaice-share-radius);
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
  position: relative;
  overflow: hidden;
}

.ogaice-share__btn:hover {
  transform: translateY(-1px);
  border-color: var(--c);
  background: color-mix(in oklab, var(--c) 12%, rgba(255,255,255,0.04));
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--c) 18%, transparent),
              0 4px 12px color-mix(in oklab, var(--c) 22%, transparent);
}

.ogaice-share__btn:active {
  transform: translateY(0);
}

.ogaice-share__btn:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 2px;
}

/* Neural shimmer on hover (subtle scan line) */
.ogaice-share__btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--c) 30%, transparent), transparent);
  transition: left 600ms ease;
  pointer-events: none;
}

.ogaice-share__btn:hover::before { left: 150%; }

.ogaice-share__icon {
  font-size: 16px;
  line-height: 1;
}

.ogaice-share__text {
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Minimal variant — icon only */
.ogaice-share--minimal .ogaice-share__btn { padding: 8px 10px; }
.ogaice-share--minimal .ogaice-share__text { display: none; }

/* ─────────────────────────────────────────────────
 * Native share button
 * ───────────────────────────────────────────────── */

.ogaice-share__native {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--ogaice-share-accent), #7C3AED);
  color: #fff;
  border: 0;
  border-radius: var(--ogaice-share-radius);
  font-family: var(--ogaice-share-font);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.ogaice-share__native::before { content: '⇪ '; }

.ogaice-share__native:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14, 165, 164, 0.35);
}

/* ─────────────────────────────────────────────────
 * Light-theme adaption (admin pages, light templates)
 * ───────────────────────────────────────────────── */

@media (prefers-color-scheme: light) {
  :root {
    --ogaice-share-bg:    #FFFFFF;
    --ogaice-share-bg-2:  #F1F5F9;
    --ogaice-share-fg:    #0F172A;
    --ogaice-share-muted: #64748B;
  }
  .ogaice-share__btn {
    background: rgba(0, 0, 0, 0.02);
    color: var(--ogaice-share-fg);
  }
}

/* Force-light when host class is set */
.is-light .ogaice-share__btn,
.light .ogaice-share__btn {
  background: rgba(0, 0, 0, 0.03);
  color: #0F172A;
}

/* ─────────────────────────────────────────────────
 * Terminal prompt widget
 * ───────────────────────────────────────────────── */

.ogaice-prompt {
  display: inline-block;
  padding: 6px 10px;
  background: #0B1220;
  border: 1px solid rgba(14, 165, 164, 0.3);
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────
 * Responsive
 * ───────────────────────────────────────────────── */

@media (max-width: 480px) {
  .ogaice-share__row { gap: 6px; }
  .ogaice-share__btn { padding: 8px 10px; font-size: 12px; }
  .ogaice-share--row .ogaice-share__btn .ogaice-share__text { display: none; }
}

/* ─────────────────────────────────────────────────
 * Reduced motion
 * ───────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .ogaice-share__btn,
  .ogaice-share__native,
  .ogaice-share__btn::before {
    transition: none !important;
  }
  .ogaice-share__btn:hover { transform: none; }
}
