/* ==========================================================================
   OSMO BUTTON 057 — Scramble Text Hover
   Adapted to TechCore brand (3 variants: primary red, outline glass, whatsapp green)
   ========================================================================== */

:root {
  --button-057-padding: 0.95em 1.6em;
  --button-057-border-radius: 100px;
  --button-057-focus-inset: -0.25em;
  --button-057-ease-focus: cubic-bezier(0.32, 0.72, 0, 1);
}

.button-057 {
  text-align: left;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  font-kerning: none;
  background-color: transparent;
  outline-style: none;
  padding: 0;
  line-height: 1;
  text-decoration: none;
  display: inline-grid;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  border: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.button-057:hover {
  transform: translateY(-2px);
}

.button-057::after {
  content: '';
  display: block;
  position: absolute;
  inset: var(--button-057-focus-inset);
  border-radius: var(--button-057-border-radius);
  transition: box-shadow 0.3s var(--button-057-ease-focus);
  pointer-events: none;
  z-index: 1;
}

.button-057:focus-visible::after {
  box-shadow: 0 0 0 2px var(--button-057-color-focus);
}

.button-057__bg {
  background: var(--button-057-color-background);
  border-radius: var(--button-057-border-radius);
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.button-057__inner {
  width: 100%;
  height: 100%;
  padding: var(--button-057-padding);
  grid-area: 1 / 1;
  justify-content: center;
  align-items: center;
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.button-057__text {
  clip-path: inset(-10% 0);
  display: inline-block;
}

.button-057 svg {
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.button-057:hover svg { transform: translateX(4px); }

/* ===== VARIANT: PRIMARY (Red Gradient) ===== */
.button-057[data-variant="primary"] {
  --button-057-color: #ffffff;
  --button-057-color-background: linear-gradient(135deg, #e63950 0%, #ff4d6a 100%);
  --button-057-color-focus: #ff4d6a;
  color: var(--button-057-color);
}
.button-057[data-variant="primary"] .button-057__bg {
  box-shadow: 0 4px 16px rgba(230, 57, 80, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.button-057[data-variant="primary"]:hover .button-057__bg {
  background: linear-gradient(135deg, #ff4d6a 0%, #e63950 100%);
  box-shadow: 0 8px 28px rgba(230, 57, 80, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ===== VARIANT: OUTLINE (Glass with gradient border) ===== */
.button-057[data-variant="outline"] {
  --button-057-color: #f5f7fa;
  --button-057-color-background: rgba(255, 255, 255, 0.03);
  --button-057-color-focus: #0099ff;
  color: var(--button-057-color);
}
.button-057[data-variant="outline"] .button-057__bg {
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.button-057[data-variant="outline"] .button-057__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--button-057-border-radius);
  padding: 1px;
  background: linear-gradient(135deg, #0099ff, #e63950);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.button-057[data-variant="outline"]:hover .button-057__bg {
  background: rgba(0, 153, 255, 0.06);
  border-color: transparent;
}
.button-057[data-variant="outline"]:hover .button-057__bg::before {
  opacity: 1;
}

/* ===== VARIANT: WHATSAPP (Green Gradient) ===== */
.button-057[data-variant="whatsapp"] {
  --button-057-color: #ffffff;
  --button-057-color-background: linear-gradient(135deg, #25D366 0%, #1fa855 100%);
  --button-057-color-focus: #25D366;
  color: var(--button-057-color);
}
.button-057[data-variant="whatsapp"] .button-057__bg {
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}
.button-057[data-variant="whatsapp"]:hover .button-057__bg {
  background: linear-gradient(135deg, #2dd96f 0%, #25D366 100%);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}

/* ===== SIZE VARIANTS ===== */
.button-057[data-size="lg"] {
  --button-057-padding: 1.1em 2em;
  font-size: 15px;
}
.button-057[data-size="full"] {
  width: 100%;
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 600px) {
  .button-057 {
    font-size: 13px;
  }
  .button-057[data-size="lg"] {
    font-size: 14px;
    --button-057-padding: 1em 1.7em;
  }
}
