﻿/* ═══════════════════════════════════════════════════
   BUTTONS.CSS — Apple Liquid Glass Buttons
   Painted glass: no backdrop-filter on buttons
═══════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.65rem 1.4rem;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

/* Specular sheen on all buttons */
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.28) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.btn:active { transform: scale(0.97) translateZ(0) !important; }

/* Primary — solid accent with glass sheen */
.btn-primary {
  background: linear-gradient(135deg, hsla(230,78%,56%,0.92), hsla(255,72%,60%,0.90));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.32) inset,
    0 4px 16px hsla(230,75%,55%,0.32);
}
.btn-primary:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.38) inset,
    0 7px 24px hsla(230,75%,55%,0.44);
}

/* Accent */
.btn-accent {
  background: linear-gradient(135deg, hsla(230,78%,56%,0.92), hsla(255,72%,60%,0.90));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.32) inset,
    0 4px 16px hsla(230,75%,55%,0.32);
}
.btn-accent:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.38) inset,
    0 7px 24px hsla(230,75%,55%,0.44);
}

/* Outline — painted glass */
.btn-outline {
  background: rgba(255,255,255,0.60);
  border: 1px solid rgba(255,255,255,0.88);
  color: var(--text-primary);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.96) inset,
    0 2px 10px rgba(50,60,130,0.08);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.80);
  border-color: rgba(255,255,255,0.95);
  color: var(--accent);
  transform: translateY(-2px) translateZ(0);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.98) inset,
    0 5px 18px rgba(50,60,130,0.12);
}

/* Ghost */
.btn-ghost {
  background: rgba(255,255,255,0.40);
  border: 1px solid rgba(255,255,255,0.72);
  color: var(--text-secondary);
  box-shadow: 0 1px 0 rgba(255,255,255,0.88) inset;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.62);
  border-color: rgba(255,255,255,0.88);
  color: var(--text-primary);
  transform: translateY(-2px) translateZ(0);
}

.btn svg { flex-shrink: 0; }
.magnetic { position: relative; }

