/*
 * Project: LGGC-liquid-glass
 * File: lggc.css
 * Author: Guochen Wang <guochenwang710@gmail.com>
 * Copyright (c) 2026 Guochen Wang
 * License: MIT
 */
:root {
  color-scheme: light;
}

.lggc {
  --lggc-radius: 9999px;
  --lggc-padding: 0.5rem 1rem;
  --lggc-bg: rgba(255, 255, 255, 0.08);
  --lggc-border: rgba(51, 51, 51, 0.08);
  --lggc-blur: 8px;
  --lggc-highlight: rgba(255, 255, 255, 0.85);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 3.5rem;
  min-height: 3rem;
  padding: var(--lggc-padding);
  border: 1px double var(--lggc-border);
  border-radius: var(--lggc-radius);
  background: var(--lggc-bg);
  color: rgba(17, 24, 39, 0.92);
  text-decoration: none;
  vertical-align: middle;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(calc(var(--lggc-blur) * 0.35)) saturate(160%);
  -webkit-backdrop-filter: blur(calc(var(--lggc-blur) * 0.35)) saturate(160%);
  box-shadow:
    inset 1.5px -1.5px 1px -1px rgba(255, 255, 255, 0.92),
    inset -1.5px 1.5px 1px -1px rgba(255, 255, 255, 0.9),
    inset 0 0 3px rgba(15, 23, 42, 0.35),
    0 8px 16px rgba(15, 23, 42, 0.07);
}

.lggc::before,
.lggc::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}

.lggc::before {
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border: 1px double rgba(0, 0, 0, 0.9);
  filter: blur(var(--lggc-blur));
}

.lggc::after {
  inset: 0;
}

.lggc > * {
  position: relative;
  z-index: 1;
}
