/* ══════════════════════════════════════════════════════════════
   HorrorJunk – Unified Button System (hj-btn)
   Global button styles for all public pages.
   ══════════════════════════════════════════════════════════════ */

/* ── Base ── */
.hj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 1.15rem;
    height: 38px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
    color: #e6edf3;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
                transform 0.12s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.hj-btn:hover { text-decoration: none; }
.hj-btn:active { transform: scale(0.97); }

.hj-btn:disabled,
.hj-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.hj-btn i { font-size: 0.95em; flex-shrink: 0; }
.hj-btn svg { width: 1em; height: 1em; flex-shrink: 0; fill: currentColor; }

/* ── Primary (transparent accent) ── */
.hj-btn-primary {
    background: rgba(0, 163, 255, 0.12);
    color: #00a3ff;
    border-color: rgba(0, 163, 255, 0.08);
}
.hj-btn-primary:hover {
    background: rgba(0, 163, 255, 0.22);
    color: #33b5ff;
    border-color: rgba(0, 163, 255, 0.18);
}

/* ── Filled (solid gradient – main CTAs) ── */
.hj-btn-filled {
    background: linear-gradient(135deg, #00a3ff 0%, #0084d1 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0, 163, 255, 0.25);
}
.hj-btn-filled:hover {
    background: linear-gradient(135deg, #33b5ff 0%, #00a3ff 100%);
    color: #fff;
    box-shadow: 0 8px 28px rgba(0, 163, 255, 0.35);
    transform: translateY(-2px);
}
.hj-btn-filled:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 163, 255, 0.2);
}

/* ── Secondary (dark subtle) ── */
.hj-btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: #e6edf3;
    border-color: rgba(255, 255, 255, 0.08);
}
.hj-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* ── Ghost (minimal) ── */
.hj-btn-ghost {
    background: transparent;
    color: #8b949e;
    border-color: rgba(255, 255, 255, 0.06);
}
.hj-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e6edf3;
    border-color: rgba(255, 255, 255, 0.12);
}

/* ── Danger (red) ── */
.hj-btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.12);
}
.hj-btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ── Success (green) ── */
.hj-btn-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.12);
}
.hj-btn-success:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* ── Warning (amber) ── */
.hj-btn-warning {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.12);
}
.hj-btn-warning:hover {
    background: rgba(234, 179, 8, 0.2);
    border-color: rgba(234, 179, 8, 0.3);
    color: #facc15;
}

/* ── Filled Danger (solid red for destructive CTAs) ── */
.hj-btn-filled-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
}
.hj-btn-filled-danger:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: #fff;
    box-shadow: 0 8px 28px rgba(239, 68, 68, 0.35);
    transform: translateY(-2px);
}

/* ── Filled Success (solid green) ── */
.hj-btn-filled-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
}
.hj-btn-filled-success:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #fff;
    box-shadow: 0 8px 28px rgba(34, 197, 94, 0.35);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   SIZES
   ══════════════════════════════════════════════════════════════ */

.hj-btn-sm {
    height: 32px;
    padding: 0 0.85rem;
    font-size: 0.78rem;
    border-radius: 8px;
    gap: 0.3rem;
}

.hj-btn-lg {
    height: 44px;
    padding: 0 1.5rem;
    font-size: 0.95rem;
    border-radius: 12px;
    gap: 0.5rem;
}

.hj-btn-xl {
    height: 54px;
    padding: 0 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 14px;
    gap: 0.6rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   MODIFIERS
   ══════════════════════════════════════════════════════════════ */

/* Full width */
.hj-btn-block { width: 100%; }

/* Square icon-only button */
.hj-btn-icon {
    width: 38px;
    padding: 0;
    flex-shrink: 0;
}
.hj-btn-icon.hj-btn-sm { width: 32px; }
.hj-btn-icon.hj-btn-lg { width: 44px; }

/* Pill shape */
.hj-btn-pill { border-radius: 50px; }

/* ══════════════════════════════════════════════════════════════
   BUTTON GROUPS
   ══════════════════════════════════════════════════════════════ */

.hj-btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.hj-btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.hj-btn-group-vertical .hj-btn { width: 100%; }

/* ══════════════════════════════════════════════════════════════
   SHIMMER HOVER EFFECT (opt-in via .hj-btn-shimmer)
   ══════════════════════════════════════════════════════════════ */

.hj-btn-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}
.hj-btn-shimmer:hover::before { left: 100%; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .hj-btn-xl {
        height: 48px;
        padding: 0 1.75rem;
        font-size: 1rem;
    }
    .hj-btn-responsive-block {
        width: 100%;
    }
}
